feat: multiple GPUs support and async dashboard spinner - #5
Open
gmandelli wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Owlrun previously assumed a single GPU end-to-end. Detectors only parsed the first nvidia-smi line / first WMI result, model fit math used a single VRAM number, and the Ollama subprocess
was launched with invalid CUDA_VISIBLE_DEVICES=all syntax and no multi-GPU scheduling hints. This PR makes multi-GPU rigs first-class on Linux, Windows, and macOS (eGPU).
The gateway registration payload is intentionally not modified.
Not Tested: Windows, Apple Silicon
Changes
Detection (internal/gpu)
Ollama subprocess env (internal/inference)
Config (internal/config)
Dashboard (internal/dashboard)
Tray wiring (tray.go, tray_linux.go, tray_other.go)
cards.
call when Count < 2.
Installer (installer/install.sh, installer/install.ps1)
Behaviour changes for users
pooled VRAM with OLLAMA_SCHED_SPREAD=1 and triggers an Ollama restart + model reselection.
Async operation feedback
busyfield on/api/statusfor long-running ops.handleSetGPUSplitandhandleSwitchModelset it for the duration of thecall.
with a spinner and disables buttons/checkboxes while busy. Optimistic update
on click; server state takes over on the next poll.
Model download visualization fix
pulling_model(the tag currently being downloaded)alongside
pulling.every model whenever any pull was active. Fixed: only the model matching
pulling_modelshows the "Downloading…" spinner. Other installed models keeptheir Activate/Remove buttons; non-installed models render a disabled
Download button until the in-flight pull finishes.
What is NOT changed
Test plan