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
a3e8a05d
Unverified
Commit
a3e8a05d
authored
Jun 17, 2024
by
Bruce Fontaine
Committed by
GitHub
Jun 17, 2024
Browse files
[Bugfix] Fix KV head calculation for MPT models when using GQA (#5142)
parent
e441bad6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
vllm/config.py
vllm/config.py
+5
-1
No files found.
vllm/config.py
View file @
a3e8a05d
...
...
@@ -302,7 +302,11 @@ class ModelConfig:
return
1
# For DBRX and MPT
if
self
.
hf_config
.
model_type
in
[
"dbrx"
,
"mpt"
]:
if
self
.
hf_config
.
model_type
==
"mpt"
:
if
"kv_n_heads"
in
self
.
hf_config
.
attn_config
:
return
self
.
hf_config
.
attn_config
[
"kv_n_heads"
]
return
self
.
hf_config
.
num_attention_heads
if
self
.
hf_config
.
model_type
==
"dbrx"
:
return
getattr
(
self
.
hf_config
.
attn_config
,
"kv_n_heads"
,
self
.
hf_config
.
num_attention_heads
)
...
...
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