threads = None let sd.cpp default to the logical-core count. The diffusion CPU path is compute-bound GGML matmuls, where oversubscribing hyperthreads adds scheduling contention without extra throughput, so both the persistent server and the one-shot sd-cli now pass cpu_count // 2 (min 1, fallback 8). |
||
|---|---|---|
| .. | ||
| assets | ||
| auth | ||
| core | ||
| hub | ||
| loggers | ||
| models | ||
| plugins | ||
| requirements | ||
| routes | ||
| state | ||
| storage | ||
| tests | ||
| utils | ||
| __init__.py | ||
| _platform_compat.py | ||
| cloudflare_tunnel.py | ||
| colab.py | ||
| main.py | ||
| run.py | ||
| startup_banner.py | ||