VRAMGlass contains affiliate links. As an eBay Partner, we may be compensated if you make a purchase. As an Amazon Associate I earn from qualifying purchases.We may earn from eBay and Amazon links.Learn more

GPUs tracked64Price history94 daysPrice points (24h)29,155 pointsBiggest 24h dropTesla V100 16GB-6.1%Biggest 24h riseInstinct MI100+12.8%Updated
$ USD

Run Llama 3.1 8B Locally: VRAM & GPU Requirements

Llama 3.1 8B is an 8B model released by Meta in July 2024 that needs about 7 GB of VRAM at 4-bit with 8K context, so an 8GB GPU can run it locally. By today's standards it is old, but its ecosystem is the biggest, with more than 3,000 direct fine-tunes on Hugging Face. Its weakness is that long context eats VRAM: the full 128K needs 23.2 GB, twice what Qwen3.5 9B needs.

Llama 3.1 8B details

  • Min VRAM at 4-bit (8K context)8 GB
  • Parameters8B
  • Max context128K
Architecture
Dense
Launch date
Jul 23, 2024
Vendor
Meta AI
Ollama tag
llama3.1:8b
Layers
32
Hidden size
4,096
KV heads
8
Head dim
128

How much VRAM does Llama 3.1 8B need?

QuantizationWeightsGB8K contextGB32K contextGB128K context (max)GB
1-bit2est.4.27.420.3
2-bit3.7GGUF5.89.122
3-bit4.8GGUF6.910.223.1
4-bit4.9GGUF710.323.2
5-bit5.7GGUF7.811.124
8-bit8.5GGUF10.613.926.8
BF16/FP1616.1official18.221.534.4

Full calculation rules are on the Methodology page.

Can a single GPU run Llama 3.1 8B?

Yes, an 8GB GPU handles Llama 3.1 8B at 4-bit with 8K of context (about 7 GB), which covers everyday chat. Context is the part worth planning: longer text takes more VRAM, and 4-bit at the full 128K needs 23.2 GB. On a 12GB or 16GB card, decide how much context you want first, then pick the highest quant that fits. A 16GB card at 8-bit still gets past 50K. For 8-bit and long documents, a 24GB RTX 3090 is the sweet spot, with room for about 120K and speed to spare.

eBay
DevicePriceSpeed t/sMax context
Tesla V100 16GB16 GB$41316 listings107.983K
GeForce RTX 5060 Ti 16GB16 GB$88045 listings58.183K
Tesla V100 32GB32 GB$1,37813 listings107.9128K
Radeon RX 7900 XTX24 GB$1,40027 listings114128K
GeForce RTX 309024 GB$1,992116 listings111.6128K
GeForce RTX 409024 GB$3,82574 listings118.7128K
Ryzen AI Max+ 395 128GBWhole system · 128 GB$4,02531 listings34.4128K
RTX A600048 GB$4,89925 listings94.2128K
Mac Studio M5 Ultra 96GBWhole system · 96 GB$6,7995 listings139.7128K
MacBook Pro M5 Max 128GBWhole system · 128 GB$7,00029 listings77.4128K
GeForce RTX 509032 GB$7,385128 listings186.9128K
DGX Spark 128GBWhole system · 128 GB$7,90037 listings36.6128K
RTX PRO 600096 GB$18,60020 listings186.9128K

Only common GPUs and systems are listed, from cheapest to most expensive.

What to know before running Llama 3.1 8B locally

  1. Choose quantization by how much context you need

    Between 4-bit (4.9 GB) and 8-bit (8.5 GB), pick the highest level that still fits the context you want. Every extra 1K tokens of context adds about 0.13 GB of cache, so 4-bit at 32K already needs 10.3 GB. Its native context is only 8K; the 128K comes from RoPE scaling.

  2. What the license requires of fine-tunes

    The Llama 3.1 Community License requires that when you distribute it or a model based on it, you prominently display “Built with Llama.” If you release a model trained or fine-tuned using it or its outputs, the name must begin with “Llama,” and companies with more than 700 million monthly active users need a separate license from Meta. Fine-tunes based on it are bound by the same license.

  3. Tool calling

    Llama 3.1 was trained with a tool-calling format and also knows three built-in tool names: brave_search, wolfram_alpha and code_interpreter. llama.cpp's llama-server recognizes them when you add --jinja. For sampling, stick with Meta's defaults: temperature 0.6 and top_p 0.9.

  4. Where it shows its age

    Its knowledge cutoff is December 2023, and it handles text only. It officially supports 8 languages: English, German, French, Italian, Portuguese, Hindi, Spanish and Thai. Chinese isn't among them, and Meta explicitly advises against using it to chat in unsupported languages without fine-tuning. For Chinese, look at Qwen3.5 9B instead.

Launch commands

Ollama

  • Windows
  • macOS
  • Linux
Terminal
ollama run llama3.1:8b

llama.cpp

  • NVIDIA
  • AMD
  • Mac
  • CPU
Terminal
llama-server -hf bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:Q4_K_M \
  -c 8192

vLLM

  • Linux
  • NVIDIA
  • AMD
Original weights
Terminal
vllm serve meta-llama/Llama-3.1-8B-Instruct
NVFP4 · Blackwell

Blackwell GPUs (RTX 50 series, RTX PRO 6000, B200) run NVFP4 weights natively, at about 30% of the original size.

Terminal
vllm serve nvidia/Llama-3.1-8B-Instruct-NVFP4

MLX

  • Apple Silicon

On a Mac, pip install mlx-lm first; this command downloads the MLX weights from Hugging Face and starts an OpenAI-compatible server.

Terminal
mlx_lm.server --model mlx-community/Llama-3.1-8B-Instruct-4bit

File names follow that week's model-library snapshot; the definitions are in the methodology. Methodology

Other models in the Meta family

ModelTotal paramsActive params4-bit size
Llama 3.2 3BDense3.2B3.2B2 GB
Llama 3.3 70BDense70.6B70.6B42.5 GB
Llama 4 Scout 17B 16EMoE108.6B17B65.4 GB
Muse Spark OpenMoE816B42B505.5 GB

About Meta