Run your first local AI model on Fedora with Ollama
You can run an AI chat model on your own Fedora laptop. Once the model is downloaded, Ollama generates responses on your computer without sending your prompts to a cloud model service. This article shows you how, using a tool called Ollama. A local model is an AI model whose files you download once and run on your own computer. A prompt is the text you type to ask it something. Ollama is the program that downloads models, runs them and gives you a simple way to talk to them from the terminal.
By the end of this article you will have installed Ollama, run a model, checked that its answer is correct, and checked whether it runs on your CPU or your graphics chip. You do not need any AI experience. You only need to be comfortable copying commands into a terminal. You need a Fedora laptop or desktop with free disk space: 4.7 GB for deepseek-r1:7b and 5.2 GB for qwen3:8b, plus room for Ollama itself and enough RAM to hold a model. In our tests, ollama ps showed 5.9 GB for Qwen3 8B at a 4096-token context and 6.5 GB at the 8192-token context we use in Step 4.
The commands below were tested on Fedora Linux 45 (KDE Plasma 6.8.3, kernel 7.3.4), a Lenovo ThinkPad T14 Gen 3 with an Intel Core i7-1265U (12 logical processors), 32 GB RAM, and Intel Iris Xe integrated graphics with no dedicated GPU. Ollama 0.24.0 came from the Fedora repositories. A dedicated GPU is not required. A model with 7 to 8 billion parameters runs on an ordinary laptop CPU, just more slowly than on a GPU. The steps also use curl, nano and jq. Install them first if missing with sudo dnf install curl nano jq.
Install the package from the Fedora repositories with sudo dnf install ollama. On Fedora Linux 45, ollama is a small package that also installs ollama-base, ollama-rocm and ollama-vulkan. Vulkan is how Ollama reached the integrated GPU on our laptop. The package installs a systemd service but does not start it. Enable and start it with sudo systemctl enable --now ollama. Wait a few seconds, then check that the service is running with systemctl status ollama --no-pager ollama --version. You should see active (running) and a version number. If a command fails with could not connect to ollama server straight after a start or restart, wait five to ten seconds and try again.
Run your first model with ollama run deepseek-r1:7b "What is 17 times 6? Answer with just the number." The first run downloads the model, so it takes a few minutes. This model thinks out loud first: you will see its reasoning after a Thinking... line, then ...done thinking., then the answer. A working model ends with 102, because 17 × 6 = 102. If the answer is wrong or unrelated, check where the model is running. To chat interactively instead, run ollama run deepseek-r1:7b with no prompt and type /bye to leave. While a model is loaded, ask Ollama where it is running with ollama ps. Look at the PROCESSOR column. It shows 100% CPU, 100% GPU or a mix.
On our test laptop it showed 100% GPU even though the machine has no dedicated graphics card. The Fedora package turns on the Intel integrated GPU through Vulkan, and on this system the output from that path was nonsense. Forcing the CPU gave correct answers. If your answer was wrong and ollama ps shows GPU on an Intel integrated chip, hide the GPU from Ollama with a systemd drop-in using sudo systemctl edit ollama. Type these lines at the top: [Service] Environment="GGML_VK_VISIBLE_DEVICES=-1". Restart the service, wait a few seconds, and repeat the test. You should now get 102 and 100% CPU. Setting OLLAMA_VULKAN=0 alone did not help on our system, so use the line above. This looks like a problem between Ollama's Vulkan backend and this graphics driver, not a mistake on your side. If your hardware is different, your result may differ too.