[GH-ISSUE #7780] Add "loaded" status in Model API #4971

Closed
opened 2026-04-12 16:01:59 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @explorigin on GitHub (Nov 21, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/7780

Add an indicator to the models list API endpoint as well as the model information endpoint indicating if the model is currently loaded in RAM.

This could allow frontends to direct queries to the loaded model for faster response if the query isn't necessarily model-specific. Other use-cases could be for monitoring services to prefer keeping one model "hot" while other models may be used periodically.

Originally created by @explorigin on GitHub (Nov 21, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/7780 Add an indicator to the models list API endpoint as well as the model information endpoint indicating if the model is currently loaded in RAM. This could allow frontends to direct queries to the loaded model for faster response if the query isn't necessarily model-specific. Other use-cases could be for monitoring services to prefer keeping one model "hot" while other models may be used periodically.
GiteaMirror added the feature request label 2026-04-12 16:02:00 -05:00
Author
Owner

@rick-github commented on GitHub (Nov 21, 2024):

The currently loaded model(s) can be queried with /api/ps:

$ curl -s localhost:11434/api/ps | jq '.models[].name'
"qwen2.5:0.5b-8k"
"llama3.2:latest"
<!-- gh-comment-id:2491455585 --> @rick-github commented on GitHub (Nov 21, 2024): The currently loaded model(s) can be queried with `/api/ps`: ```console $ curl -s localhost:11434/api/ps | jq '.models[].name' "qwen2.5:0.5b-8k" "llama3.2:latest" ```
Author
Owner

@explorigin commented on GitHub (Nov 21, 2024):

Solid! That serves the purpose. Thanks!

<!-- gh-comment-id:2491654712 --> @explorigin commented on GitHub (Nov 21, 2024): Solid! That serves the purpose. Thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#4971