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
082ecd80
Unverified
Commit
082ecd80
authored
Jul 20, 2024
by
Robert Shaw
Committed by
GitHub
Jul 20, 2024
Browse files
[ Bugfix ] Fix AutoFP8 fp8 marlin (#6609)
parent
f952bbc8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
vllm/model_executor/layers/quantization/utils/marlin_utils_fp8.py
...el_executor/layers/quantization/utils/marlin_utils_fp8.py
+2
-1
No files found.
vllm/model_executor/layers/quantization/utils/marlin_utils_fp8.py
View file @
082ecd80
...
@@ -76,7 +76,8 @@ def prepare_fp8_layer_for_marlin(layer: torch.nn.Module) -> None:
...
@@ -76,7 +76,8 @@ def prepare_fp8_layer_for_marlin(layer: torch.nn.Module) -> None:
# WEIGHT SCALES
# WEIGHT SCALES
# Currently Marlin doesn't support per-tensor scales, so we
# Currently Marlin doesn't support per-tensor scales, so we
# expand it to channelwise
# expand it to channelwise
is_channelwise
=
layer
.
weight_scale
.
shape
[
0
]
==
part_size_n
is_channelwise
=
(
len
(
layer
.
weight_scale
.
shape
)
>
0
and
layer
.
weight_scale
.
shape
[
0
]
==
part_size_n
)
if
is_channelwise
:
if
is_channelwise
:
scales
=
layer
.
weight_scale
scales
=
layer
.
weight_scale
else
:
else
:
...
...
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