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
d033914f
Commit
d033914f
authored
Jan 15, 2024
by
xiabo
Browse files
修改转模型bf16的问题。
parent
fa47d0d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lmdeploy/turbomind/deploy/converter.py
lmdeploy/turbomind/deploy/converter.py
+2
-2
No files found.
lmdeploy/turbomind/deploy/converter.py
View file @
d033914f
...
@@ -266,8 +266,8 @@ def main(model_name: str,
...
@@ -266,8 +266,8 @@ def main(model_name: str,
output_format
=
'w4'
output_format
=
'w4'
assert
group_size
>
0
,
f
'group_size:
{
group_size
}
should > 0'
assert
group_size
>
0
,
f
'group_size:
{
group_size
}
should > 0'
else
:
else
:
output_format
=
update_output_format
(
model_name
,
inferred_model_format
,
#
output_format = update_output_format(model_name, inferred_model_format,
model_path
,
output_format
)
#
model_path, output_format)
update_config_weight_type
(
output_format
,
cfg
)
update_config_weight_type
(
output_format
,
cfg
)
# convert
# convert
...
...
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