jokerbit commited on
Commit
69e3350
·
verified ·
1 Parent(s): 76d4497
Files changed (1) hide show
  1. src/pipeline.py +2 -1
src/pipeline.py CHANGED
@@ -46,7 +46,8 @@ def load_pipeline() -> Pipeline:
46
  local_files_only=True,
47
  torch_dtype=torch.bfloat16,
48
  ).to("cuda")
49
- pipeline.to(memory_format=torch.channels_last)
 
50
  # pipeline.transformer.to(memory_format=torch.channels_last)
51
  # pipeline.vae.to(memory_format=torch.channels_last)
52
 
 
46
  local_files_only=True,
47
  torch_dtype=torch.bfloat16,
48
  ).to("cuda")
49
+ quantize_(pipeline.vae, int8_weight_only())
50
+ # pipeline.to(memory_format=torch.channels_last)
51
  # pipeline.transformer.to(memory_format=torch.channels_last)
52
  # pipeline.vae.to(memory_format=torch.channels_last)
53