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
ModelZoo
XrayGLM_pytorch
Commits
8d4b48cf
Unverified
Commit
8d4b48cf
authored
May 30, 2023
by
MPU王荣胜
Committed by
GitHub
May 30, 2023
Browse files
fix qlora inference error
parent
8306539e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
cli_demo.py
cli_demo.py
+3
-3
No files found.
cli_demo.py
View file @
8d4b48cf
...
...
@@ -40,8 +40,8 @@ def main():
if
args
.
quant
:
quantize
(
model
.
transformer
,
args
.
quant
)
if
torch
.
cuda
.
is_available
():
model
=
model
.
cuda
()
#
if torch.cuda.is_available():
#
model = model.cuda()
model
.
add_mixin
(
'auto-regressive'
,
CachedAutoregressiveMixin
())
...
...
@@ -101,4 +101,4 @@ def main():
if
__name__
==
"__main__"
:
main
()
\ No newline at end of file
main
()
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