[PR #768] [MERGED] fix memory check #10318

Closed
opened 2026-04-12 22:58:02 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/768
Author: @mxyng
Created: 10/12/2023
Status: Merged
Merged: 10/16/2023
Merged by: @mxyng

Base: mainHead: mxyng/bytes


📝 Commits (5)

📊 Changes

4 files changed (+50 additions, -50 deletions)

View changed files

📝 api/client.go (+2 -1)
📝 format/bytes.go (+13 -6)
📝 llm/llama.go (+12 -12)
📝 llm/llm.go (+23 -31)

📄 Description

only do a system memory check on macos which has unified memory. on other platforms, rely on the vram offloading


🔄 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/768 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 10/12/2023 **Status:** ✅ Merged **Merged:** 10/16/2023 **Merged by:** [@mxyng](https://github.com/mxyng) **Base:** `main` ← **Head:** `mxyng/bytes` --- ### 📝 Commits (5) - [`92189a5`](https://github.com/ollama/ollama/commit/92189a58553ac88edf19ea5a8834478bd5fd6d86) fix memory check - [`bd6e38f`](https://github.com/ollama/ollama/commit/bd6e38fb1afed8c570d6a5f7eb87082f5221426a) refactor memory check - [`4a8931f`](https://github.com/ollama/ollama/commit/4a8931f634405ec3450c4e61a2619516b280dfc3) check total (system + video) memory - [`36fe2de`](https://github.com/ollama/ollama/commit/36fe2deebf257a7602ab9b3f830ff3b074e04814) only check system memory on macos - [`11d82d7`](https://github.com/ollama/ollama/commit/11d82d7b9b94b971ee2965d9a683a80e4929097a) update checkvram ### 📊 Changes **4 files changed** (+50 additions, -50 deletions) <details> <summary>View changed files</summary> 📝 `api/client.go` (+2 -1) 📝 `format/bytes.go` (+13 -6) 📝 `llm/llama.go` (+12 -12) 📝 `llm/llm.go` (+23 -31) </details> ### 📄 Description only do a system memory check on macos which has unified memory. on other platforms, rely on the vram offloading --- <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 22:58:02 -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#10318