Shop is live

We build Workstation AI machines for websites, AI agents, and LLM training — configure and buy online.

Get Trade Prices
AI Products
AI LabsNVIDIA AI EnterpriseOpenAI AgentsClaude AgentsGrok BotWorkstation AI native CRMMarketingAll Products
AI Solutions
AI SolutionsApplied AIAI AgentsGenerative AIAI AutomationAI UpskillingAI SME PackagesEnterprise AI LabAI WorkstationsNVIDIA Hardware & SoftwareNVIDIA Accelerated ComputingPrivate AIEdge AIAI by Industry
AI Services
AI ServicesPlatform ModernisationDigital EngineeringData Foundations & AIAutonomous OperationsAI ConsultancyDevOps AutomationCyber SecuritySoftware DevelopmentAgent BuildingMLOps SetupGPU Leasing
About Us
About UsCompanyOur StoryPartnersCustomer Stories
AI Data Centres
AI Data CentresGPU Private CloudGPU ClustersGPU Leasing
AI InsightsJev seriesBenchmark LabModel selection
Technical Notes
Documentation
Linux OSUbuntuRed Hat Enterprise LinuxSUSE LinuxAlpine LinuxDebian, Rocky & AlmaLinux
AI Cloud PlatformsAWS & Amazon BedrockGoogle Cloud & Vertex AIMicrosoft Azure & AI FoundryGPU clouds & marketplaces
Private AI Data CentresFor law firmsFor accounting firmsOn-premises platformsFully secured cloud
ToolsRing PromoterJobshout
News
Blog
Contact UsSign in

AI workstations, AI Multi Agentic Software, GPU infrastructure, and intelligent agent solutions for modern businesses.

Contact Us

AI Solutions

Applied AIAI AgentsGenerative AIAI AutomationAI UpskillingAI SME PackagesEnterprise AI LabAI by Industry

Products

All ProductsWorkstation AI native CRM & ERPMarketingOpenAI AgentsRing PromoterJobshout

Company

About UsCompanyAI Data CentresWhy WorkstationPartnersCustomer StoriesPricingContactTenthMatrix

Resources

AI InsightsTechnical NotesDocumentationLinux OSAI Cloud PlatformsPrivate AI Data CentresBlogSearchSitemap
UK Head Office
77-79 Marlowes, Hemel Hempstead HP1 1LFDirections - Take Junction 20 off M25 Outer LondonCompany No: 11641870Mon - Fri: 9:00 AM - 6:00 PM GMT
+44 7515 356 146
Belgium Office
Workstation SRL, Rue Vanderkindere 34, 1180 Uccle, BrusselsBE 0751.518.683Mon - Fri: 9:00 AM - 6:00 PM CET
+32 492 45 67 46
India Office
#159 Sector 9, Pocket 1, DDA Flats, 110077 Dwarka, New Delhi
+91 98881 98841
Taiwan Office
3F, No. 2-4, Aisi Rd., Ren'ai Dist., Keelung City 200, Taiwan基隆市仁愛區愛四路2之4號3樓Mon - Fri: 9:00 AM - 6:00 PM Taiwan time (GMT+8)
+886 926 892 701+32 492 45 67 46
Estonia Office
Aleksander Puškini tn 30-25, 20306 Narva, EstoniaMon - Fri: 9:00 AM - 6:00 PM Estonia time (EET)
+32 492 45 67 46
Thailand Office & Assembly Factory
220 m.8 Detudom, Nong Yao, Det Udom, Ubonratchathani, Phon Ngam 34160, Thailand

© 2000-2026 Balinder Singh Walia. All rights reserved.

The Workstation website and all of its content, and the associated APIs and plugins, are the copyright of Balinder Singh Walia. balinder.walia@gmail.com

PrivacyData DeletionCookiesTerms of ServiceWebsite Sitemap

NVIDIA, the NVIDIA logo, RTX, RTX PRO, Blackwell, CUDA, NVLink, MGX, Omniverse, Spectrum-X, Quantum, BlueField, DGX and HGX are trademarks and/or registered trademarks of NVIDIA Corporation in the US and other countries. AMD, the AMD Arrow logo, EPYC, Instinct, Ryzen and Threadripper are trademarks of Advanced Micro Devices, Inc. Dell and PowerEdge are trademarks of Dell Inc. or its subsidiaries. Intel and Xeon are trademarks of Intel Corporation or its subsidiaries. AMAX, AceleMax and LiquidMax are trademarks of AMAX Engineering Corporation. All other product names, logos and brands are the property of their respective owners. We use them only to identify the products we describe, supply or support; their use does not mean their owners endorse us.

Loading blog...

Home / Blogs
AILLMHardwareAI Agents

Run Local LLMs While You Code: A Developer's Guide to a GPU Laptop

Set up Ollama on a Linux laptop with an NVIDIA GPU, pick the right open model for 16 GB or 24 GB, and wire it into your editor and agents, privately and offline

Balinder WaliaDecember 2, 20267 min read
Run Local LLMs While You Code: A Developer's Guide to a GPU Laptop

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.

In short. Install Ollama on a Linux laptop with an NVIDIA GPU, run 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.

Your editor or coding agent sends a prompt to a model server on the same laptop at 127.0.0.1, which runs the model on the laptop GPU and streams tokens back. Nothing crosses the network; a hosted model is optional for the hardest problems.
The whole loop stays on the laptop. A hosted frontier model remains an option for the hardest problems, where your policy allows it.
  • 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

  1. Check the GPU. nvidia-smi should list the laptop GPU and the driver. On Ubuntu, sudo ubuntu-drivers install installs the recommended, Secure Boot-signed driver if it's missing.
  2. Install Ollama and run a model. It downloads once, then runs locally.
  3. Check it's all on the GPU. ollama ps shows how much of the model is on the GPU. "100% GPU" is what you want.
  4. Measure on your own prompts: --verbose prints prompt and generation speed in tokens per second.
  5. 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.

Job16 GB (RTX 5080 Laptop GPU)24 GB (RTX 5090 Laptop GPU)
Completion while you typeqwen3:8b (5.2 GB): latency matters more than sizeqwen3:8b
Chat, explaining and refactoring codegpt-oss:20b (14 GB) or qwen3:14b (9.3 GB)qwen3-coder:30b (19 GB) or qwen3.8:27b (18 GB)
Agents that call toolsgpt-oss:20b, with 32K context or moreqwen3-coder:30b or nemotron-3.5-lightning:30b
Comparing with a server-class modelgpt-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
Bar chart of model download sizes against 16 GB and 24 GB lines. Fit 16 GB: qwen3:8b, qwen3:14b, gpt-oss:20b. Need 24 GB: gemma3:27b, qwen3.8:27b, qwen3-coder:30b, nemotron-3.5-lightning:30b, qwen3:32b. Need system memory too: llama3.3:70b, gpt-oss:120b, qwen3:235b.
What fits in 16 GB and 24 GB of laptop GPU memory. Bigger models still run by splitting the work with system memory, more slowly.

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 ps shows 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.0 on 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

  1. Install Ollama, run gpt-oss:20b or qwen3:8b and check ollama ps.
  2. Point one coding tool at http://127.0.0.1:11434/v1 and use it for a day.
  3. Set the context to 32K and turn on the 8-bit KV cache.
  4. Check that every model server on your machine listens only on 127.0.0.1.
  5. 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.