AI/Ollama: Difference between revisions
Jump to navigation
Jump to search
| Line 172: | Line 172: | ||
' | ' | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<syntaxhighlight lang='bash'> | <syntaxhighlight lang='bash'> | ||
sudo systemctl daemon-reload | sudo systemctl daemon-reload | ||
| Line 177: | Line 178: | ||
sudo systemctl status ollama.service | sudo systemctl status ollama.service | ||
cat /etc/systemd/system/ollama.service | cat /etc/systemd/system/ollama.service | ||
</syntaxhighlight> | |||
<syntaxhighlight lang='bash'> | |||
sudo journalctl -u ollama --no-pager | grep -i "sycl\|intel\|gpu" | |||
sudo apt update && sudo apt install intel-gpu-tools | |||
sudo intel_gpu_top | |||
# install the drivers that allow ollama to 'see' the arc cores | |||
sudo apt install intel-opencl-icd intel-level-zero-gpu level-zero | |||
</syntaxhighlight> | |||
<syntaxhighlight lang='bash'> | |||
cat <<'EXE' | sudo bash | |||
apt-get update;echo | |||
apt-get install -y apt-transport-https ca-certificates gnupg build-essential | |||
apt-get install -y software-properties-common git curl file procps libfuse2 | |||
apt-get clean;sleep 5 | |||
EXE | |||
curl -fsSL https://repositories.intel.com/gpu/intel-graphics.key \ | |||
| sudo tee /etc/apt/keyrings/intel-graphics.asc >/dev/null | |||
DISTRIBUTION=$(. /etc/os-release && echo "${VERSION_CODENAME}") | |||
cat << SRC | sudo tee /etc/apt/sources.list.d/intel-graphics.list >/dev/null | |||
deb [arch=$(dpkg --print-architecture)\ | |||
signed-by=/etc/apt/keyrings/intel-graphics.asc]\ | |||
https://repositories.intel.com/gpu/ubuntu ${DISTRIBUTION} unified | |||
SRC | |||
cat <<'EXE' | sudo bash | |||
apt-get update;echo | |||
sudo apt install -y intel-opencl-icd level-zero | |||
sudo intel_gpu_top;echo | |||
apt-get clean | |||
EXE | |||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} | ||
Revision as of 11:10, 1 March 2026
curl -fsSL https://ollama.com/install.sh | sh
ollama pull gpt-oss:20b
ollama --version
ollama ls
curl -fsSL https://claude.ai/install.sh | bash
ollama launch claude --model gpt-oss:20b
|
export ANTHROPIC_BASE_URL=http://localhost:11434
export ANTHROPIC_AUTH_TOKEN=ollama
export ANTHROPIC_API_KEY=""
export OLLAMA_NUM_CTX=32768
export OLLAMA_KEEP_ALIVE=5m
claude --model gpt-oss:20b
| ||||
| |||||
Optimization
|
Optimization | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Installation
|
Installation | ||||||||
|---|---|---|---|---|---|---|---|---|
|
References
|
References | ||
|---|---|---|