[PR #14211] [MERGED] bug: fix loading non-mlx models when ollama is built with mlx support #14571

Closed
opened 2026-04-13 00:58:18 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14211
Author: @pdevine
Created: 2/11/2026
Status: Merged
Merged: 2/11/2026
Merged by: @pdevine

Base: mainHead: pdevine/mlx-loading


📝 Commits (1)

  • 5024415 bug: fix loading non-mlx models when ollama is built with mlx support

📊 Changes

2 files changed (+19 additions, -2 deletions)

View changed files

📝 x/mlxrunner/mlx/dynamic.go (+13 -2)
📝 x/mlxrunner/server.go (+6 -0)

📄 Description

This change fixes an issue where GGML based models (for either the Ollama runner or the legacy llama.cpp runner) would try to load the mlx library. That would panic and the model fails to start.


🔄 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/14211 **Author:** [@pdevine](https://github.com/pdevine) **Created:** 2/11/2026 **Status:** ✅ Merged **Merged:** 2/11/2026 **Merged by:** [@pdevine](https://github.com/pdevine) **Base:** `main` ← **Head:** `pdevine/mlx-loading` --- ### 📝 Commits (1) - [`5024415`](https://github.com/ollama/ollama/commit/5024415353f9d647761043bb1ac8081f3f1656b2) bug: fix loading non-mlx models when ollama is built with mlx support ### 📊 Changes **2 files changed** (+19 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `x/mlxrunner/mlx/dynamic.go` (+13 -2) 📝 `x/mlxrunner/server.go` (+6 -0) </details> ### 📄 Description This change fixes an issue where GGML based models (for either the Ollama runner or the legacy llama.cpp runner) would try to load the mlx library. That would panic and the model fails to start. --- <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-13 00:58:18 -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#14571