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
a081f292
Unverified
Commit
a081f292
authored
Dec 23, 2022
by
Arthur
Committed by
GitHub
Dec 23, 2022
Browse files
[RobertaPreLayernom] Fixes the CI daily test (#20886)
get correct checkpoint
parent
cab7799f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/models/roberta_prelayernorm/test_modeling_roberta_prelayernorm.py
...oberta_prelayernorm/test_modeling_roberta_prelayernorm.py
+1
-1
No files found.
tests/models/roberta_prelayernorm/test_modeling_roberta_prelayernorm.py
View file @
a081f292
...
...
@@ -524,7 +524,7 @@ class RobertaPreLayerNormModelIntegrationTest(TestCasePlus):
@
slow
def
test_inference_no_head
(
self
):
model
=
RobertaPreLayerNormModel
.
from_pretrained
(
"
princeton-nlp
/efficient_mlm_m0.40"
)
model
=
RobertaPreLayerNormModel
.
from_pretrained
(
"
andreasmadsen
/efficient_mlm_m0.40"
)
input_ids
=
torch
.
tensor
([[
0
,
31414
,
232
,
328
,
740
,
1140
,
12695
,
69
,
46078
,
1588
,
2
]])
with
torch
.
no_grad
():
...
...
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