Futuretop commited on
Commit
4932e29
·
verified ·
1 Parent(s): 98d097f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -37,7 +37,7 @@ pipe = DiffusionPipeline.from_pretrained(
37
  feature_extractor=feature_extractor,
38
  torch_dtype=torch.bfloat16,
39
  use_safetensors=True,
40
- device_map="auto", # automatically spreads submodules CPU/GPU
41
  offload_folder="offload" # where to spill CPU-offloaded weights
42
  )
43
 
 
37
  feature_extractor=feature_extractor,
38
  torch_dtype=torch.bfloat16,
39
  use_safetensors=True,
40
+ device_map="balanced", # automatically spreads submodules CPU/GPU
41
  offload_folder="offload" # where to spill CPU-offloaded weights
42
  )
43