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
8a25d3a7
Unverified
Commit
8a25d3a7
authored
Jan 19, 2024
by
YingchaoX
Committed by
GitHub
Jan 18, 2024
Browse files
fix stablelm.py tensor-parallel-size bug (#2482)
parent
d10f8e1d
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/stablelm.py
vllm/model_executor/models/stablelm.py
+1
-1
No files found.
vllm/model_executor/models/stablelm.py
View file @
8a25d3a7
...
@@ -99,7 +99,7 @@ class StablelmAttention(nn.Module):
...
@@ -99,7 +99,7 @@ class StablelmAttention(nn.Module):
self
.
q_size
=
self
.
num_heads
*
self
.
head_dim
self
.
q_size
=
self
.
num_heads
*
self
.
head_dim
self
.
kv_size
=
self
.
num_key_value_heads
*
self
.
head_dim
self
.
kv_size
=
self
.
num_key_value_heads
*
self
.
head_dim
if
(
self
.
head_dim
*
self
.
num_heads
)
!=
self
.
hidden_size
:
if
(
self
.
head_dim
*
self
.
num_heads
*
tp_size
)
!=
self
.
hidden_size
:
raise
ValueError
(
raise
ValueError
(
f
"hidden_size must be divisible by num_heads (got `hidden_size`:
{
self
.
hidden_size
}
"
f
"hidden_size must be divisible by num_heads (got `hidden_size`:
{
self
.
hidden_size
}
"
f
" and `num_heads`:
{
self
.
num_heads
}
)."
)
f
" and `num_heads`:
{
self
.
num_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