Skip to content

Commit

Permalink
change 'model_format' to 'qwen' when 'model_name' starts with 'qwen' (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
lvhan028 authored Oct 18, 2023
1 parent bb3cce9 commit 9c3634e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lmdeploy/serve/turbomind/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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. '
Expand Down

0 comments on commit 9c3634e

Please sign in to comment.