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
ff76e7c2
Unverified
Commit
ff76e7c2
authored
Feb 20, 2024
by
Younes Belkada
Committed by
GitHub
Feb 20, 2024
Browse files
FIX [`bnb` / `tests`] Propagate the changes from #29092 to 4-bit tests (#29122)
* forgot to push the changes for 4bit .. * trigger CI
parent
1c9134f0
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_4bit.py
tests/quantization/bnb/test_4bit.py
+1
-1
No files found.
tests/quantization/bnb/test_4bit.py
View file @
ff76e7c2
...
...
@@ -43,7 +43,7 @@ from transformers.testing_utils import (
def
get_some_linear_layer
(
model
):
if
model
.
config
.
model_type
==
"
openai-community/
gpt2"
:
if
model
.
config
.
model_type
==
"gpt2"
:
return
model
.
transformer
.
h
[
0
].
mlp
.
c_fc
elif
model
.
config
.
model_type
==
"opt"
:
try
:
...
...
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