bonsai: graceful no-CUDA fallback and declare imagegen unit #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/imagegen-external-and-gpu-graceful"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two admin-UI fixes for hosts without an NVIDIA GPU.
Graceful no-CUDA fallback -- with no CUDA GPU the torch/gemlite import crashes bonsai-backend on load, which cascades (the frontend depends on it) and shows the whole app as degraded. This probes torch.cuda before starting the real backend and, when unavailable, serves a small stand-in that returns a clear NVIDIA-GPU-required page so the units stay healthy. The imagegen UI now passes the backend error text through so the message is shown verbatim.
imagegen mislabeled External -- its catalog entry had no systemd-service-names, so the admin UI fell back to labeling this on-box app as an External reverse proxy. Declaring bonsai-imagegen makes it report real run-state.
Verified on the live AMD box (no NVIDIA): backend previously crash-looped with No-CUDA-GPUs-are-available.