[PR #9897] [MERGED] ml/backend/ggml: load tensors in 128KiB chunks #59785

Closed
opened 2026-04-29 14:43:26 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/9897
Author: @mxyng
Created: 3/20/2025
Status: Merged
Merged: 3/21/2025
Merged by: @mxyng

Base: mainHead: mxyng/chunk-load


📝 Commits (1)

  • 74bd096 ml/backend/ggml: load tensors in 32KiB chunks

📊 Changes

4 files changed (+58 additions, -30 deletions)

View changed files

📝 ml/backend.go (+5 -4)
📝 ml/backend/ggml/ggml.go (+44 -19)
📝 model/model.go (+3 -2)
📝 runner/ollamarunner/runner.go (+6 -5)

📄 Description

also set a limit for number of concurrent goroutines for loading tensors. this change also pipes the progress back to the parent process


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/9897 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 3/20/2025 **Status:** ✅ Merged **Merged:** 3/21/2025 **Merged by:** [@mxyng](https://github.com/mxyng) **Base:** `main` ← **Head:** `mxyng/chunk-load` --- ### 📝 Commits (1) - [`74bd096`](https://github.com/ollama/ollama/commit/74bd09652d69c77a4bed34b3afda74c87295115b) ml/backend/ggml: load tensors in 32KiB chunks ### 📊 Changes **4 files changed** (+58 additions, -30 deletions) <details> <summary>View changed files</summary> 📝 `ml/backend.go` (+5 -4) 📝 `ml/backend/ggml/ggml.go` (+44 -19) 📝 `model/model.go` (+3 -2) 📝 `runner/ollamarunner/runner.go` (+6 -5) </details> ### 📄 Description also set a limit for number of concurrent goroutines for loading tensors. this change also pipes the progress back to the parent process --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-29 14:43:26 -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#59785