Skip to content

miyako/ollama

Repository files navigation

version platform license downloads

ollama

Local inference engine

aknowledgements: ollama/ollama

Apple Silicon

cmake -S . -B build_arm -DUSE_ACCELERATE=ON 
cmake --build build_arm --config Release
GOARCH=arm64 GOOS=darwin go build -o ollama main.go

Intel

cmake -S . -B build_amd
cmake --build build_amd --config Release
export CGO_ENABLED=1
GOARCH=amd64 GOOS=darwin go build -o ollama main.go

Windows

cmake -S . -B build -A x64
cmake --build build --config Release
  • install MSYS2 (ARM if Windows on ARM)
  • set path to gcc
set PATH=C:\msys64\mingw64\bin;%PATH%
  • build go
set CGO_ENABLED=1
set GOARCH=amd64
set GOOS=windows
go build -o ollama.exe main.go