cross-posted from: https://lemmy.world/post/27013201
Ollama lets you download and run large language models (LLMs) on your device.
Install Ollama on Arch Linux (Windows guide coming soon)
- Check whether your device has an
AMD GPU
,NVIDIA GPU
, orno GPU
. A GPU is recommended but not required.- Open
Console
, type only one of the following commands and press return. This may ask for your password but not show you typing it.
sudo pacman -S ollama-rocm # for AMD GPU sudo pacman -S ollama-cuda # for NVIDIA GPU sudo pacman -S ollama # for no GPU (for CPU)
- Enable the Ollama service [on-device and runs in the background] to start with your device and start it now.
sudo systemctl enable --now ollama
Test Ollama alone (Open WebUI guide coming soon)
- Open
localhost:11434
in a web browser and you should seeOllama is running
. This shows Ollama is installed and its service is running.- Run
ollama run deepseek-r1
in a console andollama ps
in another, to download and run the DeepSeek R1 model while seeing whether Ollama is using your slow CPU or fast GPU.AMD GPU issue Fix
Coming soon
Additionally here’s an excellent tutorial to do it via Docker Compose in Cosmos Cloud:
https://discord.com/channels/1083875833824944188/1283413252356706416/1283785229923909694
Locate the Docker Compose File:
Docker Compose Configuration:
ollama
andopen-webui
. This is the configurationImport the Docker Compose File:
${}
placeholders with the desired values, such aslatest
or any specific version you prefer. You can also make changes later if needed.Create the Docker Containers:
Access the Service:
Customize with Labels:
cosmos-icon
cosmos-stack
cosmos-stack-main
Modify Environment Variables:
That’s it!
Cosmos Cloud fails to include a libre software license text file. We do not control it, anti-libre software. This defeats the purpose of running Ollama, libre software, on our own device.
Also, although Docker on Arch Linux is fine, Docker Desktop used to install Docker on Windows is also anti-libre software. The upcoming guide will provide a workaround. Of course, Windows is anti-libre software, so this is for harm reduction at best.
However, thank you for freeing this information from Discord, also anti-libre software.