Spaces:
Sleeping
Sleeping
error fix 5.50.0
Browse files- .gitignore +1 -0
- app.py +1 -1
.gitignore
CHANGED
|
@@ -167,3 +167,4 @@ cython_debug/
|
|
| 167 |
/temp_models
|
| 168 |
/modules/__pycache__
|
| 169 |
/.github
|
|
|
|
|
|
| 167 |
/temp_models
|
| 168 |
/modules/__pycache__
|
| 169 |
/.github
|
| 170 |
+
/modules/mazlib/__pycache__
|
app.py
CHANGED
|
@@ -609,7 +609,7 @@ def ensure_pipelines_for_model(model_name: str, use_safetensors: bool = False, i
|
|
| 609 |
use_safetensors=use_safetensors,
|
| 610 |
local_files_only=True,
|
| 611 |
)
|
| 612 |
-
flux2_cpu_offload_enabled = should_enable_flux2_cpu_offload(
|
| 613 |
if flux2_cpu_offload_enabled:
|
| 614 |
pipe.enable_model_cpu_offload()
|
| 615 |
print(f"FLUX.2 CPU offload enabled (VRAM: {get_total_vram_gb():.2f} GB)")
|
|
|
|
| 609 |
use_safetensors=use_safetensors,
|
| 610 |
local_files_only=True,
|
| 611 |
)
|
| 612 |
+
flux2_cpu_offload_enabled = should_enable_flux2_cpu_offload(60.0)
|
| 613 |
if flux2_cpu_offload_enabled:
|
| 614 |
pipe.enable_model_cpu_offload()
|
| 615 |
print(f"FLUX.2 CPU offload enabled (VRAM: {get_total_vram_gb():.2f} GB)")
|