mirror of
https://github.com/huggingface/diffusers.git
synced 2026-01-27 17:22:53 +03:00
fix offload test (#7868)
fix Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com>
This commit is contained in:
@@ -1375,7 +1375,7 @@ class PipelineTesterMixin:
|
||||
output_without_offload = pipe(**inputs)[0]
|
||||
|
||||
pipe.enable_sequential_cpu_offload()
|
||||
assert pipe._execution_device.type == pipe._offload_device.type
|
||||
assert pipe._execution_device.type == "cuda"
|
||||
|
||||
inputs = self.get_dummy_inputs(generator_device)
|
||||
output_with_offload = pipe(**inputs)[0]
|
||||
@@ -1440,7 +1440,7 @@ class PipelineTesterMixin:
|
||||
output_without_offload = pipe(**inputs)[0]
|
||||
|
||||
pipe.enable_model_cpu_offload()
|
||||
assert pipe._execution_device.type == pipe._offload_device.type
|
||||
assert pipe._execution_device.type == "cuda"
|
||||
|
||||
inputs = self.get_dummy_inputs(generator_device)
|
||||
output_with_offload = pipe(**inputs)[0]
|
||||
|
||||
Reference in New Issue
Block a user