[PR #11003] server: do partial gguf kv read for capability check #13410

Closed
opened 2026-04-13 00:26:24 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/ollama/ollama/pull/11003

State: closed
Merged: No


Adding model capabilities to the tags endpoint caused slow responses in cases with many models.
https://github.com/ollama/ollama/pull/10174#issuecomment-2948892454

This change uses the new partial gguf reading capability to speed up the response. Comparison below:

before returning capabilities:
❯ time ollama ls
ollama ls  0.01s user 0.01s system 78% cpu 0.028 total

return capabilities with full file read:
❯ time ollama ls
ollama ls  0.01s user 0.01s system 3% cpu 0.505 total

returning capabilities with partial read:
❯ time ollama ls
ollama ls  0.01s user 0.01s system 5% cpu 0.345 total
**Original Pull Request:** https://github.com/ollama/ollama/pull/11003 **State:** closed **Merged:** No --- Adding model capabilities to the `tags` endpoint caused slow responses in cases with many models. https://github.com/ollama/ollama/pull/10174#issuecomment-2948892454 This change uses the new partial gguf reading capability to speed up the response. Comparison below: ``` before returning capabilities: ❯ time ollama ls ollama ls 0.01s user 0.01s system 78% cpu 0.028 total return capabilities with full file read: ❯ time ollama ls ollama ls 0.01s user 0.01s system 3% cpu 0.505 total returning capabilities with partial read: ❯ time ollama ls ollama ls 0.01s user 0.01s system 5% cpu 0.345 total ```
GiteaMirror added the pull-request label 2026-04-13 00:26:24 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#13410