[PR #5521] [MERGED] gpu: report system free memory instead of 0 #37688

Closed
opened 2026-04-22 22:22:07 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/5521
Author: @jmorganca
Created: 7/6/2024
Status: Merged
Merged: 7/6/2024
Merged by: @jmorganca

Base: mainHead: jmorganca/darwin-free


📝 Commits (1)

  • c9d2bb2 gpu: report system free memory instead of 0

📊 Changes

3 files changed (+26 additions, -3 deletions)

View changed files

📝 gpu/gpu_darwin.go (+1 -1)
📝 gpu/gpu_info_darwin.h (+1 -0)
📝 gpu/gpu_info_darwin.m (+24 -2)

📄 Description

After https://github.com/ollama/ollama/pull/5469, no model will run on CPU on macOS because we always report system available memory as 0. This PR adds system/cpu memory detection to avoid erroring.


🔄 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/5521 **Author:** [@jmorganca](https://github.com/jmorganca) **Created:** 7/6/2024 **Status:** ✅ Merged **Merged:** 7/6/2024 **Merged by:** [@jmorganca](https://github.com/jmorganca) **Base:** `main` ← **Head:** `jmorganca/darwin-free` --- ### 📝 Commits (1) - [`c9d2bb2`](https://github.com/ollama/ollama/commit/c9d2bb28a25abc05ad04249c56ca92f7b8838395) gpu: report system free memory instead of 0 ### 📊 Changes **3 files changed** (+26 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `gpu/gpu_darwin.go` (+1 -1) 📝 `gpu/gpu_info_darwin.h` (+1 -0) 📝 `gpu/gpu_info_darwin.m` (+24 -2) </details> ### 📄 Description After https://github.com/ollama/ollama/pull/5469, no model will run on CPU on macOS because we always report system available memory as 0. This PR adds system/cpu memory detection to avoid erroring. --- <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-22 22:22:07 -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#37688