jokerbit commited on
Commit
f565b85
·
verified ·
1 Parent(s): 6a1bcaa

Upload src/pipeline.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. src/pipeline.py +3 -2
src/pipeline.py CHANGED
@@ -36,9 +36,10 @@ def load_pipeline() -> Pipeline:
36
  transformer=transformer,
37
  local_files_only=True,
38
  torch_dtype=torch.bfloat16,
39
- ).to("cuda")
40
 
41
- # pipeline.to(memory_format=torch.channels_last)
 
42
  for _ in range(4):
43
  pipeline("cat", num_inference_steps=4)
44
 
 
36
  transformer=transformer,
37
  local_files_only=True,
38
  torch_dtype=torch.bfloat16,
39
+ )
40
 
41
+ pipeline.to(memory_format=torch.channels_last)
42
+ pipeline.to("cuda")
43
  for _ in range(4):
44
  pipeline("cat", num_inference_steps=4)
45