Skip to content

Commit 23854f2

Browse files
committed
directly place on CUDA as CPU isn't that big on the CIO.
1 parent 738f50d commit 23854f2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/lora/test_lora_layers_hunyuanvideo.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def setUp(self):
218218
)
219219
self.pipeline = HunyuanVideoPipeline.from_pretrained(
220220
model_id, transformer=transformer, torch_dtype=torch.float16
221-
)
221+
).to("cuda")
222222

223223
def tearDown(self):
224224
super().tearDown()
@@ -233,7 +233,6 @@ def test_original_format_cseti(self):
233233
self.pipeline.fuse_lora()
234234
self.pipeline.unload_lora_weights()
235235
self.pipeline.vae.enable_tiling()
236-
self.pipeline.enable_model_cpu_offload()
237236

238237
prompt = "CSETIARCANE. A cat walks on the grass, realistic"
239238

0 commit comments

Comments
 (0)