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
e9adb0c9
"git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "15ab3f049b8d399f4a45b9c8b24c53111bfce665"
Unverified
Commit
e9adb0c9
authored
Nov 09, 2023
by
Zach Mueller
Committed by
GitHub
Nov 09, 2023
Browse files
Change thresh in test (#27378)
Change thresh
parent
085ea7e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/pytorch/test_accelerate_examples.py
examples/pytorch/test_accelerate_examples.py
+1
-1
No files found.
examples/pytorch/test_accelerate_examples.py
View file @
e9adb0c9
...
...
@@ -169,7 +169,7 @@ class ExamplesTestsNoTrainer(TestCasePlus):
run_command
(
self
.
_launch_args
+
testargs
)
result
=
get_results
(
tmp_dir
)
self
.
assertGreaterEqual
(
result
[
"eval_accuracy"
],
0.75
)
self
.
assertLess
(
result
[
"train_loss"
],
0.
5
)
self
.
assertLess
(
result
[
"train_loss"
],
0.
6
)
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"
)))
...
...
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