"vscode:/vscode.git/clone" did not exist on "cdfca992e10273f6dae7bf1a73002ba7e3a4e074"
Unverified Commit dc87f526 authored by Anton Lozhkov's avatar Anton Lozhkov Committed by GitHub
Browse files

Fix common tests for FP16 (#1588)

* Fix common tests for FP16

* revert
parent d9b5b43d
......@@ -29,6 +29,7 @@ torch.backends.cuda.matmul.allow_tf32 = False
class DDIMPipelineFastTests(PipelineTesterMixin, unittest.TestCase):
pipeline_class = DDIMPipeline
test_cpu_offload = False
def get_dummy_components(self):
torch.manual_seed(0)
......
......@@ -190,7 +190,7 @@ class PipelineTesterMixin:
with tempfile.TemporaryDirectory() as tmpdir:
pipe.save_pretrained(tmpdir)
pipe_loaded = self.pipeline_class.from_pretrained(tmpdir)
pipe_loaded = self.pipeline_class.from_pretrained(tmpdir, torch_dtype=torch.float16)
pipe_loaded.to(torch_device)
pipe_loaded.set_progress_bar_config(disable=None)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment