Spaces:
Paused
Paused
Update app.py
Browse files
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
|
| 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="
|
| 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
|