Fixes an error in comment (#785)
Signed-off-by: Tao He <sighingnow@gmail.com>
This commit is contained in:
parent
197f2083a2
commit
204c3c6d1b
@ -212,7 +212,7 @@ def flash_attn_with_kvcache(
|
||||
rotary_sin [optional]: (seqlen_ro, rotary_dim / 2). Similar to rotary_cos.
|
||||
cache_seqlens: int, or (batch_size,), dtype torch.int32. The sequence lengths of the
|
||||
KV cache.
|
||||
block_table [optional]: (num_blocks, max_num_blocks_per_seq), dtype torch.int32.
|
||||
block_table [optional]: (batch_size, max_num_blocks_per_seq), dtype torch.int32.
|
||||
cache_batch_idx: (batch_size,), dtype torch.int32. The indices used to index into the KV cache.
|
||||
If None, we assume that the batch indices are [0, 1, 2, ..., batch_size - 1].
|
||||
If the indices are not distinct, and k and v are provided, the values updated in the cache
|
||||
|
||||
@ -1149,7 +1149,7 @@ def flash_attn_with_kvcache(
|
||||
rotary_sin [optional]: (seqlen_ro, rotary_dim / 2). Similar to rotary_cos.
|
||||
cache_seqlens: int, or (batch_size,), dtype torch.int32. The sequence lengths of the
|
||||
KV cache.
|
||||
block_table [optional]: (num_blocks, max_num_blocks_per_seq), dtype torch.int32.
|
||||
block_table [optional]: (batch_size, max_num_blocks_per_seq), dtype torch.int32.
|
||||
cache_batch_idx: (batch_size,), dtype torch.int32. The indices used to index into the KV cache.
|
||||
If None, we assume that the batch indices are [0, 1, 2, ..., batch_size - 1].
|
||||
If the indices are not distinct, and k and v are provided, the values updated in the cache
|
||||
|
||||
Loading…
Reference in New Issue
Block a user