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
bd02164c
Unverified
Commit
bd02164c
authored
Jan 28, 2025
by
Michael Goin
Committed by
GitHub
Jan 29, 2025
Browse files
Bugfix for whisper quantization due to fake k_proj bias (#12524)
Signed-off-by:
mgoin
<
michael@neuralmagic.com
>
parent
46fb0567
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/model_executor/models/whisper.py
vllm/model_executor/models/whisper.py
+1
-1
No files found.
vllm/model_executor/models/whisper.py
View file @
bd02164c
...
...
@@ -743,7 +743,7 @@ def _create_fake_bias_for_k_proj(
So that the bias for k_proj in qkv_proj can be initialized with zeros.
"""
for
name
,
weight
in
weights
:
if
".self_attn.k_proj.weight"
in
name
:
if
name
.
endswith
(
".self_attn.k_proj.weight"
)
:
bias
=
torch
.
zeros
(
weight
.
size
(
0
))
bias_name
=
name
.
replace
(
"weight"
,
"bias"
)
yield
from
[(
name
,
weight
),
(
bias_name
,
bias
)]
...
...
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