[GH-ISSUE #15480] Ollama fails to load MLX dynamic library on macOS #71956

Closed
opened 2026-05-05 03:09:38 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @anirbanbasu on GitHub (Apr 10, 2026).
Original GitHub issue: https://github.com/ollama/ollama/issues/15480

What is the issue?

Installed Ollama using Homebrew: brew install ollama.

Ollama works fine with models that do not require MLX support? However, ollama run qwen3.5:35b-a3b-coding-nvfp4 returns the following error.

Error: 500 Internal Server Error: mlx runner failed: Error: MLX not available: failed to load MLX dynamic library (searched: [/opt/homebrew/Cellar/ollama/0.20.5/bin/lib/ollama /opt/homebrew/Cellar/ollama/0.20.5/bin]) (exit: exit status 1)

Note that the solution noted in https://github.com/ollama/ollama/issues/15433#issuecomment-4211344690 does not work either.

Relevant log output


OS

macOS

GPU

Apple

CPU

Apple

Ollama version

0.20.5

Originally created by @anirbanbasu on GitHub (Apr 10, 2026). Original GitHub issue: https://github.com/ollama/ollama/issues/15480 ### What is the issue? Installed Ollama using Homebrew: `brew install ollama`. Ollama works fine with models that do not require MLX support? However, `ollama run qwen3.5:35b-a3b-coding-nvfp4` returns the following error. ``` Error: 500 Internal Server Error: mlx runner failed: Error: MLX not available: failed to load MLX dynamic library (searched: [/opt/homebrew/Cellar/ollama/0.20.5/bin/lib/ollama /opt/homebrew/Cellar/ollama/0.20.5/bin]) (exit: exit status 1) ``` Note that the solution noted in https://github.com/ollama/ollama/issues/15433#issuecomment-4211344690 does not work either. ### Relevant log output ```shell ``` ### OS macOS ### GPU Apple ### CPU Apple ### Ollama version 0.20.5
GiteaMirror added the bug label 2026-05-05 03:09:38 -05:00
Author
Owner

@anirbanbasu commented on GitHub (Apr 11, 2026):

ln -s "$(brew --prefix mlx-c)/lib/libmlxc.dylib" "$(brew --prefix ollama)/bin" works, as mentioned in https://github.com/ollama/ollama/issues/15433#issuecomment-4226686209, closing the issue.

<!-- gh-comment-id:4229098354 --> @anirbanbasu commented on GitHub (Apr 11, 2026): `ln -s "$(brew --prefix mlx-c)/lib/libmlxc.dylib" "$(brew --prefix ollama)/bin"` works, as mentioned in https://github.com/ollama/ollama/issues/15433#issuecomment-4226686209, closing the issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#71956