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
33f4cb10
Unverified
Commit
33f4cb10
authored
Mar 29, 2023
by
Younes Belkada
Committed by
GitHub
Mar 29, 2023
Browse files
[`bnb`] fix bnb failing test (#22439)
* fix bnb failing test * fix * fix * fixup
parent
fab1de72
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
tests/mixed_int8/test_mixed_int8.py
tests/mixed_int8/test_mixed_int8.py
+1
-2
No files found.
tests/mixed_int8/test_mixed_int8.py
View file @
33f4cb10
...
...
@@ -384,9 +384,8 @@ class MixedInt8TestMultiGpu(BaseMixedInt8Test):
Let's just try to load a model on 2 GPUs and see if it works. The model we test has ~2GB of total, 3GB should suffice
"""
memory_mapping
=
{
0
:
"1GB"
,
1
:
"2GB"
}
model_parallel
=
AutoModelForCausalLM
.
from_pretrained
(
self
.
model_name
,
load_in_8bit
=
True
,
max_memory
=
memory_mapping
,
device_map
=
"
auto
"
self
.
model_name
,
load_in_8bit
=
True
,
device_map
=
"
balanced
"
)
# Check correct device map
...
...
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