[PR #15808] fix: improve error handling for model loading in Scheduler #77608

Open
opened 2026-05-05 10:16:43 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/15808
Author: @famasoon
Created: 4/25/2026
Status: 🔄 Open

Base: mainHead: fix-potential-deadlocks


📝 Commits (1)

  • 6f9c1e0 fix: improve error handling for model loading in Scheduler

📊 Changes

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

View changed files

📝 server/sched.go (+4 -2)

📄 Description

Unlock mutex before panicking when attempting to load a different model after eviction, ensuring proper synchronization and preventing potential deadlocks.


🔄 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/15808 **Author:** [@famasoon](https://github.com/famasoon) **Created:** 4/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix-potential-deadlocks` --- ### 📝 Commits (1) - [`6f9c1e0`](https://github.com/ollama/ollama/commit/6f9c1e0a9f4776274da879f2b808d566e0cc0a5f) fix: improve error handling for model loading in Scheduler ### 📊 Changes **1 file changed** (+4 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `server/sched.go` (+4 -2) </details> ### 📄 Description Unlock mutex before panicking when attempting to load a different model after eviction, ensuring proper synchronization and preventing potential deadlocks. --- <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-05-05 10:16:43 -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#77608