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
3a0e1fc0
Unverified
Commit
3a0e1fc0
authored
Jan 26, 2024
by
dakotamahan-stability
Committed by
GitHub
Jan 26, 2024
Browse files
Support for Stable LM 2 (#2598)
Co-authored-by:
Zhuohan Li
<
zhuohan123@gmail.com
>
parent
6b7de1a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vllm/model_executor/models/stablelm.py
vllm/model_executor/models/stablelm.py
+2
-2
No files found.
vllm/model_executor/models/stablelm.py
View file @
3a0e1fc0
...
...
@@ -98,7 +98,7 @@ class StablelmAttention(nn.Module):
self
.
scaling
=
self
.
head_dim
**-
0.5
self
.
q_size
=
self
.
num_heads
*
self
.
head_dim
self
.
kv_size
=
self
.
num_key_value_heads
*
self
.
head_dim
self
.
qkv_bias
=
getattr
(
config
,
"use_qkv_bias"
,
False
)
if
(
self
.
head_dim
*
self
.
num_heads
*
tp_size
)
!=
self
.
hidden_size
:
raise
ValueError
(
f
"hidden_size must be divisible by num_heads (got `hidden_size`:
{
self
.
hidden_size
}
"
...
...
@@ -108,7 +108,7 @@ class StablelmAttention(nn.Module):
self
.
head_dim
,
self
.
total_num_heads
,
self
.
total_num_key_value_heads
,
bias
=
False
,
self
.
qkv_bias
,
linear_method
=
linear_method
)
self
.
o_proj
=
RowParallelLinear
(
self
.
total_num_heads
*
self
.
head_dim
,
self
.
hidden_size
,
...
...
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