Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
3f946cfb
"...chenpangpang/transformers.git" did not exist on "df15703b422644c7cbbb9779af9e8f1fd639eefe"
Commit
3f946cfb
authored
Jan 13, 2025
by
zhuwenwen
Browse files
fix alibi
parent
0890ebc1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
csrc/attention/attention_with_mask_kernels_opt_tc.cu
csrc/attention/attention_with_mask_kernels_opt_tc.cu
+1
-1
No files found.
csrc/attention/attention_with_mask_kernels_opt_tc.cu
View file @
3f946cfb
...
@@ -290,7 +290,7 @@ __device__ void paged_attention_with_mask_kernel_TC(
...
@@ -290,7 +290,7 @@ __device__ void paged_attention_with_mask_kernel_TC(
const
int
token_idx
=
block_idx
*
BLOCK_SIZE
+
rowid
;
const
int
token_idx
=
block_idx
*
BLOCK_SIZE
+
rowid
;
if
(
alibi_slope
[
i
]
!=
0
){
if
(
alibi_slope
[
i
]
!=
0
){
float
alibi
=
alibi_slope
[
i
]
*
(
token_idx
-
seq_len
+
1
);
float
alibi
=
alibi_slope
[
i
]
*
(
token_idx
-
seq_len
+
1
);
qk_vec
[
i
]
=
alibi
;
qk_vec
[
i
]
+
=
alibi
;
}
}
// used for tree-style attention
// used for tree-style attention
...
...
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