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
33d3914b
Unverified
Commit
33d3914b
authored
May 13, 2024
by
Philipp Moritz
Committed by
GitHub
May 13, 2024
Browse files
[Bugfix] Fix dynamic FP8 quantization for Mixtral (#4793)
parent
1356df53
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/model_executor/models/mixtral.py
vllm/model_executor/models/mixtral.py
+1
-1
No files found.
vllm/model_executor/models/mixtral.py
View file @
33d3914b
...
@@ -95,7 +95,7 @@ class MixtralMoE(nn.Module):
...
@@ -95,7 +95,7 @@ class MixtralMoE(nn.Module):
params_dtype
=
self
.
params_dtype
,
params_dtype
=
self
.
params_dtype
,
quant_config
=
None
)
quant_config
=
None
)
if
self
.
use_fp8
:
if
self
.
use_fp8
and
self
.
quant_config
.
is_checkpoint_fp8_serialized
:
params_dtype
=
torch
.
float8_e4m3fn
params_dtype
=
torch
.
float8_e4m3fn
self
.
w13_weight
=
nn
.
Parameter
(
self
.
w13_weight
=
nn
.
Parameter
(
...
...
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