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
5f5a62dd
Commit
5f5a62dd
authored
May 15, 2024
by
zhouxiang
Browse files
修复turbomind从hf读模型时存在bf16不支持的问题
parent
9b3cb662
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lmdeploy/turbomind/turbomind.py
lmdeploy/turbomind/turbomind.py
+3
-3
No files found.
lmdeploy/turbomind/turbomind.py
View file @
5f5a62dd
...
@@ -305,9 +305,9 @@ class TurboMind:
...
@@ -305,9 +305,9 @@ class TurboMind:
data_type
=
'int4'
data_type
=
'int4'
cfg
.
group_size
=
128
cfg
.
group_size
=
128
else
:
else
:
output_format
=
update_output_format
(
cfg
.
model_name
,
#
output_format = update_output_format(cfg.model_name,
inferred_model_format
,
#
inferred_model_format,
model_path
,
output_format
)
#
model_path, output_format)
data_type
=
output_format
data_type
=
output_format
update_config_weight_type
(
output_format
,
cfg
)
update_config_weight_type
(
output_format
,
cfg
)
...
...
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