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
c9156538
".codespellrc" did not exist on "3cfe73de3ff75cdb657f0db77cd6228c28f41da1"
Commit
c9156538
authored
May 30, 2024
by
zhuwenwen
Browse files
support glm and baichuan nn
parent
6634a0e0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vllm/model_executor/model_loader.py
vllm/model_executor/model_loader.py
+2
-2
No files found.
vllm/model_executor/model_loader.py
View file @
c9156538
...
@@ -23,7 +23,7 @@ def _set_default_torch_dtype(dtype: torch.dtype):
...
@@ -23,7 +23,7 @@ def _set_default_torch_dtype(dtype: torch.dtype):
def
_get_model_architecture
(
model_config
:
ModelConfig
)
->
Type
[
nn
.
Module
]:
def
_get_model_architecture
(
model_config
:
ModelConfig
)
->
Type
[
nn
.
Module
]:
architectures
=
getattr
(
model_config
.
hf_config
,
"architectures"
,
[])
architectures
=
getattr
(
model_config
.
hf_config
,
"architectures"
,
[])
if
architectures
==
[
'LlamaForCausalLM'
]:
if
architectures
==
[
'LlamaForCausalLM'
]
or
architectures
==
[
'ChatGLMModel'
]
or
architectures
==
[
'BaichuanForCausalLM'
]
:
if
os
.
getenv
(
'LLAMA_NN'
)
!=
'0'
:
if
os
.
getenv
(
'LLAMA_NN'
)
!=
'0'
:
os
.
environ
[
'LLAMA_NN'
]
=
'1'
os
.
environ
[
'LLAMA_NN'
]
=
'1'
# Special handling for quantized Mixtral.
# Special handling for quantized Mixtral.
...
...
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