Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
a75a6c93
Unverified
Commit
a75a6c93
authored
Feb 19, 2024
by
Younes Belkada
Committed by
GitHub
Feb 19, 2024
Browse files
FIX [`bnb` / `tests`]: Fix currently failing bnb tests (#29092)
Update test_mixed_int8.py
parent
864c8e6e
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 @
a75a6c93
...
@@ -42,7 +42,7 @@ from transformers.testing_utils import (
...
@@ -42,7 +42,7 @@ from transformers.testing_utils import (
def
get_some_linear_layer
(
model
):
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
return
model
.
transformer
.
h
[
0
].
mlp
.
c_fc
return
model
.
transformer
.
h
[
0
].
mlp
.
dense_4h_to_h
return
model
.
transformer
.
h
[
0
].
mlp
.
dense_4h_to_h
...
...
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