Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
norm
vllm
Commits
220a4762
"docs/source/git@developer.sourcefind.cn:norm/vllm.git" did not exist on "42c02f5892e984d308614f074f423a311aba8993"
Unverified
Commit
220a4762
authored
Jan 27, 2024
by
Xiang Xu
Committed by
GitHub
Jan 27, 2024
Browse files
Use head_dim in config if exists (#2622)
parent
beb89f68
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
vllm/config.py
vllm/config.py
+2
-0
No files found.
vllm/config.py
View file @
220a4762
...
@@ -213,6 +213,8 @@ class ModelConfig:
...
@@ -213,6 +213,8 @@ class ModelConfig:
return
self
.
hf_config
.
hidden_size
return
self
.
hf_config
.
hidden_size
def
get_head_size
(
self
)
->
int
:
def
get_head_size
(
self
)
->
int
:
if
hasattr
(
self
.
hf_config
,
"head_dim"
):
return
self
.
hf_config
.
head_dim
# FIXME(woosuk): This may not be true for all models.
# FIXME(woosuk): This may not be true for all models.
return
self
.
hf_config
.
hidden_size
//
self
.
hf_config
.
num_attention_heads
return
self
.
hf_config
.
hidden_size
//
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