Skip to content

Studio: expose gpu_ids / gguf_memory_mode in load+status responses and wire the frontend so they round-trip #7210

Closed

Description

@danielhanchen

Follow-up from #7188 (which adds GGUF gpu_ids and gguf_memory_mode on /load + /validate).

Gap

The new placement settings are accepted on /load but are not exposed on LoadResponse or the inference status response, and the Studio frontend does not send or remember them. Two coupled halves:

  1. Response round-trip (backend): LoadResponse and the status builders do not include gpu_ids / gguf_memory_mode. A client that hydrates an Apply/reload from the current status therefore omits them; because _request_matches_loaded_settings treats omitted values as auto/None, the follow-up reloads the model and drops the explicit GPU pin or memory mode.
  2. Frontend wiring: LoadModelRequest/ValidateModelRequest types and the settings sheet do not carry gpu_ids / gguf_memory_mode, so normal Studio users cannot set them; only manually constructed API calls can.

Reachability

Currently latent: with no consumer sending these fields (the frontend is not wired and the fields are new in #7188), no client performs a status-hydrated re-Apply that carries them, so nothing drops today. It becomes reachable as soon as the settings are consumed. Fixing it belongs with wiring the frontend, hence tracked here rather than in #7188 (which keeps to backend load-path correctness).

Suggested scope

  • Add gpu_ids and gguf_memory_mode to LoadResponse and the inference status response, populated from LlamaCppBackend.gpu_ids / .memory_mode.
  • Add the fields to the frontend request types + settings sheet, and include them in dirty-state / reset / remembered-load handling so an Apply preserves them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions