jokerbit commited on
Commit
34f1ca3
·
verified ·
1 Parent(s): b13975e

memory last

Browse files
Files changed (1) hide show
  1. src/pipeline.py +1 -1
src/pipeline.py CHANGED
@@ -49,7 +49,7 @@ def load_pipeline() -> Pipeline:
49
  torch_dtype=torch.bfloat16,
50
  )
51
 
52
- # pipeline.transformer.to(memory_format=torch.channels_last)
53
  # quantize_(pipeline.vae, int8_weight_only())
54
  # pipeline.vae = torch.compile(pipeline.vae, mode="reduce-overhead")
55
  pipeline.to("cuda")
 
49
  torch_dtype=torch.bfloat16,
50
  )
51
 
52
+ pipeline.transformer.to(memory_format=torch.channels_last)
53
  # quantize_(pipeline.vae, int8_weight_only())
54
  # pipeline.vae = torch.compile(pipeline.vae, mode="reduce-overhead")
55
  pipeline.to("cuda")