AI/Ollama: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
| Line 150: | Line 150: | ||
|valign='top'| | |valign='top'| | ||
{|class='wikitable mw-collapsible' | {|class='wikitable mw-collapsible' | ||
!scope='col' style='text-align:left'| Ollama | !scope='col' style='text-align:left'| Instal » Ollama | ||
|- | |- | ||
|valign='top'| | |valign='top'| | ||
<syntaxhighlight lang='bash' highlight='4,16'> | |||
curl -fsSL https://ollama.com/install.sh | sh | |||
:' | |||
>>> Installing ollama to /usr/local | |||
[sudo] password for shahed: | |||
>>> Downloading ollama-linux-amd64.tar.zst | |||
######################################################################## 100.0% | |||
>>> Creating ollama user... | |||
>>> Adding ollama user to render group... | |||
>>> Adding ollama user to video group... | |||
>>> Adding current user to ollama group... | |||
>>> Creating ollama systemd service... | |||
>>> Enabling and starting ollama service... | |||
Created symlink /etc/systemd/system/default.target.wants/ollama.service → /etc/systemd/system/ollama.service. | |||
>>> The Ollama API is now available at 127.0.0.1:11434. | |||
>>> Install complete. Run "ollama" from the command line. | |||
WARNING: No NVIDIA/AMD GPU detected. Ollama will run in CPU-only mode. | |||
' | |||
</syntaxhighlight> | |||
|} | |} | ||
|} | |} | ||
Revision as of 10:05, 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 | ||
|---|---|---|