mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-28 19:16:33 +00:00
scripts/diagnostica_termica/ lets someone who wants to run the engine on their own hardware see how hot it gets and why, without installing anything beyond Python and the NVIDIA driver. termico.py samples nvidia-smi (temperature, power, clocks, utilization, memory and the throttling reasons) during a guided session in phases (idle, engine, chat, both together), or continuously with `osserva`. With --motore it adds, on the same timeline, what sd-server reports in /sdcpp/v1/health and /resources (busy, queue, jobs succeeded, failed and cancelled, profile step-downs, free memory). It writes a CSV, a JSON summary (termico-riepilogo/1) and a text report, and `confronta` puts several runs side by side (termico-confronto/1). For other programs, `osserva --file-stato` keeps a file with the latest reading (termico-stato/1, replaced atomically so a reader never sees half of it) and `stato` prints one reading with exit codes 0, 1, 2 and 3. Temperature bands start from the limits the driver declares (attention 10 C below the slowdown limit, critical 3 C below) or from 80 and 87 C when it does not say. Bands and judgments are labeled as indicative, and a judgment is given only for phases that involve the engine or the chat and for observations of at least 180 seconds. carico_motore.py makes sd-server generate continuously with always the same job, so a run has a repeatable load. It honors Retry-After, sends the API key only when asked, and stops its own job on Ctrl+C. The README is a step-by-step guide in Italian: first run in two minutes, the full run, reading the results, observing without phases, comparing, what the files contain, what the program does on the PC, common problems and how to share a run. Checked with a fake nvidia-smi and fake engines (test/termico_test.py, next commit) and against a real sd-server built for CPU with the synthetic model. Not checked: a real NVIDIA GPU and driver output, Windows, laptops with more than one GPU, sessions of many hours. Claude-Session: https://claude.ai/code/session_01EhZzDBkuuMp1jBf4WtEySC |
||
|---|---|---|
| .. | ||
| diagnostica_termica | ||
| build-engine.ps1 | ||
| build-engine.sh | ||
| build-windows-gpu.ps1 | ||
| convert_fp8_scale_to_bf16.py | ||
| convert_qwen3_vl.py | ||
| convert_sefi.py | ||
| convert_yolov8_to_safetensors.py | ||
| face_detect.py | ||
| format-code.ps1 | ||
| format-code.sh | ||
| merge_safetensors.py | ||
| package_portable.sh | ||
| pulid_extract_id.py | ||
| remove_utf8_bom.py | ||