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
d703eaae
Unverified
Commit
d703eaae
authored
Jan 31, 2024
by
Younes Belkada
Committed by
GitHub
Jan 31, 2024
Browse files
[`bnb`] Fix bnb slow tests (#28788)
fix bnb slow tests
parent
74c9cfea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/transformers/utils/quantization_config.py
src/transformers/utils/quantization_config.py
+2
-0
No files found.
src/transformers/utils/quantization_config.py
View file @
d703eaae
...
@@ -342,6 +342,8 @@ class BitsAndBytesConfig(QuantizationConfigMixin):
...
@@ -342,6 +342,8 @@ class BitsAndBytesConfig(QuantizationConfigMixin):
"""
"""
output
=
copy
.
deepcopy
(
self
.
__dict__
)
output
=
copy
.
deepcopy
(
self
.
__dict__
)
output
[
"bnb_4bit_compute_dtype"
]
=
str
(
output
[
"bnb_4bit_compute_dtype"
]).
split
(
"."
)[
1
]
output
[
"bnb_4bit_compute_dtype"
]
=
str
(
output
[
"bnb_4bit_compute_dtype"
]).
split
(
"."
)[
1
]
output
[
"load_in_4bit"
]
=
self
.
load_in_4bit
output
[
"load_in_8bit"
]
=
self
.
load_in_8bit
return
output
return
output
...
...
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