AI/Ollama: Difference between revisions
Jump to navigation
Jump to search
| Line 192: | Line 192: | ||
|} | |} | ||
{|class='wikitable mw-collapsible mw-collapsed' | {|class='wikitable mw-collapsible mw-collapsed' | ||
!scope='col' style='text-align:left'| Ollama » ArcGPU | !scope='col' style='text-align:left' colspan='2'| Ollama » ArcGPU | ||
|- | |- | ||
|valign='top'| | |valign='top' style='width:50%'| | ||
<syntaxhighlight lang='bash'> | <syntaxhighlight lang='bash'> | ||
sudo journalctl -u ollama --no-pager | grep -i "sycl\|intel\|gpu" | sudo journalctl -u ollama --no-pager | grep -i "sycl\|intel\|gpu" | ||
| Line 200: | Line 200: | ||
sudo intel_gpu_top | sudo intel_gpu_top | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|valign='top' style='width:50%'| | |||
|- | |- | ||
|valign='top'| | |valign='top' colspan='2'| | ||
<syntaxhighlight lang='bash'> | <syntaxhighlight lang='bash'> | ||
cat <<'EXE' | sudo bash | cat <<'EXE' | sudo bash | ||
| Line 209: | Line 211: | ||
apt-get clean;sleep 5 | apt-get clean;sleep 5 | ||
EXE | EXE | ||
</syntaxhighlight> | |||
|- | |||
|valign='top'| | |||
<syntaxhighlight lang='bash'> | |||
curl -fsSL https://repositories.intel.com/gpu/intel-graphics.key \ | curl -fsSL https://repositories.intel.com/gpu/intel-graphics.key \ | ||
| sudo tee /etc/apt/keyrings/intel-graphics.asc >/dev/null | | sudo tee /etc/apt/keyrings/intel-graphics.asc >/dev/null | ||
DISTRIBUTION=$(. /etc/os-release && echo "${VERSION_CODENAME}") | DISTRIBUTION=$(. /etc/os-release && echo "${VERSION_CODENAME}") | ||
| Line 219: | Line 225: | ||
https://repositories.intel.com/gpu/ubuntu ${DISTRIBUTION} unified | https://repositories.intel.com/gpu/ubuntu ${DISTRIBUTION} unified | ||
SRC | SRC | ||
cat <<'EXE' | sudo bash | cat <<'EXE' | sudo bash | ||
| Line 227: | Line 235: | ||
apt-get clean | apt-get clean | ||
EXE | EXE | ||
</syntaxhighlight> | |||
|valign='top'| | |valign='top'| | ||
<syntaxhighlight lang='bash'> | <syntaxhighlight lang='bash'> | ||
| Line 256: | Line 259: | ||
apt-get clean | apt-get clean | ||
EXE | EXE | ||
</syntaxhighlight> | |||
|- | |||
|valign='top'| | |||
<syntaxhighlight lang='bash'> | |||
ollama ps | |||
ls /dev/dri | |||
</syntaxhighlight> | |||
|valign='top'| | |||
<syntaxhighlight lang='bash'> | |||
sudo intel_gpu_top | |||
clinfo | grep 'Device Name' | |||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} | ||
Revision as of 04:33, 8 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 | ||
|---|---|---|