Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
Do not build AVX runners on ARM64
Hernan Martinez8a65717f556b
diff --git a/llm/generate/gen_windows.ps1 b/llm/generate/gen_windows.ps1index 3f27b5995..9bdfb9d34 100644--- a/llm/generate/gen_windows.ps1+++ b/llm/generate/gen_windows.ps1@@ -213,14 +213,10 @@ function build_static() {}}-function build_cpu() {+function build_cpu($gen_arch) {if ((-not "${env:OLLAMA_SKIP_CPU_GENERATE}" ) -and ((-not "${env:OLLAMA_CPU_TARGET}") -or ("${env:OLLAMA_CPU_TARGET}" -eq "cpu"))) {# remaining llama.cpp builds use MSVCinit_vars- $gen_arch = "x64"- if ($scrip:ARCH -eq "arm64") {- $gen_arch = "ARM64"- }$script:cmakeDefs = $script:commonCpuDefs + @("-A", $gen_arch, "-DLLAMA_AVX=off", "-DLLAMA_AVX2=off", "-DLLAMA_AVX512=off", "-DLLAMA_FMA=off", "-DLLAMA_F16C=off") + $script:cmakeDefs$script:buildDir="../build/windows/${script:ARCH}/cpu"$script:distDir="$script:DIST_BASE\cpu"@@ -353,11 +349,15 @@ if ($($args.count) -eq 0) {git_module_setupapply_patchesbuild_static- build_cpu- build_cpu_avx- build_cpu_avx2- build_cuda- build_rocm+ if ($script:ARCH -eq "arm64") {+ build_cpu("ARM64")+ } else { # amd64+ build_cpu("x64")+ build_cpu_avx+ build_cpu_avx2+ build_cuda+ build_rocm+ }cleanupwrite-host "`ngo generate completed. LLM runners: $(get-childitem -path $script:DIST_BASE)"