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
OpenDAS
Lmdeploy
Commits
9c3634ec
Unverified
Commit
9c3634ec
authored
Oct 18, 2023
by
Lyu Han
Committed by
GitHub
Oct 18, 2023
Browse files
change 'model_format' to 'qwen' when 'model_name' starts with 'qwen' (#575)
parent
bb3cce9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lmdeploy/serve/turbomind/deploy.py
lmdeploy/serve/turbomind/deploy.py
+1
-1
No files found.
lmdeploy/serve/turbomind/deploy.py
View file @
9c3634ec
...
...
@@ -984,7 +984,7 @@ def main(model_name: str,
assert
((
tp
&
(
tp
-
1
)
==
0
)
and
tp
!=
0
),
'tp should be 2^n'
if
model_format
is
None
:
model_format
=
'qwen'
if
model_name
==
'qwen
-7b
'
else
'hf'
model_format
=
'qwen'
if
model_name
.
startswith
(
'qwen'
)
else
'hf'
if
model_format
not
in
supported_formats
:
print
(
f
'the model format "
{
model_format
}
" is not supported. '
...
...
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