From 0514f5b67b17072275cba1cbb90780e0d57d8e4f Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 13 Jun 2026 20:08:55 +0000 Subject: [PATCH] Fix AttributeError: GpuCapabilities has no attribute 'vram_gb' 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 --- backend/app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/main.py b/backend/app/main.py index 769607f..93c09fb 100644 --- a/backend/app/main.py +++ b/backend/app/main.py @@ -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: