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
ad1a8638
Unverified
Commit
ad1a8638
authored
Jul 14, 2023
by
A60
Committed by
GitHub
Jul 14, 2023
Browse files
fix warnings.warn (#111)
parent
c0933457
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lmdeploy/pytorch/chat.py
lmdeploy/pytorch/chat.py
+1
-1
No files found.
lmdeploy/pytorch/chat.py
View file @
ad1a8638
...
...
@@ -73,7 +73,7 @@ def init_model(
model
=
model
.
cuda
(
local_rank
)
if
not
_is_deepspeed_available
:
warnings
.
warn
(
'deepspeed is not installed, '
,
warnings
.
warn
(
'deepspeed is not installed, '
'use plain huggingface model.'
)
else
:
model
=
deepspeed
.
init_inference
(
...
...
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