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
3766df4f
"tests/vscode:/vscode.git/clone" did not exist on "bf3dfd11605d8aa9e87bf872f076ef517399c7e4"
Unverified
Commit
3766df4f
authored
Jun 01, 2022
by
Zachary Mueller
Committed by
GitHub
Jun 01, 2022
Browse files
Fix flakey no-trainer test (#17515)
parent
028d4b7c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
examples/pytorch/test_accelerate_examples.py
examples/pytorch/test_accelerate_examples.py
+2
-2
No files found.
examples/pytorch/test_accelerate_examples.py
View file @
3766df4f
...
...
@@ -193,8 +193,8 @@ class ExamplesTestsNoTrainer(TestCasePlus):
_
=
subprocess
.
run
(
self
.
_launch_args
+
testargs
,
stdout
=
subprocess
.
PIPE
)
result
=
get_results
(
tmp_dir
)
# Because we use --version_2_with_negative the testing script uses SQuAD v2 metrics.
self
.
assertGreaterEqual
(
result
[
"eval_f1"
],
30
)
self
.
assertGreaterEqual
(
result
[
"eval_exact"
],
30
)
self
.
assertGreaterEqual
(
result
[
"eval_f1"
],
28
)
self
.
assertGreaterEqual
(
result
[
"eval_exact"
],
28
)
self
.
assertTrue
(
os
.
path
.
exists
(
os
.
path
.
join
(
tmp_dir
,
"epoch_0"
)))
self
.
assertTrue
(
os
.
path
.
exists
(
os
.
path
.
join
(
tmp_dir
,
"qa_no_trainer"
)))
...
...
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