Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
flash-attention
Commits
204c3c6d
Unverified
Commit
204c3c6d
authored
Jan 24, 2024
by
Tao He
Committed by
GitHub
Jan 23, 2024
Browse files
Fixes an error in comment (#785)
Signed-off-by:
Tao He
<
sighingnow@gmail.com
>
parent
197f2083
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
README.md
README.md
+1
-1
flash_attn/flash_attn_interface.py
flash_attn/flash_attn_interface.py
+1
-1
No files found.
README.md
View file @
204c3c6d
...
@@ -212,7 +212,7 @@ def flash_attn_with_kvcache(
...
@@ -212,7 +212,7 @@ def flash_attn_with_kvcache(
rotary_sin [optional]: (seqlen_ro, rotary_dim / 2). Similar to rotary_cos.
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
cache_seqlens: int, or (batch_size,), dtype torch.int32. The sequence lengths of the
KV cache.
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.
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 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
If the indices are not distinct, and k and v are provided, the values updated in the cache
...
...
flash_attn/flash_attn_interface.py
View file @
204c3c6d
...
@@ -1149,7 +1149,7 @@ def flash_attn_with_kvcache(
...
@@ -1149,7 +1149,7 @@ def flash_attn_with_kvcache(
rotary_sin [optional]: (seqlen_ro, rotary_dim / 2). Similar to rotary_cos.
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
cache_seqlens: int, or (batch_size,), dtype torch.int32. The sequence lengths of the
KV cache.
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.
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 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
If the indices are not distinct, and k and v are provided, the values updated in the cache
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment