From 138679859b9844a8737f8dff1bf5a739e77e96c4 Mon Sep 17 00:00:00 2001 From: Hong Date: Fri, 27 Dec 2024 06:14:03 +0800 Subject: [PATCH] [Examples] Update Ollama setup commands (#4510) wip --- llm/ollama/ollama.yaml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/llm/ollama/ollama.yaml b/llm/ollama/ollama.yaml index 851dfe45dee..ed37c0ceb1b 100644 --- a/llm/ollama/ollama.yaml +++ b/llm/ollama/ollama.yaml @@ -47,13 +47,9 @@ service: setup: | # Install Ollama - if [ "$(uname -m)" == "aarch64" ]; then - # For apple silicon support - sudo curl -L https://ollama.com/download/ollama-linux-arm64 -o /usr/bin/ollama - else - sudo curl -L https://ollama.com/download/ollama-linux-amd64 -o /usr/bin/ollama - fi - sudo chmod +x /usr/bin/ollama + # official installation reference: https://ollama.com/download/linux + curl -fsSL https://ollama.com/install.sh | sh + sudo chmod +x /usr/local/bin/ollama # Start `ollama serve` and capture PID to kill it after pull is done ollama serve &