[PR #13701] Disable Metal Tensor API on failed compilation #19623

Open
opened 2026-04-16 07:12:05 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/13701
Author: @BhavayChopra
Created: 1/13/2026
Status: 🔄 Open

Base: mainHead: main


📝 Commits (2)

  • 5c803b8 Disable Metal tensor API when mixed bf16/f16 unsupported
  • 5b103f3 Merge pull request #1 from BhavayChopra/fix-issue-#13460-and-create-pr

📊 Changes

1 file changed (+50 additions, -0 deletions)

View changed files

📝 ml/backend/ggml/ggml/src/ggml-metal/ggml-metal-device.m (+50 -0)

📄 Description

Compile a tiny dummy kernel using tensor + tensor.

If compilation/pipeline creation fails, disable the tensor API for this device.

Keep the existing f16 and bf16 probes intact.


🔄 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/13701 **Author:** [@BhavayChopra](https://github.com/BhavayChopra) **Created:** 1/13/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (2) - [`5c803b8`](https://github.com/ollama/ollama/commit/5c803b8926ca72e6a9808f8968acae48c04ea55a) Disable Metal tensor API when mixed bf16/f16 unsupported - [`5b103f3`](https://github.com/ollama/ollama/commit/5b103f38568dbfb2777cad53fa01034b49502516) Merge pull request #1 from BhavayChopra/fix-issue-#13460-and-create-pr ### 📊 Changes **1 file changed** (+50 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `ml/backend/ggml/ggml/src/ggml-metal/ggml-metal-device.m` (+50 -0) </details> ### 📄 Description Compile a tiny dummy kernel using tensor<device bfloat> + tensor<device half>. If compilation/pipeline creation fails, disable the tensor API for this device. Keep the existing f16 and bf16 probes intact. --- <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:12:05 -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#19623