[PR #39] [MERGED] enable metal gpu acceleration #41188

Closed
opened 2026-04-24 21:06:42 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/39
Author: @mxyng
Created: 7/6/2023
Status: Merged
Merged: 7/6/2023
Merged by: @mxyng

Base: goHead: go-metal


📝 Commits (1)

  • f8ff2d6 enable metal gpu acceleration

📊 Changes

3 files changed (+15 additions, -15 deletions)

View changed files

📝 llama/CMakeLists.txt (+9 -14)
llama/llama_metal.go (+5 -0)
📝 server/routes.go (+1 -1)

📄 Description

ggml-metal.metal must be in the same directory as the ollama binary otherwise llama.cpp will not be able to find it and load it.

  1. go generate llama/llama_metal.go
  2. go build .
  3. ./ollama serve

🔄 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/39 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 7/6/2023 **Status:** ✅ Merged **Merged:** 7/6/2023 **Merged by:** [@mxyng](https://github.com/mxyng) **Base:** `go` ← **Head:** `go-metal` --- ### 📝 Commits (1) - [`f8ff2d6`](https://github.com/ollama/ollama/commit/f8ff2d6879379c4bb658116afecc98d9b5c65f5e) enable metal gpu acceleration ### 📊 Changes **3 files changed** (+15 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `llama/CMakeLists.txt` (+9 -14) ➕ `llama/llama_metal.go` (+5 -0) 📝 `server/routes.go` (+1 -1) </details> ### 📄 Description ggml-metal.metal must be in the same directory as the ollama binary otherwise llama.cpp will not be able to find it and load it. 1. go generate llama/llama_metal.go 2. go build . 3. ./ollama serve --- <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-24 21:06:42 -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#41188