[PR #6218] [CLOSED] fix memory #12055

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

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/6218
Author: @mxyng
Created: 8/7/2024
Status: Closed

Base: mainHead: mxyng/fix-memory


📝 Commits (1)

📊 Changes

2 files changed (+43 additions, -19 deletions)

View changed files

📝 llm/memory.go (+25 -19)
📝 llm/memory_test.go (+18 -0)

📄 Description

memoryWeight includes KV per layer so KV gets counted twice

weights.total and weights.repeating were miscounted


🔄 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/6218 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 8/7/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `mxyng/fix-memory` --- ### 📝 Commits (1) - [`69207b4`](https://github.com/ollama/ollama/commit/69207b4987cd4b36e2168bed7d6137879e3d8efb) fix memory ### 📊 Changes **2 files changed** (+43 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `llm/memory.go` (+25 -19) 📝 `llm/memory_test.go` (+18 -0) </details> ### 📄 Description `memoryWeight` includes KV per layer so KV gets counted twice `weights.total` and `weights.repeating` were miscounted --- <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:48:01 -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#12055