manbeast3b commited on
Commit
afe4e6b
·
verified ·
1 Parent(s): 3238c79

Update src/pipeline.py

Browse files
Files changed (1) hide show
  1. src/pipeline.py +1 -1
src/pipeline.py CHANGED
@@ -17,7 +17,7 @@ def clear():
17
  torch.cuda.reset_max_memory_allocated()
18
  torch.cuda.reset_peak_memory_stats()
19
 
20
-
21
  def load_pipeline() -> Pipeline:
22
  clear()
23
  dtype, device = torch.bfloat16, "cuda"
 
17
  torch.cuda.reset_max_memory_allocated()
18
  torch.cuda.reset_peak_memory_stats()
19
 
20
+ @torch.inference_mode()
21
  def load_pipeline() -> Pipeline:
22
  clear()
23
  dtype, device = torch.bfloat16, "cuda"