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
renzhc
diffusers_dcu
Commits
5a6edac0
Unverified
Commit
5a6edac0
authored
Apr 01, 2025
by
Fanli Lin
Committed by
GitHub
Apr 01, 2025
Browse files
[tests] no hard-coded cuda (#11186)
no cuda only
parent
e8fc8b1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/quantization/bnb/test_mixed_int8.py
tests/quantization/bnb/test_mixed_int8.py
+1
-1
No files found.
tests/quantization/bnb/test_mixed_int8.py
View file @
5a6edac0
...
@@ -315,7 +315,7 @@ class BnB8bitBasicTests(Base8bitTests):
...
@@ -315,7 +315,7 @@ class BnB8bitBasicTests(Base8bitTests):
_
=
self
.
model_fp16
.
float
()
_
=
self
.
model_fp16
.
float
()
# Check that this does not throw an error
# Check that this does not throw an error
_
=
self
.
model_fp16
.
cuda
(
)
_
=
self
.
model_fp16
.
to
(
torch_device
)
class
Bnb8bitDeviceTests
(
Base8bitTests
):
class
Bnb8bitDeviceTests
(
Base8bitTests
):
...
...
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