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
b0e99e82
Commit
b0e99e82
authored
Nov 28, 2025
by
zhuwenwen
Browse files
change the scale of convert_fp8 to 1
parent
511eeccd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
vllm/_custom_ops.py
vllm/_custom_ops.py
+2
-1
No files found.
vllm/_custom_ops.py
View file @
b0e99e82
...
...
@@ -2187,7 +2187,8 @@ def gather_cache(src_cache: torch.Tensor,
torch
.
ops
.
_C_cache_ops
.
gather_cache
(
src_cache
,
dst_fp8
,
block_table
,
cu_seq_lens
,
batch_size
,
seq_starts
)
#dst_fp8->bf16
convert_fp8
(
dst
,
dst_fp8
,
scale
,
kv_dtype
)
# convert_fp8(dst, dst_fp8, scale, kv_dtype)
convert_fp8
(
dst
,
dst_fp8
,
1.0
,
kv_dtype
)
else
:
torch
.
ops
.
_C_cache_ops
.
gather_cache
(
src_cache
,
dst
,
block_table
,
cu_seq_lens
,
batch_size
,
seq_starts
)
...
...
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