[PR #8051] feat: add option to specify runner name and path in env #12603

Open
opened 2026-04-13 00:04:24 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/8051
Author: @thewh1teagle
Created: 12/11/2024
Status: 🔄 Open

Base: mainHead: feat/custom-runner-path


📝 Commits (1)

  • f92debc feat: add option to specify runner name and path in env

📊 Changes

1 file changed (+9 additions, -1 deletions)

View changed files

📝 llm/server.go (+9 -1)

📄 Description

Add option to specify custom runner path.
This will be useful as a temporary solution for using vulkan until the related PR is merged.

macOS:

git clone https://github.com/thewh1teagle/ollama -b feat/custom-runner-path
cd ollama
echo "Building darwin arm64"
GOOS=darwin ARCH=arm64 GOARCH=arm64 make -j 8 dist
OLLAMA_DEBUG=true OLLAMA_RUNNER_NAME="cpu" OLLAMA_RUNNER_PATH="/path/to/custom/runner" ./dist/darwin-arm64/bin/ollama serve

Windows:

# https://www.msys2.org/ 

C:\msys64\msys2_shell.cmd -here -no-start -defterm -clang64
pacman -S --needed $MINGW_PACKAGE_PREFIX-{go,clang,vulkan-devel,github-cli} make git
git clone https://github.com/thewh1teagle/ollama -b feat/custom-runner-path
cd ollama
export GOROOT=/c/msys64/clang64/lib/go
export CGO_ENABLED="1"
export CC="clang"
export CXX="clang++"
make -j 8
go build .

OLLAMA_DEBUG=true OLLAMA_RUNNER_NAME="cpu" OLLAMA_RUNNER_PATH="/path/to/runner.exe" ./ollama.exe 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/8051 **Author:** [@thewh1teagle](https://github.com/thewh1teagle) **Created:** 12/11/2024 **Status:** 🔄 Open **Base:** `main` ← **Head:** `feat/custom-runner-path` --- ### 📝 Commits (1) - [`f92debc`](https://github.com/ollama/ollama/commit/f92debc34b765bf0f212f03143ba8cd6b7e73de9) feat: add option to specify runner name and path in env ### 📊 Changes **1 file changed** (+9 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `llm/server.go` (+9 -1) </details> ### 📄 Description Add option to specify custom runner path. This will be useful as a temporary solution for [using vulkan](https://github.com/ollama/ollama/pull/5059) until the related PR is merged. macOS: ```console git clone https://github.com/thewh1teagle/ollama -b feat/custom-runner-path cd ollama echo "Building darwin arm64" GOOS=darwin ARCH=arm64 GOARCH=arm64 make -j 8 dist OLLAMA_DEBUG=true OLLAMA_RUNNER_NAME="cpu" OLLAMA_RUNNER_PATH="/path/to/custom/runner" ./dist/darwin-arm64/bin/ollama serve ``` Windows: ```console # https://www.msys2.org/ C:\msys64\msys2_shell.cmd -here -no-start -defterm -clang64 pacman -S --needed $MINGW_PACKAGE_PREFIX-{go,clang,vulkan-devel,github-cli} make git git clone https://github.com/thewh1teagle/ollama -b feat/custom-runner-path cd ollama export GOROOT=/c/msys64/clang64/lib/go export CGO_ENABLED="1" export CC="clang" export CXX="clang++" make -j 8 go build . OLLAMA_DEBUG=true OLLAMA_RUNNER_NAME="cpu" OLLAMA_RUNNER_PATH="/path/to/runner.exe" ./ollama.exe 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-13 00:04:24 -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#12603