[tests] make cuda-only tests device-agnostic (#35607)
* intial commit * remove unrelated files * further remove * Update test_trainer.py * fix style
This commit is contained in:
@@ -32,7 +32,6 @@ from transformers.testing_utils import (
|
||||
require_accelerate,
|
||||
require_fsdp,
|
||||
require_torch_accelerator,
|
||||
require_torch_gpu,
|
||||
require_torch_multi_accelerator,
|
||||
slow,
|
||||
torch_device,
|
||||
@@ -288,7 +287,7 @@ class TrainerIntegrationFSDP(TestCasePlus, TrainerIntegrationCommon):
|
||||
|
||||
@require_torch_multi_accelerator
|
||||
@slow
|
||||
@require_torch_gpu
|
||||
@require_torch_accelerator
|
||||
@require_fsdp
|
||||
def test_fsdp_cpu_offloading(self):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user