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
8a588093
Unverified
Commit
8a588093
authored
May 16, 2023
by
Zachary Mueller
Committed by
GitHub
May 16, 2023
Browse files
Fix translation no_trainer (#23407)
* Fix translation
parent
130e1542
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
examples/pytorch/test_accelerate_examples.py
examples/pytorch/test_accelerate_examples.py
+2
-1
No files found.
examples/pytorch/test_accelerate_examples.py
View file @
8a588093
...
...
@@ -177,7 +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
"
)
@
unittest
.
skip
(
reason
=
"Fix me @
muellerzr
"
)
@
mock
.
patch
.
dict
(
os
.
environ
,
{
"WANDB_MODE"
:
"offline"
})
def
test_run_squad_no_trainer
(
self
):
tmp_dir
=
self
.
get_auto_remove_tmp_dir
()
...
...
@@ -270,6 +270,7 @@ class ExamplesTestsNoTrainer(TestCasePlus):
--output_dir
{
tmp_dir
}
--max_train_steps=50
--num_warmup_steps=8
--num_beams=6
--learning_rate=3e-3
--per_device_train_batch_size=2
--per_device_eval_batch_size=1
...
...
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