[PR #15584] [CLOSED] MLX Closures #20439

Closed
opened 2026-04-16 07:37:56 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/15584
Author: @jessegross
Created: 4/14/2026
Status: Closed

Base: mainHead: origin/jessegross/closures


📝 Commits (2)

  • 3f8e0af mlx: add compiled closure support
  • 27d7bd3 models: fuse MLP activation functions via mlx_compile

📊 Changes

12 files changed (+492 additions, -84 deletions)

View changed files

📝 x/mlxrunner/mlx/act.go (+38 -56)
📝 x/mlxrunner/mlx/array.go (+13 -1)
x/mlxrunner/mlx/compile.go (+239 -0)
x/mlxrunner/mlx/compile_test.go (+166 -0)
📝 x/mlxrunner/mlx/mlx.go (+13 -0)
📝 x/mlxrunner/mlx/ops_extra.go (+0 -5)
📝 x/mlxrunner/pipeline.go (+0 -9)
📝 x/mlxrunner/runner.go (+14 -0)
📝 x/models/glm4_moe_lite/glm4_moe_lite.go (+4 -8)
📝 x/models/llama/llama.go (+1 -1)
📝 x/models/qwen3/qwen3.go (+1 -1)
📝 x/models/qwen3_5/qwen3_5.go (+3 -3)

📄 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/15584 **Author:** [@jessegross](https://github.com/jessegross) **Created:** 4/14/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `origin/jessegross/closures` --- ### 📝 Commits (2) - [`3f8e0af`](https://github.com/ollama/ollama/commit/3f8e0af0450c1516d089e52bc415b2af49a6b946) mlx: add compiled closure support - [`27d7bd3`](https://github.com/ollama/ollama/commit/27d7bd37a7a21e35f6461c5f0719725ab3bbf01f) models: fuse MLP activation functions via mlx_compile ### 📊 Changes **12 files changed** (+492 additions, -84 deletions) <details> <summary>View changed files</summary> 📝 `x/mlxrunner/mlx/act.go` (+38 -56) 📝 `x/mlxrunner/mlx/array.go` (+13 -1) ➕ `x/mlxrunner/mlx/compile.go` (+239 -0) ➕ `x/mlxrunner/mlx/compile_test.go` (+166 -0) 📝 `x/mlxrunner/mlx/mlx.go` (+13 -0) 📝 `x/mlxrunner/mlx/ops_extra.go` (+0 -5) 📝 `x/mlxrunner/pipeline.go` (+0 -9) 📝 `x/mlxrunner/runner.go` (+14 -0) 📝 `x/models/glm4_moe_lite/glm4_moe_lite.go` (+4 -8) 📝 `x/models/llama/llama.go` (+1 -1) 📝 `x/models/qwen3/qwen3.go` (+1 -1) 📝 `x/models/qwen3_5/qwen3_5.go` (+3 -3) </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-16 07:37: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#20439