Skip to content

Commit 4ef193b

Browse files
acrocasicoyle
andauthored
Fix ollama segfault (#1161)
Signed-off-by: Albert Callarisa <albert@diagrid.io> Co-authored-by: Sam <sam@diagrid.io>
1 parent a9445f9 commit 4ef193b

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/run-tests.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)