[PR #3478] [MERGED] refactor tensor query #11171

Closed
opened 2026-04-12 23:23:11 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/3478
Author: @mxyng
Created: 4/3/2024
Status: Merged
Merged: 4/10/2024
Merged by: @mxyng

Base: mainHead: mxyng/tensor-layer


📝 Commits (2)

📊 Changes

8 files changed (+134 additions, -110 deletions)

View changed files

📝 format/bytes.go (+1 -1)
📝 gpu/gpu.go (+3 -3)
📝 gpu/gpu_darwin.go (+3 -4)
📝 gpu/types.go (+1 -1)
📝 llm/ggla.go (+1 -1)
📝 llm/ggml.go (+74 -51)
📝 llm/gguf.go (+1 -1)
📝 llm/server.go (+50 -48)

📄 Description

create a layers container to hold tensors of the same layer as described by their tensor name. this makes it easy get layers as a whole as well as tensors within a certain layer


🔄 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/3478 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 4/3/2024 **Status:** ✅ Merged **Merged:** 4/10/2024 **Merged by:** [@mxyng](https://github.com/mxyng) **Base:** `main` ← **Head:** `mxyng/tensor-layer` --- ### 📝 Commits (2) - [`8b2c100`](https://github.com/ollama/ollama/commit/8b2c10061c4615b0eef4b39bc82d90a264fa9599) refactor tensor query - [`7e33a01`](https://github.com/ollama/ollama/commit/7e33a017c086d2dbde3be0a546d40818bb1e9c16) partial offloading ### 📊 Changes **8 files changed** (+134 additions, -110 deletions) <details> <summary>View changed files</summary> 📝 `format/bytes.go` (+1 -1) 📝 `gpu/gpu.go` (+3 -3) 📝 `gpu/gpu_darwin.go` (+3 -4) 📝 `gpu/types.go` (+1 -1) 📝 `llm/ggla.go` (+1 -1) 📝 `llm/ggml.go` (+74 -51) 📝 `llm/gguf.go` (+1 -1) 📝 `llm/server.go` (+50 -48) </details> ### 📄 Description create a layers container to hold tensors of the same layer as described by their tensor name. this makes it easy get layers as a whole as well as tensors within a certain layer --- <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-12 23:23:11 -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#11171