Remove unused param from example script tests (#27354)

Unused param
This commit is contained in:
Zach Mueller 2023-11-08 09:07:32 -05:00 committed by GitHub
parent eb30a49b20
commit 845aa832b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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%