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
845aa832
Unverified
Commit
845aa832
authored
Nov 08, 2023
by
Zach Mueller
Committed by
GitHub
Nov 08, 2023
Browse files
Remove unused param from example script tests (#27354)
Unused param
parent
eb30a49b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
7 deletions
+0
-7
examples/pytorch/test_accelerate_examples.py
examples/pytorch/test_accelerate_examples.py
+0
-7
No files found.
examples/pytorch/test_accelerate_examples.py
View file @
845aa832
...
...
@@ -28,7 +28,6 @@ from accelerate.utils import write_basic_config
from
transformers.testing_utils
import
(
TestCasePlus
,
backend_device_count
,
is_torch_fp16_available_on_device
,
run_command
,
slow
,
torch_device
,
...
...
@@ -93,9 +92,6 @@ class ExamplesTestsNoTrainer(TestCasePlus):
--with_tracking
"""
.
split
()
if
is_torch_fp16_available_on_device
(
torch_device
):
testargs
.
append
(
"--fp16"
)
run_command
(
self
.
_launch_args
+
testargs
)
result
=
get_results
(
tmp_dir
)
self
.
assertGreaterEqual
(
result
[
"eval_accuracy"
],
0.75
)
...
...
@@ -325,9 +321,6 @@ class ExamplesTestsNoTrainer(TestCasePlus):
--checkpointing_steps 1
"""
.
split
()
if
is_torch_fp16_available_on_device
(
torch_device
):
testargs
.
append
(
"--fp16"
)
run_command
(
self
.
_launch_args
+
testargs
)
result
=
get_results
(
tmp_dir
)
# The base model scores a 25%
...
...
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