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
db3b986b
Unverified
Commit
db3b986b
authored
Jul 17, 2023
by
Kevin Wang
Committed by
GitHub
Jul 17, 2023
Browse files
[Fix] fix attempted_relative_import (#125)
* [Fix] fix attempted_relative_import * use try...except...else
parent
9eca5cbe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lmdeploy/pytorch/chat.py
lmdeploy/pytorch/chat.py
+3
-3
No files found.
lmdeploy/pytorch/chat.py
View file @
db3b986b
...
...
@@ -17,12 +17,12 @@ try:
from
transformers
import
(
AutoModelForCausalLM
,
AutoTokenizer
,
GenerationConfig
)
from
.accel
import
LoadNoInit
from
.utils
import
get_utils
_is_transformers_available
=
True
except
ImportError
:
_is_transformers_available
=
False
else
:
from
.accel
import
LoadNoInit
from
.utils
import
get_utils
def
input_prompt
():
...
...
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