GPU local inference, print presets, progress bars, selection actions

main.py referenced info.vram_gb but the field is info.vram_total_gb.
This crashed the FastAPI lifespan hook on every startup when
AI_PROVIDER=local_gpu, causing a restart loop.

https://claude.ai/code/session_01WVDg7amsy1TTtxvpku7bcM

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Outis
2026-06-13 16:12:44 -04:00
committed by GitHub
co-authored by Claude
parent a6542cfc73
commit 523aa6971d
+1 -1
View File
@@ -41,7 +41,7 @@ async def lifespan(app: FastAPI):
info = get_cached_gpu_info()
cc_str = f" | CC={info.compute_capability}" if info.compute_capability else ""
print(
f"[gpu] {info.device_name} | {info.vram_gb:.1f} GB{cc_str} | "
f"[gpu] {info.device_name} | {info.vram_total_gb:.1f} GB{cc_str} | "
f"tier={info.tier} | fp16={info.fp16}"
)
for w in info.warnings: