Guide 6 of 20 / Linux & local AI
AI on Linux and Open-Source Operating Systems
Choose a Linux AI runtime, check compatibility and understand software and model licences.
Separate the parts of the system
The runtime loads a model and computes its outputs. The model weights contain learned parameters. A chat interface sends inputs to the runtime and displays replies. Ollama provides a service and CLI, while llama.cpp offers a lower-level route for supported formats such as GGUF. Check the specific model architecture and format before downloading.
An open-source runtime and model weights can have different licences. Read the model card for permitted use, redistribution conditions and available documentation. The Open Source Initiative definition of open-source AI looks beyond downloadable weights, including the information and components needed to study and modify the system.
Start with a CPU test
Identify your processor architecture, distribution and available memory. The commands below inspect your machine without changing it. If you use Slackware or another distribution without systemd, consult the runtime’s manual install instructions. On BSD, check the runtime’s supported platforms or the relevant package and ports catalogue before attempting an installation.
uname -m
cat /etc/os-release
free -h
df -h .
Add acceleration only when needed
GPU acceleration depends on hardware support, a compatible driver and a compatible runtime backend. A machine with an unsupported graphics chip may still run a small CPU model. On a shared computer, compare responsiveness while a screen reader and browser are open. A larger model can make the rest of the desktop hard to use even if it fits in memory.
Keep the setup understandable
A local runtime can give a community group a low-cost way to simplify its own public documentation. Use a dedicated working folder, record where software and models came from, and avoid enabling remote access for a single-user setup. Prefer a well-documented installation you can reproduce after an upgrade.
Practical exercise
Create an inventory with architecture, distribution, available memory and free storage. Pick one official runtime and one small model, locate both licences and note one supported upgrade path. Decide how you would remove the tool or keep your data if you switch runtimes.