Desktop apps and OS setup: Ollama, LM Studio, Jan and Open WebUI on Windows, WSL, Linux and macOS
Which local LLM app to install, and how to set it up properly on each operating system: GPU drivers, WSL2 with CUDA, AMD on Linux and Windows, Apple Silicon, where models are stored, ports, sharing a server with Open WebUI, and the problems people hit first.
By Sandip Maity, Applied AI Engineer
The fastest way to get a local model running is to install one app and click "download". The fastest way to get stuck is to install three apps, two GPU stacks and a Docker container, and then wonder why the model runs on the CPU. This lesson picks the right app for you and walks through a clean setup on each operating system.
What we checked. The install commands below are the projects' documented steps as of November 2026; they were not re-run for this lesson on every operating system. App menus and flags change often, so check each project's own page if something does not match.
#Pick one app first
| If you... | Install | Why |
|---|---|---|
| Want a polished GUI and no terminal | LM Studio | Model browser, chat, local server; uses MLX on Apple Silicon and llama.cpp elsewhere |
| Want an open-source, offline-first desktop app | Jan | Open source, local API server, simple chat |
| Write code against a local model | Ollama | Background service, CLI, REST and OpenAI-compatible API on port 11434 |
| Want maximum control and the newest features | llama.cpp (llama-server) |
The engine itself (build guide) |
| Want several people to share one machine's model in a browser | Open WebUI in front of Ollama or llama-server | Accounts, chat history, document upload; no engine of its own |
The layers and trade-offs are compared in Ollama vs LM Studio vs Jan vs Open WebUI. Start with one; you can add a front end later because everything speaks the OpenAI-compatible API.
#macOS (Apple Silicon)
The easiest platform: Metal is built in and there are no drivers to install.
- Install Ollama, LM Studio or Jan from their websites (or
brew install ollama). - Check that the model runs on the GPU:
ollama psshould show100% GPU. - For the fastest decode on a Mac, try LM Studio's MLX models or MLX directly, and compare with the llama.cpp-based apps on your model.
Memory is unified, but by default macOS lets the GPU use only part of it (roughly three quarters on larger machines). If a model "fits" in RAM but loads slowly or falls back, the GPU limit is usually why. Raising it is covered in unified-memory machines. Intel Macs have no useful GPU path for LLMs; expect CPU speeds.
#Windows with an NVIDIA GPU
- Install the current NVIDIA driver from NVIDIA or your PC vendor. Check with
nvidia-smiin PowerShell: it should list the card and its memory. - Install Ollama, LM Studio or Jan for Windows. They bundle the CUDA runtime they need; you do not need the CUDA toolkit to run them.
- Run a model and confirm GPU use:
ollama psshows the CPU/GPU split, and Task Manager's GPU tab shows "Dedicated GPU memory" rising when the model loads.
Common Windows problems:
- The model lands on the integrated GPU or CPU. Laptops with two GPUs sometimes pick the wrong one. Set the app to "High performance" in Settings > System > Display > Graphics.
- Antivirus slows the first load of multi-gigabyte files. Exclude the model folder if your policy allows.
- Disk space. Ollama keeps models in
%USERPROFILE%\.ollama\models. Set theOLLAMA_MODELSenvironment variable to move them to a bigger drive before downloading.
#Windows with WSL2 (for Linux tools on a Windows PC)
WSL2 runs a real Linux kernel and can use an NVIDIA GPU, which is how most people run vLLM, Python training code or Docker GPU containers on Windows.
wsl --install # installs WSL2 and Ubuntu; reboot when asked
wsl --updateInside Ubuntu:
nvidia-smi # should show your GPU: the Windows driver provides CUDA to WSL
curl -fsSL https://ollama.com/install.sh | sh # or pip install vllm in a virtual environmentThe rules that save hours:
- Install the GPU driver on Windows only. Never install a Linux NVIDIA display driver inside WSL. If you need the CUDA toolkit for compiling, use NVIDIA's WSL-specific package, which leaves the driver alone.
- Keep models on the Linux file system (
~/models), not under/mnt/c. Reading Windows drives from WSL is much slower, and loading a 20 GB model from/mnt/ccan take minutes. - Give WSL enough memory. WSL takes a share of system RAM by default; set
memory=in%USERPROFILE%\.wslconfigif large models fail to load. - Ports: a server listening inside WSL on
localhostis normally reachable from Windows at the same address.
#Linux with an NVIDIA GPU
- Install the proprietary driver from your distribution (
ubuntu-drivers installon Ubuntu) and reboot.nvidia-smimust work before anything else. - Install Ollama with the script above, or build llama.cpp with CUDA, or install vLLM with pip in a virtual environment.
- For Docker GPU containers, install the NVIDIA Container Toolkit and run with
--gpus all; check withdocker run --rm --gpus all ubuntu nvidia-smi.
The Linux service installed by Ollama runs as its own user, so environment variables go in the systemd unit (systemctl edit ollama), not your shell profile. That is where you set OLLAMA_HOST, OLLAMA_MODELS or OLLAMA_KEEP_ALIVE.
#AMD GPUs
- Linux: ROCm supports a list of Radeon and Instinct cards; check the list for your card and distribution. Ollama and llama.cpp (HIP build) use ROCm. If your card is not listed, llama.cpp's Vulkan build usually works.
- Windows: LM Studio's Vulkan or ROCm runtime and llama.cpp's Vulkan build are the simplest. Ollama supports a list of AMD cards on Windows.
- Ryzen AI Max (Strix Halo) and other APUs: the GPU shares system memory, and how much it may use is set in the BIOS or the Linux kernel; see unified-memory machines.
#Intel Arc GPUs
llama.cpp's Vulkan and SYCL builds run on Arc cards, and some desktop apps ship a Vulkan runtime that works on them. Expect less polish than NVIDIA: check that the app actually lists your Arc card as the device before judging its speed.
#Sharing a model on your network with Open WebUI
The usual home or small-office setup is one GPU machine running the engine, with Open WebUI in front:
# on the GPU machine, with Ollama already running
docker run -d -p 3000:8080 \
--add-host=host.docker.internal:host-gateway \
-v open-webui:/app/backend/data \
--name open-webui ghcr.io/open-webui/open-webui:mainOpen http://<machine>:3000, create the first account (it becomes the admin), and add users. Open WebUI can also run without Docker (pip install open-webui, then open-webui serve).
Security basics, which matter because engines have no authentication of their own:
- Keep the engine bound to
localhostand let only Open WebUI reach it. - Never forward ports 11434, 8080 or 1234 to the internet. For remote access use a VPN such as WireGuard or Tailscale.
- Open WebUI's document upload and web search features send content to whatever you configure; check those settings before inviting others (defense in depth).
#Where everything lives
| App | Default port | Models stored in | Notes |
|---|---|---|---|
| Ollama | 11434 | ~/.ollama/models (macOS, Windows), /usr/share/ollama/.ollama/models (Linux service) |
OLLAMA_MODELS moves it |
| LM Studio | 1234 (server, when enabled) | chosen in the app's settings | lms command-line tool for scripting |
| Jan | 1337 (local API server, when enabled) | Jan's data folder, chosen in settings | open source |
| llama-server | 8080 | wherever you put the GGUF files | --host 0.0.0.0 to listen on the network |
| Open WebUI | 3000 (Docker example) or 8080 | not applicable | stores users and chats in its volume |
#First-hour checklist
- One app installed, one model downloaded (a 4B to 9B model at Q4 is a good start; see the model picker).
- GPU use confirmed (
ollama ps,nvidia-smi, Activity Monitor's GPU history, or the app's own indicator). - Context length set deliberately; defaults are often short (tokens and context).
- A quick speed check: tokens per second on a 500-word answer. Compare with the Can I run it? estimate for your device; much lower usually means CPU offload.
- Only one engine running at a time, unless you deliberately want two.
#Troubleshooting the first problems
| Symptom | Most likely cause | Fix |
|---|---|---|
| Very slow, GPU idle | Driver missing or wrong GPU selected | nvidia-smi or the app's device list; reinstall the driver |
| "Out of memory" when loading | Model plus context does not fit | Smaller quant, shorter context, close other apps (VRAM maths) |
| Fast at first, slow on long chats | Context grows, KV cache spills | Lower context or quantise the KV cache (KV cache quantisation) |
| Open WebUI shows no models | It cannot reach the engine | Check the connection URL; from Docker use host.docker.internal |
| Model loads twice | Two apps each loaded it | Quit or unload in one of them |
More fixes are in troubleshooting.
#Exercises
- Install one app, load a 4B to 9B model and record tokens per second with the GPU and with GPU offload disabled. How large is the ratio?
- On Windows, compare loading a model from
/mnt/cand from the WSL file system. Time both. - Put Open WebUI in front of your engine, create two users, and confirm that the engine port is not reachable from another machine.
Quick quiz
+10 XP per correct answer, +25 XP for a perfect score
1. You run Ollama inside WSL2 on Windows with an NVIDIA card. Which GPU driver do you install?
2. Open WebUI is...
3. LM Studio and Ollama are both running and each loaded the same 8B model. What happens?
4. Your Windows PC has an AMD Radeon card. What is the simplest working route?
5. You want family members to use your desktop's model from their laptops. What is the sensible setup?
Up next · 12 min · free
GPU offload, threads and batch sizes
Split a model between GPU and CPU with -ngl, see with arithmetic why partial offload is so costly, tune threads, understand batch versus ubatch and how parallel slots differ, and measure instead of guessing.
Continue →Found this useful?
Send it to someone who is learning the same thing.
Articles that build on this lesson