AI explained

Local AI server: hardware and setup

What memory, GPU or Mac a home AI server needs for each model size, which server software to run, and how to share it safely.

Short answer

Buy memory, not speed.

A local AI server is a computer that runs open models with Ollama, llama.cpp, LM Studio or vLLM and answers other devices on your network. VRAM decides what it can run: 16 GB fits 9B to 20B models, 24 to 32 GB fits the 27B to 30B class, and 70B or 120B models need 48 GB or more, or a Mac or box with large unified memory.

Sweet spot

24GB VRAM

Fits 27B to 30B models
Tool

Pick a local AI server by memory

Checked November 9, 2026

Pick the memory your server has or will have. Each pick names hardware from the vendor’s spec page, the models whose Ollama download fits, and the command for the first one.

GPU memory or unified memoryPick the closest size
  1. 01Hardware: a GeForce RTX 5060 Ti 16 GB (180 W), RTX 5070 Ti or RTX 5080 (16 GB), or AMD’s Radeon RX 9070 XT (16 GB). The 8 GB cards, such as the RTX 5060, are for 4B models only.
  2. 02Models: Qwen3.5 9B (6.6 GB in Ollama), Gemma 4 12B (8.0 GB), or OpenAI’s gpt-oss-20b (14 GB), which OpenAI says runs within 16 GB. On 8 GB, Qwen3.5 4B (3.3 GB).
  3. 03Context: Ollama’s docs say it defaults to a 4K context under 24 GiB of VRAM. Raise it only if the model still fits.
ollama run gemma4:12b
  1. 01Hardware: a GeForce RTX 4090 (24 GB), RTX 5090 (32 GB, 575 W) or AMD Radeon AI PRO R9700 (32 GB, 300 W), which AMD pitches for local AI inference.
  2. 02Models: Qwen3.8 27B (18 GB in Ollama), Gemma 4 26B A4B (19 GB) or Qwen3 Coder 30B A3B (19 GB) for coding agents.
  3. 03Context: Ollama defaults to 32K tokens from 24 to 48 GiB of VRAM. Its docs ask for at least 64,000 for coding tools and agents, which 32 GB handles better than 24.
ollama run qwen3.8:27b
  1. 01Hardware: NVIDIA’s RTX PRO 5000 Blackwell (48 or 72 GB) or RTX PRO 6000 Blackwell (96 GB, 600 W), or two consumer cards in one box.
  2. 02Models: on 48 GB, Qwen3.6 35B A3B at 8-bit (39 GB in Ollama) or Llama 3.3 70B (43 GB, tight). On 96 GB, gpt-oss-120b (65 GB), which OpenAI’s card fits on one 80 GB GPU.
  3. 03Context: from 48 GiB of VRAM, Ollama defaults to a 256K context. This is the tier where vLLM, built for serving many requests at once, starts to pay off.
ollama run qwen3.6:35b-a3b-q8_0
  1. 01Hardware: Mac mini (M6 with 16 to 32 GB, M5 Pro with 24 to 64 GB, 155 W max), Mac Studio (M5 Max 36 to 128 GB, M5 Ultra 96 to 512 GB, 480 W max), NVIDIA DGX Spark (64 or 128 GB) or a Ryzen AI Max+ 395 PC (up to 128 GB).
  2. 02Models: with 64 GB, Llama 3.3 70B (43 GB in Ollama); with 128 GB, gpt-oss-120b (65 GB). NVIDIA says DGX Spark runs inference on models up to 200B parameters.
  3. 03The CPU and GPU share one pool, so the system takes its cut first. Keep the model under about three quarters of the total.
ollama run gpt-oss:120b

What a local AI server is

A local AI server, or home AI server, is one machine in your house that holds an open-weight model in memory and answers requests from your laptop, phone or scripts over the network. It can be the gaming PC you already own, a dedicated AI workstation with a big graphics card, or a small box with lots of unified memory. Nothing you type leaves your network unless you set it up that way.

The job splits in three: hardware with enough memory for the model, a model server (Ollama, llama.cpp, LM Studio or vLLM) that exposes an API, and a chat front end such as Open WebUI for people who do not want a terminal. Which model to run on which memory size has its own page: best local LLM for your hardware. This page is about the server around it.

Local AI server hardware: how much VRAM for which model

Memory is the first limit, speed the second. A model that does not fit in VRAM spills into system RAM and slows down, and Ollama’s documentation advises keeping the whole model on the GPU, which you can check with the ollama ps command. Our rule of thumb, not a vendor figure: keep the download under about three quarters of your memory, so the context has room.

Download sizes below are the Ollama library tags, checked November 9, 2026. The context default is what Ollama sets for that much VRAM.

Models that fit each memory size, checked November 9, 2026
MemoryModels that fitOllama context
8 GBQwen3.5 4B (3.3 GB)4K
16 GBQwen3.5 9B (6.6 GB), Gemma 4 12B (8.0 GB), gpt-oss-20b (14 GB, tight)4K
24 to 32 GBQwen3.8 27B (18 GB), Gemma 4 26B A4B (19 GB), Qwen3 Coder 30B (19 GB)32K
48 GBQwen3.6 35B A3B 8-bit (39 GB), Llama 3.3 70B (43 GB, tight)256K
96 GB+gpt-oss-120b (65 GB)256K

The context costs memory on top of the weights: Ollama’s docs say a longer context needs more VRAM, and coding tools and agents want at least 64,000 tokens. That is why a 24 GB card runs a 19 GB model comfortably for chat but feels cramped for an agent with a long context. Qwen and DeepSeek come from Chinese labs; our guide to Chinese AI models covers their licenses.

RelatedBest local LLMLLMWhich open model to run on 8, 16, 32 or 64 GB, with the Ollama command for each.

AI workstation GPUs: memory and power on the spec sheet

For an AI workstation, sort graphics cards by memory first. These are the numbers on NVIDIA’s and AMD’s own spec pages, read November 9, 2026. Power is the card’s total graphics power or total board power, not the whole PC.

GPU memory and rated power, vendor spec pages, checked November 9, 2026
CardMemoryPower
RTX 50608 GB145 W
RTX 5060 Ti8 or 16 GB180 W
RTX 5070 Ti16 GB300 W
RTX 508016 GB360 W
Radeon RX 9070 XT16 GB304 W
RTX 409024 GB450 W
RTX 509032 GB575 W
Radeon AI PRO R970032 GB300 W
RTX PRO 500048 or 72 GBnot read
RTX PRO 600096 GB600 W

NVIDIA lists a 1,000 W power supply for a PC with the RTX 5090 and 850 W for the RTX 5080. Ollama supports NVIDIA cards with compute capability 5.0 or newer and driver 550 or newer, and AMD cards through ROCm, including the RX 9070 XT and Radeon AI PRO R9700; it also has Vulkan support for other GPUs. vLLM is pickier: its install guide asks for compute capability 7.5 or higher, which starts at the RTX 20 series. We leave prices out: NVIDIA’s product pages did not show a list price when we read them.

Home AI server with unified memory: Mac, DGX Spark, Ryzen AI Max

On these machines the CPU and GPU share one pool of memory, so the whole pool can hold a model. That is how a quiet desktop runs models no single consumer card can hold.

  • Mac mini. Apple’s spec page lists 16 to 32 GB with the M6 chip and 24 to 64 GB with M5 Pro, and 155 W maximum continuous power.
  • Mac Studio. M5 Max with 36 to 128 GB, M5 Ultra with 96, 256 or 512 GB and 1.2 TB/s of memory bandwidth, 480 W maximum continuous power.
  • NVIDIA DGX Spark. The GB10 Grace Blackwell chip with 64 or 128 GB of unified memory and a 240 W power supply. NVIDIA says it runs inference on models up to 200B parameters and fine-tunes models up to 70B, and that up to four can be linked for larger models.
  • AMD Ryzen AI Max+ 395. Up to 128 GB of LPDDR5x with Radeon 8060S graphics, per AMD. Ollama lists it among its supported AMD devices.

Ollama runs on Apple GPUs through Metal, and llama.cpp calls Apple silicon a first-class citizen. LM Studio requires macOS 14 or newer on Apple silicon and recommends 16 GB of RAM or more.

Local AI server software: Ollama, llama.cpp, LM Studio, vLLM, Open WebUI

The four model servers all offer an API in the OpenAI format (Ollama supports a subset of it), so the same apps and scripts work with any of them. Pick by who uses the server and how many at once.

  1. 01Ollama for most homes. One command pulls and runs a model, it runs on macOS, Windows and Linux, and it listens on port 11434. By default a model stays in memory for 5 minutes after the last request, then unloads.
  2. 02llama.cpp for control. The MIT-licensed engine under many apps; its README installs it with one script and starts a server with a built-in web UI with the llama serve command.
  3. 03LM Studio for a desktop app. You start the API server from the Developer tab with the Start server switch, or with the lms server start command.
  4. 04vLLM for many users at once. A Python library for Linux (Windows only through WSL) built for high serving throughput; vllm serve starts an OpenAI-compatible server at localhost:8000 that hosts one model at a time.
  5. 05Open WebUI for the family. A self-hosted chat interface that connects to Ollama or any OpenAI-compatible API. Its README runs it in Docker and opens it at port 3000.

The Docker line from the Open WebUI README, for a server that already runs Ollama:

docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main

LM Studio’s server settings also have switches for MCP servers, the tool connections explained in what an MCP server is.

How to share a home AI server with other devices safely

All four model servers listen only on the machine itself until you change it. Open them to your home network one at a time, and add a password or key where the server has one.

  • Ollama binds 127.0.0.1 port 11434 by default. Its FAQ says to change that with the OLLAMA_HOST variable, for example OLLAMA_HOST=0.0.0.0:11434, then restart Ollama. The FAQ names no API key for the local server, so any device that reaches the port can use it; the FAQ shows how to put a proxy such as Nginx in front.
  • LM Studio has a Serve on Local Network switch and a Require Authentication switch that makes clients send an API token. Turn on both.
  • llama.cpp server listens on 127.0.0.1 unless you set the host option, and takes an API key with the api-key option (--api-key).
  • vLLM checks a key when you start it with --api-key or the VLLM_API_KEY variable.
  • Open WebUI makes the first account the administrator, and sign-up switches itself off after that. To add family members, turn on New Sign Ups under Settings, Admin, Authentication; new accounts wait as Pending until the admin approves them.
Key pointOur advice, not a vendor rule: never forward a model server’s port on your router. To reach the server away from home, connect to your home network through a VPN such as WireGuard or Tailscale, and give people Open WebUI accounts instead of the raw API.

Power use and running cost of a local AI server

The US average residential price was 18.16 cents per kWh in August 2026, per the EIA’s Electric Power Monthly (released October 23, 2026). Your own rate may be far off: the same table shows 28.31 cents in New England. The cost per hour below is our math: rated power times that average price, for the device at full draw.

Rated power and cost per hour at full draw, 18.16 cents per kWh, checked November 9, 2026
HardwareRated powerPer hour
Mac mini155 W max2.8 cents
RTX 5060 Ti card180 W3.3 cents
DGX Spark240 W supply4.4 cents
RTX 5080 card360 W6.5 cents
Mac Studio480 W max8.7 cents
RTX 5090 card575 W10.4 cents
RTX PRO 6000 card600 W10.9 cents

A server spends most of its day idle, and that is where the bill is decided. NVIDIA rates the RTX 4090 at 19 W idle: 24 hours a day for 30 days is 13.7 kWh, about $2.48 a month for the card alone. Four hours a day of RTX 5090 at full draw is 69 kWh a month, about $12.53. The rest of the PC (CPU, drives, fans) comes on top, and we have no vendor number for it. Ollama unloads a model 5 minutes after the last request; the OLLAMA_KEEP_ALIVE variable changes that.

Local AI server or a cloud API?

A home server pays off when you run a lot of tokens, need privacy, or want to work offline. You also buy the hardware up front. If you send only a few long jobs a week, the per-token prices in our AI API pricing comparison may cost less than the power and the card.

FAQ

What hardware do I need to run AI locally?

A GPU with 16 GB of VRAM runs 9B to 20B models; 24 to 32 GB runs the 27B to 30B class. A Mac or a DGX Spark with 64 GB or more of unified memory runs 70B models. LM Studio recommends 16 GB of RAM as a floor.

What is the best GPU for a local AI server?

The one with the most memory you can afford. Among NVIDIA’s consumer cards that is the RTX 5090 (32 GB); the RTX 4090 has 24 GB, the RTX 5080 16 GB. AMD’s Radeon AI PRO R9700 has 32 GB at 300 W.

Can I run a local AI server on a Mac?

Yes. Ollama uses Apple GPUs through Metal and llama.cpp treats Apple silicon as first-class. Mac Studio goes up to 512 GB of unified memory with M5 Ultra, per Apple. vLLM is the exception: its server is built for Linux.

Can I run AI locally without a GPU?

Yes, but slower. Ollama can load a model entirely into system memory (ollama ps then shows 100% CPU), and llama.cpp splits a model too big for VRAM between CPU and GPU. Ollama’s docs advise against CPU offload for best speed. On x64 PCs, LM Studio needs a CPU with AVX2.

How much electricity does a home AI server use?

At the August 2026 US average of 18.16 cents per kWh, an RTX 5090 at its full 575 W costs about 10.4 cents an hour. An idle RTX 4090 (19 W) costs about $2.48 a month for the card.

How do I use my local AI server from my phone?

Run Open WebUI on the server and open its address in the phone’s browser on the same Wi-Fi. Away from home, connect through a VPN rather than opening ports on your router.

Ollama, LM Studio or vLLM: which should a home server use?

Ollama for one household, LM Studio if you want a desktop app with a Require Authentication switch, vLLM for many users on a Linux box with a modern NVIDIA card. All three offer an OpenAI-compatible API; Ollama supports a subset of it.

Sources

  1. Ollama documentation: FAQ (network access, keep alive), Context length, Hardware support, read November 9, 2026
  2. Ollama library tags and registry, download sizes for every model on this page, read November 9, 2026
  3. llama.cpp README and server README (ggml-org, GitHub), read November 9, 2026
  4. LM Studio docs: System requirements, Local LLM API server, Server settings, read November 9, 2026
  5. vLLM README, GPU installation and Quickstart docs (vllm-project, GitHub), read November 9, 2026
  6. Open WebUI README (GitHub) and Quick start documentation, read November 9, 2026
  7. NVIDIA spec pages: GeForce RTX 5060 family, 5070 family, 5080, 5090, 4090; RTX PRO 5000 and 6000 Blackwell; DGX Spark, read November 9, 2026
  8. AMD spec pages: Radeon RX 9070 XT, Radeon AI PRO R9700, Ryzen AI Max+ 395, read November 9, 2026
  9. Apple tech specs: Mac mini and Mac Studio, read November 9, 2026
  10. OpenAI gpt-oss model cards (Hugging Face), read November 6, 2026
  11. U.S. Energy Information Administration, Electric Power Monthly, Table 5.6.A, data for August 2026, read November 9, 2026

Spotted a mistake? Write to support@gptx.io and we will check it.

Keep reading