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
b0dfa91d
"vllm/vscode:/vscode.git/clone" did not exist on "94870359cdce95cc1c56d7ae2730e8ac9be40049"
Unverified
Commit
b0dfa91d
authored
Mar 25, 2024
by
少年
Committed by
GitHub
Mar 24, 2024
Browse files
[Model] Add starcoder2 awq support (#3569)
parent
56a8652f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
vllm/model_executor/models/starcoder2.py
vllm/model_executor/models/starcoder2.py
+3
-2
No files found.
vllm/model_executor/models/starcoder2.py
View file @
b0dfa91d
...
...
@@ -141,8 +141,9 @@ class Starcoder2MLP(nn.Module):
bias
=
config
.
use_bias
,
linear_method
=
linear_method
,
)
self
.
act
=
get_act_fn
(
config
.
hidden_act
,
intermediate_size
=
config
.
intermediate_size
)
quant_config
=
getattr
(
linear_method
,
"quant_config"
,
None
)
self
.
act
=
get_act_fn
(
config
.
hidden_act
,
quant_config
,
config
.
intermediate_size
)
def
forward
(
self
,
hidden_states
:
torch
.
Tensor
)
->
torch
.
Tensor
:
hidden_states
,
_
=
self
.
c_fc
(
hidden_states
)
...
...
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