[PR #5712] [MERGED] Add Windows arm64 support to official builds #43144

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

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/5712
Author: @dhiltgen
Created: 7/15/2024
Status: Merged
Merged: 9/20/2024
Merged by: @dhiltgen

Base: mainHead: win_arm


📝 Commits (3)

  • bfcdad7 Unified arm/x86 windows installer
  • dd32977 Include arm64 in official windows build
  • c262bb7 Harden schedule test for slow windows timers

📊 Changes

8 files changed (+310 additions, -44 deletions)

View changed files

📝 .github/workflows/release.yaml (+130 -1)
📝 app/ollama.iss (+55 -6)
📝 docs/development.md (+19 -0)
📝 llm/ext_server/CMakeLists.txt (+1 -0)
📝 llm/generate/gen_windows.ps1 (+52 -14)
📝 llm/llm.go (+1 -1)
📝 scripts/build_windows.ps1 (+50 -20)
📝 server/sched_test.go (+2 -2)

📄 Description

Wire up CI and build rigging to generate a unified Windows installer with x64 and arm64 payloads. At install time, the correct binaries will be installed for the platform.

I was unable to find a combination of hand-picked msvc redist DLLs manually that yielded a working setup on a pristine Windows 11 install, but running the vc_redist installer works reliably, so for arm64, we run the nested installer conditionally. If it is already installed, that step will be skipped.

Fixes #2589

Note: I've tested most of the CI steps in the PR, but signing isn't yet verified and might require minor fixes on the first release after this merges.

Resulting build artifacts: (Note: current OllamaSetup.exe with only x64 binaries is 273MB)

% ls -lh dist/
total 932M
-rw-r--r-- 1 daniel 197609  12K Jul 17 09:24 ollama_welcome.ps1
-rwxr-xr-x 1 daniel 197609 291M Jul 17 09:27 OllamaSetup.exe*
-rw-r--r-- 1 daniel 197609 649M Jul 17 09:27 ollama-windows-amd64.zip
-rw-r--r-- 1 daniel 197609  20M Jul 19 15:41 ollama-windows-arm64.zip
drwxr-xr-x 1 daniel 197609    0 Jul 17 09:24 windows-amd64/
-rwxr-xr-x 1 daniel 197609 5.9M Jul 17 09:24 windows-amd64-app.exe*
drwxr-xr-x 1 daniel 197609    0 Jul 16 15:53 windows-arm64/
-rwxr-xr-x 1 daniel 197609 5.5M Jul 16 16:12 windows-arm64-app.exe*
% du -sh dist/windows-a*64
2.1G    dist/windows-amd64
37M     dist/windows-arm64

On a Snapdragon X 12-core laptop:

> ollama run --verbose llama3 why is the sky blue
...
total duration:       23.6819409s
load duration:        4.738127s
prompt eval count:    16 token(s)
prompt eval duration: 430.297ms
prompt eval rate:     37.18 tokens/s
eval count:           348 token(s)
eval duration:        18.513796s
eval rate:            18.80 tokens/s

🔄 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/5712 **Author:** [@dhiltgen](https://github.com/dhiltgen) **Created:** 7/15/2024 **Status:** ✅ Merged **Merged:** 9/20/2024 **Merged by:** [@dhiltgen](https://github.com/dhiltgen) **Base:** `main` ← **Head:** `win_arm` --- ### 📝 Commits (3) - [`bfcdad7`](https://github.com/ollama/ollama/commit/bfcdad749e9f3c21714da4c97b55aab36d1e2b16) Unified arm/x86 windows installer - [`dd32977`](https://github.com/ollama/ollama/commit/dd32977dff68972bfdb7c6858bda654eb11ae559) Include arm64 in official windows build - [`c262bb7`](https://github.com/ollama/ollama/commit/c262bb703f416d5b4c884eba936d02019487e7f8) Harden schedule test for slow windows timers ### 📊 Changes **8 files changed** (+310 additions, -44 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/release.yaml` (+130 -1) 📝 `app/ollama.iss` (+55 -6) 📝 `docs/development.md` (+19 -0) 📝 `llm/ext_server/CMakeLists.txt` (+1 -0) 📝 `llm/generate/gen_windows.ps1` (+52 -14) 📝 `llm/llm.go` (+1 -1) 📝 `scripts/build_windows.ps1` (+50 -20) 📝 `server/sched_test.go` (+2 -2) </details> ### 📄 Description Wire up CI and build rigging to generate a unified Windows installer with x64 and arm64 payloads. At install time, the correct binaries will be installed for the platform. I was unable to find a combination of hand-picked msvc redist DLLs manually that yielded a working setup on a pristine Windows 11 install, but running the vc_redist installer works reliably, so for arm64, we run the nested installer conditionally. If it is already installed, that step will be skipped. Fixes #2589 Note: I've tested most of the CI steps in the PR, but signing isn't yet verified and might require minor fixes on the first release after this merges. Resulting build artifacts: (Note: current OllamaSetup.exe with only x64 binaries is 273MB) ``` % ls -lh dist/ total 932M -rw-r--r-- 1 daniel 197609 12K Jul 17 09:24 ollama_welcome.ps1 -rwxr-xr-x 1 daniel 197609 291M Jul 17 09:27 OllamaSetup.exe* -rw-r--r-- 1 daniel 197609 649M Jul 17 09:27 ollama-windows-amd64.zip -rw-r--r-- 1 daniel 197609 20M Jul 19 15:41 ollama-windows-arm64.zip drwxr-xr-x 1 daniel 197609 0 Jul 17 09:24 windows-amd64/ -rwxr-xr-x 1 daniel 197609 5.9M Jul 17 09:24 windows-amd64-app.exe* drwxr-xr-x 1 daniel 197609 0 Jul 16 15:53 windows-arm64/ -rwxr-xr-x 1 daniel 197609 5.5M Jul 16 16:12 windows-arm64-app.exe* % du -sh dist/windows-a*64 2.1G dist/windows-amd64 37M dist/windows-arm64 ``` On a Snapdragon X 12-core laptop: ``` > ollama run --verbose llama3 why is the sky blue ... total duration: 23.6819409s load duration: 4.738127s prompt eval count: 16 token(s) prompt eval duration: 430.297ms prompt eval rate: 37.18 tokens/s eval count: 348 token(s) eval duration: 18.513796s eval rate: 18.80 tokens/s ``` --- <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 22:49: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#43144