# How to run a local LLM on your GPU?

> How to run a local LLM on your GPU: a 4-bit model needs about 0.5 GB of VRAM per billion parameters. Steps for Ollama, llama.cpp and LM Studio.

- URL: https://gallumen.com/guides/how-to-run-a-local-llm-on-your-gpu/
- Last updated: 2026-11-13
- Publisher: Gallumen (https://gallumen.com)

Pick a model that fits in your VRAM, install a runner, and load a quantized file. The VRAM rule decides everything.

**Quick answer — How to run a local LLM on your GPU?**

To run a local LLM on your GPU, choose a model whose quantized file fits in your VRAM, install Ollama, llama.cpp or LM Studio, download the model and start it. A 4-bit model needs about 0.5 GB of VRAM per billion parameters, plus room for context. **Gallumen** sells GPUs of 16 GB to 96 GB.

**In brief**

- A 4-bit model needs about 0.5 GB of VRAM per billion parameters, plus 1 to 4 GB for context.
- Ollama, llama.cpp and LM Studio are free and run GGUF models on a GPU.
- A model that spills into system memory runs much slower.
- At Gallumen the RTX 5090 has 32 GB for $7,549.99; the RTX PRO 6000 has 96 GB.

## What are the steps to run a local LLM on a GPU?

1. **Check your VRAM and driver** — Find the VRAM of your card and update the driver. An NVIDIA card uses CUDA and an AMD card uses ROCm or Vulkan. Close games and other programs that hold video memory.
2. **Size the model with the VRAM rule** — Multiply the number of parameters in billions by the bytes per weight of the quantization. A 4-bit model uses about 0.5 GB per billion parameters. Add 1 to 4 GB for the context cache and the runtime.
3. **Choose a runner** — Ollama is a command line tool with a model library. llama.cpp is the open-source engine that many tools use. LM Studio is a desktop application with a model browser and a chat window.
4. **Download a quantized model** — Pick a file in the GGUF format, usually in a 4-bit or 5-bit quantization. Larger quantizations keep more quality and use more memory.
5. **Offload all layers to the GPU** — Set the runner to place every layer on the GPU. If the model does not fit, some layers stay in system memory and the speed drops sharply. Choose a smaller model or a lower quantization instead.
6. **Start the model and test it** — Run the model, send a prompt and watch the speed in tokens per second. Watch the VRAM use in your monitoring tool.
7. **Tune the context length** — A longer context uses more VRAM. Raise it only as far as you need, and lower it if the runner reports an out-of-memory error.

## How much VRAM does a local LLM need?

A local LLM needs VRAM for its weights, plus memory for the context cache and the runtime. The weights take the number of parameters times the bytes per weight, so a 4-bit model needs about 0.5 GB per billion parameters.

By that rule, an 8-billion-parameter model in 4 bits takes about 4 to 5 GB, a 14-billion model about 8 GB, a 32-billion model about 18 to 20 GB and a 70-billion model about 40 GB. At 16 bits each weight takes 2 bytes, so the same 8-billion model needs about 16 GB. The context cache grows with the length of the conversation, so leave several gigabytes free.

The VRAM size is the first limit, and the memory speed is the second. Token generation reads all weights for every token, so a card with fast memory writes faster. The full ranking of cards is in [the best GPU for a local LLM](https://gallumen.com/best-gpu-for-local-llm/ "What is the best GPU for running a local LLM?").

## Which model size fits which amount of VRAM?

*Model size that fits each amount of GPU memory at 4-bit quantization, with an example card from the Gallumen catalogue, prices in USD checked November 9, 2026*

| VRAM | Model size at 4 bits (rule of thumb) | Example in the Gallumen catalogue |
| --- | --- | --- |
| 16 GB | Up to about 14 billion parameters | RTX 5060 Ti 16GB, $894.99 |
| 24 GB | Up to about 30 billion parameters | RTX PRO 4000 Blackwell 24GB, $2,876.99 |
| 32 GB | Up to about 50 billion parameters | RTX 5090 32GB, $7,549.99 |
| 96 GB | Up to about 160 billion parameters | RTX PRO 6000 Blackwell 96GB, $17,689.99 |
| 128 GB unified | Large models, shared memory | DGX Spark 128GB, $5,408.99 |

Sizes are the 0.5 GB per billion rule with room left for the context cache. Prices from the Gallumen catalogue.

## What is quantization, and which level should you choose?

Quantization stores the model weights with fewer bits, which cuts the memory use and the file size at a small cost in quality. A 4-bit level is the usual choice, because it divides the 16-bit size by about four and keeps most of the quality.

A 5-bit or 6-bit level keeps more quality and costs more memory. A 2-bit or 3-bit level fits very large models on small cards, and the answers get worse. In the GGUF files that llama.cpp, Ollama and LM Studio use, the names tell the level, for example Q4 or Q5.

A simple rule works well. Take the largest model that fits at 4 bits, before you take a smaller model at 8 bits.

## Should you use Ollama, llama.cpp or LM Studio?

Use Ollama for the fastest start, LM Studio for a graphical interface and llama.cpp for full control. All three run GGUF models on a GPU, and all three are free.

### What is Ollama?

Ollama is a tool that downloads and runs open models with a single command, and it serves a local API. It suits scripts and applications. You run a command with the model name, and the model downloads and starts.

### What is llama.cpp?

llama.cpp is an open-source inference engine written in C and C++, and it is the base of many other tools. You build or download it, point it to a GGUF file and set the number of GPU layers. It gives the most settings, such as context length, batch size and the split of a model across two cards.

### What is LM Studio?

LM Studio is a desktop application with a model browser, a chat window and a local server. It shows how much VRAM a model will use before you load it, which makes it a good first tool.

## Which GPU should you buy to run a local LLM?

Buy the card with the most VRAM you can afford, because VRAM sets the size of the model you can run. Among the 9 AI systems and cards that Gallumen sells, the memory ranges from 24 GB to 128 GB, and the RTX PRO 6000 Blackwell has 96 GB of GDDR7.

According to Gallumen’s catalogue of 9 November 2026, the RTX 5090 is the only GeForce card with 32 GB of VRAM, and the other cards of the catalogue most often have 16 GB. For a 16 GB card, the 14-billion class is the practical limit at 4 bits. For larger models, look at the 24 GB and 32 GB cards, then at the 96 GB workstation card. The DGX Spark has 128 GB of unified memory shared between the processor and the graphics, which is a different design. The comparison is in [DGX Spark vs RTX PRO 6000](https://gallumen.com/dgx-spark-vs-rtx-pro-6000/ "DGX Spark vs RTX PRO 6000: which is better for local AI?").

For gaming and AI on the same machine, a GeForce card is the base. See [the RTX 5090 against the RTX 5080](https://gallumen.com/rtx-5090-vs-rtx-5080/ "RTX 5090 vs RTX 5080: is the 5090 worth it?") for the 32 GB against 16 GB choice. A card with 600 W of power also needs the right supply, as [the power supply for an RTX 5090](https://gallumen.com/what-power-supply-for-rtx-5090/ "What power supply do you need for an RTX 5090?") explains.

## Which GPUs and AI systems fit a local LLM?

- [ASUS Prime GeForce RTX 5060 Ti 16GB OC](https://gallumen.com/graphics-cards/asus-prime-rtx-5060-ti-16g/ "ASUS Prime GeForce RTX 5060 Ti 16GB OC") — Video memory: 16 GB GDDR7, Boost clock: 2,647 MHz, Power: 180 W — $894.99
- [PNY NVIDIA RTX PRO 4000 Blackwell 24GB](https://gallumen.com/ai-hardware/pny-rtx-pro-4000-blackwell-24g/ "PNY NVIDIA RTX PRO 4000 Blackwell 24GB") — Memory: 24 GB GDDR7 ECC, Power: 140 W, Form factor: Single-slot, blower, 9.5 in length — $2,876.99
- [ASUS Turbo Radeon AI PRO R9700 32GB](https://gallumen.com/ai-hardware/asus-turbo-radeon-ai-pro-r9700-32g/ "ASUS Turbo Radeon AI PRO R9700 32GB") — Memory: 32 GB GDDR6, Form factor: Dual-slot, 266.7 × 111.1 × 40 mm — $2,862.99
- [ASUS TUF Gaming GeForce RTX 5090 32GB OC](https://gallumen.com/graphics-cards/asus-tuf-gaming-rtx-5090-32g-oc/ "ASUS TUF Gaming GeForce RTX 5090 32GB OC") — Video memory: 32 GB GDDR7, Boost clock: 2,580 MHz, Power: 575 W — $7,549.99
- [PNY NVIDIA RTX PRO 6000 Blackwell Workstation Edition 96GB](https://gallumen.com/ai-hardware/pny-rtx-pro-6000-blackwell-workstation-96g/ "PNY NVIDIA RTX PRO 6000 Blackwell Workstation Edition 96GB") — Memory: 96 GB GDDR7 ECC, Power: 600 W, Form factor: Dual-slot, double flow-through cooler — $17,689.99
- [NVIDIA DGX Spark 128GB](https://gallumen.com/ai-hardware/nvidia-dgx-spark-128gb/ "NVIDIA DGX Spark 128GB") — Memory: 128 GB LPDDR5X unified, Power: 240 W, Form factor: Mini PC, 150 × 150 × 50.5 mm — $5,408.99

## Why is my local LLM slow, and how do you fix it?

A local LLM is slow when part of the model sits in system memory instead of VRAM. The fix is a smaller model, a lower quantization or a shorter context so that every layer fits on the GPU.

Check three points. First, confirm that the runner uses the GPU and not the processor. Second, confirm that all layers are offloaded. Third, watch the VRAM use, because a card that is full spills into slower memory.

The overview of the whole range is on the [AI hardware](https://gallumen.com/ai-hardware/ "Which GPU or AI system should you buy with crypto to run AI locally?") page. Gallumen lists 9 AI systems and cards from $2,517.99.

> **Buying and delivery** Every product is new and sealed, with the maker’s warranty; no used, refurbished or open-box item is sold. Tracked shipping is included in every price, to every country except the eleven excluded ones; outside the United States, import duties and VAT are paid by the recipient on delivery. An unopened product can be returned within 14 days of delivery; the return conditions are on the returns page.

## Local LLM questions

### Can I run a local LLM on a 16 GB graphics card?

Yes. A 16 GB card runs models up to about 14 billion parameters at 4 bits with room for context. Larger models need more VRAM or a lower quantization.

### Is an NVIDIA card required to run a local LLM?

No. NVIDIA cards have the widest support through CUDA, and AMD cards also run models through ROCm or Vulkan. Check that your runner supports your card before you buy.

### Does a local LLM need an internet connection?

Only to download the model. After that, the model runs on your machine and the prompts stay on it.

### What is the difference between VRAM and system RAM for an LLM?

VRAM sits on the graphics card and is much faster than system RAM. A model that fits in VRAM runs at full speed, and a model that spills into system RAM slows down.

### Can I pay for a GPU in crypto at Gallumen?

Yes. Gallumen takes BTC, USDT, USDC, ETH, SOL, LTC, and tracked shipping is included in the price.

**Verdict**

- 16 GB runs models up to about 14 billion parameters; the 32 GB RTX 5090 is the better choice up to about 30 billion, and a 96 GB card for 70 billion.
- Start with Ollama, and switch to llama.cpp only for a setting Ollama hides.

**Order a GPU for local AI** The ASUS TUF Gaming RTX 5090 with 32 GB costs $7,549.99, tracked shipping included. [Add the RTX 5090 to the cart](https://gallumen.com/app/cart/?add=asus-tuf-gaming-rtx-5090-32g-oc&from=guides-how-to-run-a-local-llm-on-your-gpu&lang=en)

---

Gallumen: Gallumen sells new graphics cards, processors, DDR5 memory, NVMe SSDs, power supplies, motherboards, AI hardware and crypto miners, paid in Bitcoin, Ethereum, USDT, USDC, Solana or Litecoin, with tracked shipping included to every country except eleven and no ID document. Prices follow two published rules: a converted European list price minus a crypto discount, or at or under the lowest new price found in a dated survey of shops. Gallumen does not claim to be the cheapest.
