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
d51296d9
Unverified
Commit
d51296d9
authored
May 11, 2023
by
Yih-Dar
Committed by
GitHub
May 11, 2023
Browse files
skip `test_run_squad_no_trainer` for now (#23302)
skip Co-authored-by:
ydshieh
<
ydshieh@users.noreply.github.com
>
parent
6a6225be
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
examples/pytorch/test_accelerate_examples.py
examples/pytorch/test_accelerate_examples.py
+2
-0
No files found.
examples/pytorch/test_accelerate_examples.py
View file @
d51296d9
...
...
@@ -21,6 +21,7 @@ import os
import
shutil
import
sys
import
tempfile
import
unittest
from
unittest
import
mock
import
torch
...
...
@@ -176,6 +177,7 @@ class ExamplesTestsNoTrainer(TestCasePlus):
self
.
assertTrue
(
os
.
path
.
exists
(
os
.
path
.
join
(
tmp_dir
,
"epoch_0"
)))
self
.
assertTrue
(
os
.
path
.
exists
(
os
.
path
.
join
(
tmp_dir
,
"ner_no_trainer"
)))
@
unittest
.
skip
(
reason
=
"Fix me @zack"
)
@
mock
.
patch
.
dict
(
os
.
environ
,
{
"WANDB_MODE"
:
"offline"
})
def
test_run_squad_no_trainer
(
self
):
tmp_dir
=
self
.
get_auto_remove_tmp_dir
()
...
...
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