[PR #5637] [MERGED] llm: avoid loading model if system memory is too small #43112

Closed
opened 2026-04-24 22:47:56 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

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

Base: mainHead: jmorganca/mem-available


📝 Commits (4)

  • de6dccd llm: avoid loading model if system memory is too small
  • b393519 update log
  • 8ec380d Instrument swap free space
  • 1e6375d use systemSwapFreeMemory in check

📊 Changes

6 files changed (+22 additions, -13 deletions)

View changed files

📝 gpu/gpu.go (+3 -0)
📝 gpu/gpu_darwin.go (+1 -0)
📝 gpu/gpu_linux.go (+9 -8)
📝 gpu/gpu_windows.go (+1 -1)
📝 gpu/types.go (+1 -0)
📝 llm/server.go (+7 -4)

📄 Description

No description provided


🔄 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/5637 **Author:** [@jmorganca](https://github.com/jmorganca) **Created:** 7/11/2024 **Status:** ✅ Merged **Merged:** 7/11/2024 **Merged by:** [@jmorganca](https://github.com/jmorganca) **Base:** `main` ← **Head:** `jmorganca/mem-available` --- ### 📝 Commits (4) - [`de6dccd`](https://github.com/ollama/ollama/commit/de6dccd9af24f447fb4ef65f3d3d48f8f5685eb3) llm: avoid loading model if system memory is too small - [`b393519`](https://github.com/ollama/ollama/commit/b393519a715584faf8313cda2595339d4b365b0c) update log - [`8ec380d`](https://github.com/ollama/ollama/commit/8ec380dc0944b7e2e5572f9594bca90396914870) Instrument swap free space - [`1e6375d`](https://github.com/ollama/ollama/commit/1e6375debd88b92bbb9e70a349e35874565d9dac) use `systemSwapFreeMemory` in check ### 📊 Changes **6 files changed** (+22 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `gpu/gpu.go` (+3 -0) 📝 `gpu/gpu_darwin.go` (+1 -0) 📝 `gpu/gpu_linux.go` (+9 -8) 📝 `gpu/gpu_windows.go` (+1 -1) 📝 `gpu/types.go` (+1 -0) 📝 `llm/server.go` (+7 -4) </details> ### 📄 Description _No description provided_ --- <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-24 22:47:56 -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#43112