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
chenpangpang
transformers
Commits
1666c42f
Unverified
Commit
1666c42f
authored
Feb 13, 2023
by
Younes Belkada
Committed by
GitHub
Feb 13, 2023
Browse files
[`bnb`] Let's make the daily CI green
🍏
(#21597)
* fix bnb slow test * make fixup
parent
24273268
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
tests/mixed_int8/test_mixed_int8.py
tests/mixed_int8/test_mixed_int8.py
+3
-1
No files found.
tests/mixed_int8/test_mixed_int8.py
View file @
1666c42f
...
...
@@ -92,7 +92,9 @@ class MixedInt8Test(BaseMixedInt8Test):
super
().
setUp
()
# Models and tokenizer
self
.
model_fp16
=
AutoModelForCausalLM
.
from_pretrained
(
self
.
model_name
,
torch_dtype
=
"auto"
,
device_map
=
"auto"
)
self
.
model_fp16
=
AutoModelForCausalLM
.
from_pretrained
(
self
.
model_name
,
torch_dtype
=
torch
.
float16
,
device_map
=
"auto"
)
self
.
model_8bit
=
AutoModelForCausalLM
.
from_pretrained
(
self
.
model_name
,
load_in_8bit
=
True
,
device_map
=
"auto"
)
def
tearDown
(
self
):
...
...
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