VRAMGlass contains affiliate links. As an eBay Partner, we may be compensated if you make a purchase.As an eBay Partner, we may be compensated.Learn more

GPUs tracked57Price history49 daysPrice points (24h)43,400 pointsBiggest 24h dropGeForce RTX 3060 12GB-11.1%Biggest 24h riseCMP 170HX 40GB+19.8%Updated
$ USD

How to Deploy Llama 3.1 8B Locally

Llama 3.1 8B is an 8B model that Meta released in July 2024, and by today's standards it is old. But its ecosystem is the biggest: Hugging Face has more than 3,000 fine-tunes built directly on it. At 4-bit with 8K it takes about 7 GB, so an 8GB card can run it. 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-bit8 GB · 8K
  • 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 for local deployment?

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.9est.1922.235.1

Full calculation rules are on the Methodology page.

Can a single GPU run Llama 3.1 8B?

Yes. An 8GB card handles 4-bit with 8K of context (about 7 GB), which covers everyday chat. The part worth planning is context: the more text the model has to keep track of, the more VRAM it takes, and 4-bit at the full 128K needs 23.2 GB. On a 12GB or 16GB card, decide how much context you actually want first, then pick the highest quant that still fits; a 16GB card at 8-bit still gets you past 50K. If you want 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$37024 listings107.983K
GeForce RTX 5060 Ti 16GB16 GB$86958 listings58.183K
Tesla V100 32GB32 GB$89518 listings107.9128K
Radeon RX 7900 XTX24 GB$1,25029 listings114128K
GeForce RTX 309024 GB$1,799107 listings111.6128K
GeForce RTX 409024 GB$3,75868 listings118.7128K
Ryzen AI Max+ 395 128GBWhole system · 128 GB$4,46420 listings34.4128K
RTX A600048 GB$4,89916 listings94.2128K
Mac Studio M5 Ultra 96GBWhole system · 96 GB$7,27412 listings139.7128K
MacBook Pro M5 Max 128GBWhole system · 128 GB$7,54920 listings77.4128K
DGX Spark 128GBWhole system · 128 GB$8,24022 listings36.6128K
GeForce RTX 509032 GB$8,395123 listings186.9128K
RTX PRO 600096 GB$22,50011 listings186.9128K

Only common GPUs and systems are listed, one set for models under 50B and another for larger ones, sorted by price from low to high.

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