File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -100,9 +100,16 @@ jobs:
100100 # The official install.sh spends ~1.5 minutes creating a system user and
101101 # a systemd service that CI does not need; extracting the tarball and
102102 # running `ollama serve` directly takes seconds.
103+ # The version is pinned so an upstream release cannot silently break CI.
103104 - name : Set up Llama
104105 run : |
105- curl -fsSL https://github.com/ollama/ollama/releases/latest/download/ollama-linux-amd64.tar.zst | sudo tar --zstd -xf - -C /usr/local
106+ curl -fsSL https://github.com/ollama/ollama/releases/download/v0.32.0/ollama-linux-amd64.tar.zst | sudo tar --zstd -xf - -C /usr/local
107+ # TODO: temporary workaround — the Sapphire Rapids CPU backend
108+ # segfaults during first inference (ollama/ollama#17006,
109+ # ollama/ollama#17205); removing it makes ollama fall back to a
110+ # slower generic backend that works on every runner. Drop this line
111+ # once the pin moves to a release that fixes those issues.
112+ sudo rm -f /usr/local/lib/ollama/libggml-cpu-sapphirerapids.so
106113 nohup ollama serve > "$RUNNER_TEMP/ollama-serve.log" 2>&1 &
107114 timeout 60 bash -c 'until curl -fsS http://127.0.0.1:11434/api/tags > /dev/null; do sleep 1; done'
108115 ollama pull llama3.2:latest
You can’t perform that action at this time.
0 commit comments