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
898285c9
Unverified
Commit
898285c9
authored
Sep 10, 2023
by
Kyujin Cho
Committed by
GitHub
Sep 10, 2023
Browse files
fix: CUDA error when inferencing with Falcon-40B base model (#992)
parent
a62de9ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
vllm/config.py
vllm/config.py
+2
-1
No files found.
vllm/config.py
View file @
898285c9
...
@@ -114,8 +114,9 @@ class ModelConfig:
...
@@ -114,8 +114,9 @@ class ModelConfig:
# Note: for falcon, when new_decoder_architecture is True, the
# Note: for falcon, when new_decoder_architecture is True, the
# multi_query flag is ignored and we use n_head_kv for the number of
# multi_query flag is ignored and we use n_head_kv for the number of
# KV heads.
# KV heads.
falcon_model_types
=
[
"falcon"
,
"RefinedWeb"
,
"RefinedWebModel"
]
new_decoder_arch_falcon
=
(
new_decoder_arch_falcon
=
(
self
.
hf_config
.
model_type
==
"
falcon
"
self
.
hf_config
.
model_type
in
falcon
_model_types
and
getattr
(
self
.
hf_config
,
"new_decoder_architecture"
,
False
))
and
getattr
(
self
.
hf_config
,
"new_decoder_architecture"
,
False
))
if
not
new_decoder_arch_falcon
and
getattr
(
self
.
hf_config
,
if
not
new_decoder_arch_falcon
and
getattr
(
self
.
hf_config
,
"multi_query"
,
False
):
"multi_query"
,
False
):
...
...
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