[PR #10721] ggml: Seperate tensor load from backend creation #13342

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

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

State: closed
Merged: Yes


Currently, when the backend is created, the tensors are loaded at the same time, which is a slow operation. This separates them to be two steps:

  • Create backend, including enumerating tensors and memory allocation
  • Loading tensor data

This allows more flexibility in managing model loading.

**Original Pull Request:** https://github.com/ollama/ollama/pull/10721 **State:** closed **Merged:** Yes --- Currently, when the backend is created, the tensors are loaded at the same time, which is a slow operation. This separates them to be two steps: - Create backend, including enumerating tensors and memory allocation - Loading tensor data This allows more flexibility in managing model loading.
GiteaMirror added the pull-request label 2026-04-13 00:24:21 -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#13342