Every prompt tweak, retrieval change and tool definition you test is a round trip to a model. When that model runs on your own laptop's GPU, the round trip takes seconds, costs nothing and never leaves the machine. This guide shows developers how to set that up in an afternoon, which open models to run on 16 GB and 24 GB of laptop GPU memory, and how to wire them into your editor and agents.
gpt-oss:20b on 16 GB or qwen3-coder:30b on 24 GB, check that ollama ps says "100% GPU", and point your coding tools at http://127.0.0.1:11434/v1. Your code and prompts stay on the laptop, there is no rate limit, and the same driver, CUDA and containers run on your GPU servers when a job outgrows the desk.
Why run the model on your laptop
Most AI development is an inner loop: change a prompt or a few lines of code, run it, read the output, repeat, hundreds of times a day. When each run waits for a shared GPU, a cloud instance or an API with rate limits, you batch changes and learn more slowly. A local model removes the wait.
- Private by default. Source code, customer data and prompts never leave a company-managed device, which simplifies UK GDPR assessments and client contracts that forbid third-party APIs.
- No queue, no quota. No rate limits, no outage dependency and it works offline, on a train or at a client site.
- Same stack as production. Linux, the NVIDIA driver, CUDA and containers match your GPU servers, so a prototype moves across without changes.
- Honest limits. You see what open models can and can't do (context length, quantisation, memory) before production does.
Set it up in an afternoon
- Check the GPU.
nvidia-smishould list the laptop GPU and the driver. On Ubuntu,sudo ubuntu-drivers installinstalls the recommended, Secure Boot-signed driver if it's missing. - Install Ollama and run a model. It downloads once, then runs locally.
- Check it's all on the GPU.
ollama psshows how much of the model is on the GPU. "100% GPU" is what you want. - Measure on your own prompts:
--verboseprints prompt and generation speed in tokens per second. - Connect your tools. Most IDE assistants, coding agents and agent frameworks accept an OpenAI-compatible base URL. Use
http://127.0.0.1:11434/v1.
curl -fsSL https://ollama.com/install.sh | sh
ollama run gpt-oss:20b --verbose # first run downloads the model
ollama ps # want: 100% GPU
# Any OpenAI-compatible client
export OPENAI_BASE_URL=http://127.0.0.1:11434/v1
export OPENAI_API_KEY=ollama # ignored locally, but many clients require one
Prefer full control? llama.cpp's llama-server and vLLM serve the same OpenAI-compatible API, on ports 8080 and 8000 by default. vLLM is the closest to production serving, with the same flags as on your GPU servers.
Which model for which job
GPU memory decides what runs at full speed. Sizes below are Ollama's default downloads, mostly 4-bit quantisations, checked in November 2026.
| Job | 16 GB (RTX 5080 Laptop GPU) | 24 GB (RTX 5090 Laptop GPU) |
|---|---|---|
| Completion while you type | qwen3:8b (5.2 GB): latency matters more than size | qwen3:8b |
| Chat, explaining and refactoring code | gpt-oss:20b (14 GB) or qwen3:14b (9.3 GB) | qwen3-coder:30b (19 GB) or qwen3.8:27b (18 GB) |
| Agents that call tools | gpt-oss:20b, with 32K context or more | qwen3-coder:30b or nemotron-3.5-lightning:30b |
| Comparing with a server-class model | gpt-oss:120b (65 GB) using GPU plus 96 GB or more of system memory: slower, but usable because only about 5.1B parameters are active per token | |
Licences differ (Apache 2.0, the Gemma terms, Meta's Llama licence, NVIDIA's open model licence and others), so check each model card before commercial use.
Three settings that make a model fit
The model file is not the whole story. Every token of context also needs space in the KV cache, and at long context the cache can be as big as the model. An 8B model that is 5 GB on disk needs about 23 GB at its full 128K context.
- Set the context you need. Most coding and retrieval work is fine at 16K to 32K tokens. Runtimes reserve the cache for the context you set.
- Quantise the KV cache. An 8-bit cache halves it with little quality loss.
- Check before blaming the model. If
ollama psshows a CPU share, reduce the context, quantise the cache or pick a smaller model.
# Ollama: flash attention and an 8-bit KV cache (set for the Ollama service)
OLLAMA_FLASH_ATTENTION=1
OLLAMA_KV_CACHE_TYPE=q8_0
# llama.cpp: all layers on the GPU, 32K context, 8-bit KV cache, local only
llama-server -m qwen3-14b-q4_k_m.gguf --n-gpu-layers 99 --ctx-size 32768 \
--cache-type-k q8_0 --cache-type-v q8_0 --host 127.0.0.1 --port 8080
Keep it private
- Bind model servers to 127.0.0.1. Ollama, llama.cpp and vLLM have no user authentication by default. Never expose them on
0.0.0.0on office or public Wi-Fi. - Download models from the publisher's official repositories, prefer safetensors and GGUF files, and keep a list of approved models and their licences.
- Encrypt the disk. Full-disk encryption protects code, data and model files if the laptop is lost. Data processed locally is still personal data under UK GDPR.
- Plug in for GPU work. On battery the GPU runs at reduced power.
The laptop: Juno Neptune 18"
Built for local LLMs on Linux. The Juno Neptune 18" is the 18-inch Linux developer laptop we sell for this work:
- NVIDIA GeForce RTX 5080 Laptop GPU with 16 GB GDDR7, or RTX 5090 Laptop GPU with 24 GB on request
- Intel Core Ultra 9 290HX Plus with 24 cores, and 32 to 192 GB of DDR5 for models bigger than GPU memory
- Up to 16 TB of NVMe storage across four M.2 slots, for a local model library
- Ubuntu or Kubuntu 26.04 LTS pre-installed, with the NVIDIA driver installed and checked before dispatch
Configure the Juno Neptune 18" in our shop. For most application developers using AI we suggest the RTX 5080 with 64 GB and 2 TB; for AI engineers fine-tuning or running 27B to 32B models, the RTX 5090 with 96 GB (2 × 48 GB, the fastest memory option) and 4 TB.
When to move work off the laptop
A laptop doesn't replace servers. Move a job when the model needs more than 24 GB at full speed, when it runs for hours, or when several developers need the same model all day: one shared team endpoint beats many copies. Training, large fine-tunes and production serving belong on a GPU server or a cluster. Not ready to buy? Workstation Rentals rents AI laptops and GPU workstations by the week or month.
What to do this week
- Install Ollama, run
gpt-oss:20borqwen3:8band checkollama ps. - Point one coding tool at
http://127.0.0.1:11434/v1and use it for a day. - Set the context to 32K and turn on the 8-bit KV cache.
- Check that every model server on your machine listens only on 127.0.0.1.
- Write down which tasks still need a hosted model. That list is your routing policy.
For the full detail (the memory arithmetic, Ubuntu 26.04 setup with containers, vLLM, LoRA fine-tuning on a laptop and sizing by role), read our technical note AI developer laptops: running LLMs locally on Linux with 16 GB and 24 GB GPUs. For the business case for your team, see why every AI team should give developers their own GPU.
Sources
- NVIDIA, GeForce RTX 50 Series laptop specifications (memory, CUDA cores, GPU power range).
- Ollama library pages for qwen3, gpt-oss, gemma3, qwen3.8, qwen3-coder, nemotron-3.5-lightning and llama3.3 (download sizes), checked 18 November 2026; Ollama documentation (OpenAI compatibility, KV cache settings).
- OpenAI, gpt-oss model card (about 5.1B active parameters for gpt-oss-120b).
- llama.cpp and vLLM documentation; Ubuntu documentation for
ubuntu-drivers. - Juno Computers, Neptune 18" specifications; Workstation shop listing.
Trademarks. NVIDIA, GeForce, RTX, CUDA and Nemotron are trademarks of NVIDIA Corporation. Intel and Core Ultra are trademarks of Intel Corporation. Ubuntu and Kubuntu are trademarks of Canonical Ltd. Juno and Neptune are names of Juno Computers Ltd. Llama is a trademark of Meta Platforms, Inc.; Gemma of Google LLC; Qwen of Alibaba Cloud; gpt-oss and OpenAI of OpenAI. This article is independent and not endorsed by any of these companies.