GeradeHouse commited on
Commit
aec65ff
·
verified ·
1 Parent(s): 47b7da6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,7 +1,7 @@
1
  #!/usr/bin/env python
2
  """
3
  Gradio demo for Wan2.1 First-Last-Frame-to-Video (FLF2V)
4
- Uses Accelerate’s automatic device mapping for optimal CPU/GPU placement.
5
  Author: <your-handle>
6
  """
7
 
@@ -39,7 +39,7 @@ def load_pipeline():
39
  image_encoder=image_encoder,
40
  torch_dtype=DTYPE,
41
  low_cpu_mem_usage=True, # lazy-load weights into CPU RAM
42
- device_map="auto", # auto-split across CPU/GPU
43
  )
44
 
45
  # 4) use the fast Rust-backed processor
 
1
  #!/usr/bin/env python
2
  """
3
  Gradio demo for Wan2.1 First-Last-Frame-to-Video (FLF2V)
4
+ Uses Accelerate’s balanced device mapping for optimal CPU/GPU placement.
5
  Author: <your-handle>
6
  """
7
 
 
39
  image_encoder=image_encoder,
40
  torch_dtype=DTYPE,
41
  low_cpu_mem_usage=True, # lazy-load weights into CPU RAM
42
+ device_map="balanced", # balanced CPU/GPU sharding
43
  )
44
 
45
  # 4) use the fast Rust-backed processor