[PR #5926] [MERGED] Prevent loading too large models on windows #37839

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

📋 Pull Request Information

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

Base: mainHead: win_max_mem


📝 Commits (1)

  • 9126d51 Prevent loading too large models on windows

📊 Changes

1 file changed (+3 additions, -2 deletions)

View changed files

📝 llm/server.go (+3 -2)

📄 Description

We already blocked linux memory exhaustion, but should apply the same check for Windows as well

We can't apply the same logic to MacOS, as it uses fully dynamic swap space and has no concept of free swap space.

Fixes #5882
Fixes #4955
Fixes #5958


🔄 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/5926 **Author:** [@dhiltgen](https://github.com/dhiltgen) **Created:** 7/24/2024 **Status:** ✅ Merged **Merged:** 8/11/2024 **Merged by:** [@jmorganca](https://github.com/jmorganca) **Base:** `main` ← **Head:** `win_max_mem` --- ### 📝 Commits (1) - [`9126d51`](https://github.com/ollama/ollama/commit/9126d51b68da16cae27f10632216a344e5a284ef) Prevent loading too large models on windows ### 📊 Changes **1 file changed** (+3 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `llm/server.go` (+3 -2) </details> ### 📄 Description We already blocked linux memory exhaustion, but should apply the same check for Windows as well We can't apply the same logic to MacOS, as it uses fully dynamic swap space and has no concept of free swap space. Fixes #5882 Fixes #4955 Fixes #5958 --- <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:30: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#37839