Troubleshooting
Find your problem below and follow the fix. Commands are shown for macOS and Linux first, then for Windows PowerShell. If nothing helps, use the diagnostic block at the end of this page and ask in the forum.
The app will not open
“No models found” in the picker
Type the full name nishad/apertus:8b (or nishad/apertus:4b). The picker only knows names that exist on ollama.com, so a partial name finds nothing.
A download stalls
First check that your network can reach the download servers:
curl -sI https://ollama.comInvoke-WebRequest -Method Head https://ollama.comThen start the download again. It continues from where it stopped. If your network blocks the download, use the offline option on Download the models.
Answers are slow
ollama psLook at the PROCESSOR column. 100% GPU is best. A CPU percentage means part of the model runs on the CPU, which is slower. Try these fixes in order:
- Close browsers and other large applications.
- On a machine with 8 GB of memory, use the 4B model,
nishad/apertus:4b.
On Windows laptops with integrated graphics (no separate graphics card), Ollama runs on the CPU, so slower answers are normal.
Memory errors or swapping
Lower the context length, which is how much text the model can hold at once. Try these in order:
- In the Ollama app, open Settings, find Context length, and set it to 4k.
- In a chat in the terminal, type
/set parameter num_ctx 4096. - Set the environment variable
OLLAMA_CONTEXT_LENGTH=4096for the server.
For the third option, note that Ollama is already using port 11434: the app on macOS and Windows, or the systemd service on Linux. If you start ollama serve while it is running, the command fails with “address already in use”. Quit the app first. On Linux, edit the service instead, as shown in the Linux tab below.
Quit the Ollama app from the menu bar, then start the server from a terminal where the variable is set:
export OLLAMA_CONTEXT_LENGTH=4096
ollama serveThe environment variable OLLAMA_KV_CACHE_TYPE=q8_0 cuts the memory used by the context in half. Set it in the same way: quit the app first, or on Linux add it to the systemd service.
q4_0 for the cache with Apertus.I want to change temperature or the system prompt
The Ollama app has no settings for these. In a chat in the terminal, type /set parameter temperature 0.2 or /set system "...". LM Studio has both settings in its sidebar.
Port 11434 is busy or “could not connect”
A port is a numbered channel that programs on one computer use to talk to each other. Ollama listens on port 11434. Check whether its server answers:
curl http://localhost:11434/api/versionInvoke-RestMethod http://localhost:11434/api/versionIf the command prints a version number, the server is running. If there is no answer, restart the app. On Linux, restart the service:
sudo systemctl restart ollamaIf another program is using the port, start the Ollama server on a different port. The address below also keeps the server reachable from this machine only:
OLLAMA_HOST=127.0.0.1:11435 ollama serve$env:OLLAMA_HOST = "127.0.0.1:11435"; ollama serveStart JupyterLab from a terminal where OLLAMA_HOST=http://127.0.0.1:11435 is set, so the notebooks use the same address.
LM Studio problems
- “Failed to load the model”: pick a smaller quantization (a more compressed copy of the model) or lower the context length when you load it.
- “The AI has nothing to say”: the conversation has grown longer than the context length. Start a new chat.
Logs
| Tool | Location |
|---|---|
| Ollama on macOS and Linux | ~/.ollama/logs/server.log |
| Ollama on Windows | %LOCALAPPDATA%\Ollama\server.log |
| LM Studio | Developer, then logs |
Python and Jupyter (Part 2)
uv syncfails. Update uv withuv self update, check your internet connection, and runuv syncfrom inside the repository folder.- The wrong kernel. The kernel is the Python environment that runs the notebook’s cells. Register the environment with
uv run python -m ipykernel install --user --name swib26, then pickswib26in the kernel menu. ModuleNotFoundError: workshop. You started JupyterLab outside the repository folder. Close it,cdinto the repository folder, and runuv run jupyter lab.UnicodeDecodeErroron Windows. Open files withencoding="utf-8"in your own code.
Diagnostic block to paste
ollama --version
ollama list
ollama ps
curl http://localhost:11434/api/versionollama --version
ollama list
ollama ps
Invoke-RestMethod http://localhost:11434/api/versionAdd your operating system, how much memory your computer has, and the exact error text. Post all of this in the forum topic (https://forum.swib.org/t/getting-started-with-local-llms/1732).