Repository navigation
Let WinUI select the serving GPU - #700
Merged
Merged
Conversation
WinUI always passed GPU 0 to the model loader, so users with multiple GPUs could not run a single-GPU core on another card. The loader already accepts a CUDA device index for the core's single rank. Add a Serving GPU dropdown backed by the NVIDIA device inventory. Save the visible device index with desktop runtime settings and pass it to the loader on the next model load or reload. Discovery, automatic download revision selection, and compatibility checks use the saved GPU. While serving, the dashboard reports memory for the active GPU. Users can direct a single-GPU core to the card that fits their workload. Existing settings without a GPU selection use GPU 0. WinUI accepts cores prepared for one local GPU. The Windows ARM64 single-file build and release suites passed for Flare and the WinUI bridge, including settings persistence, rejection of a negative index, and a compatibility check against GPU 1 metadata. Three legacy fixture tests and one child-process helper were ignored by the Flare suite. UI automation verified selection and saving on RTX Spark N1X. The author confirmed the dropdown listed both RTX PRO and GB300 on a DGX Station running Windows. End-to-end serving after switching to a nonzero GPU remains unverified. Design-Signed-Off-By: Codex (gpt-6.2-sol); design-review=2e5b
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.
WinUI always loaded single-GPU cores on GPU 0. On a machine with more than one GPU, that prevented users from choosing the card with a compatible architecture or enough free memory. The native loader already accepts a device index for the core’s single rank, so the desktop can pass the choice through its existing model load flow.
Settings → Server → Serving GPU lists visible NVIDIA cards by CUDA index, name, and reported memory when available. WinUI saves the selected index in
desktop-state.jsonand passes it to the loader on the next load or reload. Discovery, automatic download revision selection, and model compatibility checks use the saved GPU. After a setting change, the dashboard continues to report memory for the GPU running the active model until reload.Users can choose which card runs a single-GPU core. Settings without a saved choice default to GPU 0. WinUI accepts cores prepared for one local GPU.
End-to-end serving after switching to a nonzero GPU remains unverified.
Discord: eugr