Meta
ChatCodingAI codingReasoningMulti-purpose8.03B
Chat

Llama 3.1 8B Instruct

Llama · Llama 3.1 Community License

Best-in-class 8B model. General capabilities with capable coding support. The go-to small model for local inference: fast, accurate, and well-supported across all inference engines.

Parameters
8.03B
Architecture
Dense
Context
131,072 tokens
Released
2024-07-23
Engines
llama.cpp, ollama, vLLM, TGI
Builder Tools
Cursor, Continue, Aider, Open WebUI, LM Studio

Parameters

8.03B

VRAM

6.7 GB

Context

128K

Formats

5

GPUs

41

Llama 3.1 8B Instruct (8.03B) requires 6.7 GB VRAM at recommended quality (Q6_K). At efficient quality (Q4_K_M), it fits in 4.9 GB VRAM, making it compatible with the NVIDIA RTX 4060 Laptop (40-60W). On NVIDIA Grace Blackwell Ultra GB300, expect approximately 350 tok/s at Q8_0. For the best experience, Starter AI Desktop ($582) is recommended.

Source: OwnRig methodology

VRAM (Recommended)

6.7 GB

Quantization

Q6_K

File Size

5.8 GB

Max Context

128K tokens

Primary Use

Chat

Memory

VRAM Requirements

QualityQuantizationVRAMFile Size
fullQ8_08.9 GB8 GB
recommendedQ6_K6.7 GB5.8 GB
recommendedQ5_K_M5.8 GB4.8 GB
efficientQ4_K_M4.9 GB4 GB
compressedQ3_K_M4 GB3.1 GB
Scaling

Context Length Impact

KV cache VRAM at Q6_K quality. Longer context = more memory.

ContextKV CacheTotal VRAM
2K102 MB6.8 GB
4K307 MB7 GB
8K512 MB7.2 GB
16K1 GB7.7 GB
32K2 GB8.7 GB
64K4.1 GB10.8 GB
128K8.2 GB14.9 GB

Compatible GPUs

41 devices
NVIDIA Grace Blackwell Ultra GB300Q8_0350 tok/sExcellent
Apple M4 Max (36GB Unified)Q8_055 tok/sExcellent
Apple M4 Max (64GB Unified)Q8_055 tok/sExcellent
NVIDIA GeForce RTX 3080 10GBQ5_K_M50 tok/sExcellent
NVIDIA GeForce RTX 3090Q8_070 tok/sExcellent
NVIDIA GeForce RTX 4060 Ti 16GBQ8_055 tok/sExcellent
NVIDIA GeForce RTX 4070 SuperQ5_K_M55 tok/sExcellent
NVIDIA GeForce RTX 4070 Ti 12GBQ5_K_M52 tok/sExcellent
NVIDIA GeForce RTX 4070 Ti SuperQ8_075 tok/sExcellent
NVIDIA GeForce RTX 4080 SuperQ8_082 tok/sExcellent
NVIDIA GeForce RTX 4090Q8_095 tok/sExcellent
NVIDIA GeForce RTX 5080Q8_092 tok/sExcellent
NVIDIA GeForce RTX 5090Q8_0170 tok/sExcellent
NVIDIA RTX PRO 6000 BlackwellQ8_0122 tok/sExcellent
NVIDIA RTX PRO 6000 Blackwell Max-QQ8_0112 tok/sExcellent
NVIDIA GeForce RTX 5060 Ti 16GBQ8_062 tok/sExcellent
Apple M4 (16GB Unified)Q8_016 tok/sGood
Apple M4 Pro (24GB Unified)Q8_032 tok/sGood
Apple M4 Pro (48GB)Q8_032 tok/sGood
NVIDIA GeForce RTX 3060 12GBQ5_K_M35 tok/sGood
NVIDIA GeForce RTX 4060 8GBQ4_K_M32 tok/sGood
NVIDIA RTX 4080 Laptop (120-150W)Q5_K_M36 tok/sGood
NVIDIA RTX 4090 Laptop (150-175W)Q8_047 tok/sGood
AMD Radeon RX 7900 XTXQ8_060 tok/sGood
AMD Radeon Pro W7900Q8_035 tok/sGood
AMD Radeon RX 9070Q8_096 tok/sGood
Apple M2 (8GB Unified)Q4_K_M14 tok/sGood
Apple M3 (8GB Unified)Q4_K_M16 tok/sGood
AMD Radeon RX 9060 XT 16GBQ8_048 tok/sGood
NVIDIA GeForce RTX 5060 8GBQ4_K_M37 tok/sGood
Apple M3 Pro (18GB Unified)Q4_K_M15 tok/sAcceptable
NVIDIA RTX 4060 Laptop (40-60W)Q4_K_M19 tok/sAcceptable
NVIDIA RTX 4070 Laptop (80-115W)Q4_K_M22 tok/sAcceptable
AMD Radeon RX 7600Q4_K_M25 tok/sAcceptable
Apple M1 (8GB Unified)Q4_K_M7 tok/sAcceptable
Apple M1 Pro (16GB Unified)Q8_08 tok/sAcceptable
Apple M2 (16GB Unified)Q8_08 tok/sAcceptable
Apple M2 Pro (16GB Unified)Q8_09 tok/sAcceptable
Apple M3 (16GB Unified)Q8_09 tok/sAcceptable
Apple M1 (16GB Unified)Q8_04 tok/sMarginal
AMD Radeon RX 9060 XT 8GBQ8_0Not viable

Showing 41 of 41 entries

Builder Context

Llama 3.1 8B Instruct is commonly used with Cursor, Continue, Aider, Open WebUI, LM Studio. For an AI coding workflow, pair it with an embedding model like nomic-embed-text for local RAG.

Hardware

Recommended Builds

Complete PC builds that can run Llama 3.1 8B Instruct.

Mid-range

AI Builder Workstation

Run every AI tool you need. Nothing leaves your machine

RTX 4090·24 GBVRAM

Runs 10 models

$2,773
High-end

AMD AI Powerhouse

24 GB of AI power at nearly half the NVIDIA price

RX 7900 XTX 24GB·24 GBVRAM

Runs 7 models

$1,699
Budget

Budget AI Desktop

Your own AI coding setup for under $800

RTX 3060 12GB·12 GBVRAM

Runs 7 models

$684
Budget

Budget Home AI Server

Always-on AI assistant for the whole household

RTX 4060 Ti 16GB·16 GBVRAM

Runs 7 models

$1,063
Mid-range

Compact SFF AI Build

Serious AI power in a compact, desk-friendly form factor

RTX 4070 Super 12GB·12 GBVRAM

Runs 5 models

$1,304
High-end

High-End AI Workstation

Chat, generate images, and code with AI, all at once

RTX 4090·24 GBVRAM

Runs 8 models

$3,433
High-end

High-End Home AI Server

Your household's private AI: chatbots, code tools, and more

2x NVIDIA GeForce RTX 3090 24GB (Used) + NVLink Bridge·48 GBVRAM

Runs 12 models

$3,623
High-end

Mac Studio AI Builder

Plug in and run AI: silent, powerful, no assembly required

M4 Max 128GB (Mac Studio)·128 GBVRAM

Runs 6 models

$3,999
Mid-range

Mid-Range AI Workstation

The sweet spot for AI: handles most models without overspending

RTX 4060 Ti 16GB·16 GBVRAM

Runs 8 models

$1,119
Mid-range

Mid-Range Home AI Server

Serve multiple AI models to every device at home

RTX 3090 24GB (Used)·24 GBVRAM

Runs 9 models

$1,773
Extreme

Next-Gen AI Workstation

The fastest single GPU, built around the new RTX 5090

RTX 5090 32GB·32 GBVRAM

Runs 6 models

$3,843
Mid-range

Silent Mini-ITX AI Box

Whisper-quiet AI processing for noise-sensitive environments

RTX 4060 Ti 16GB·16 GBVRAM

Runs 8 models

$1,114
Budget

Starter AI Desktop

Run your first local AI models for under $600

RTX 3060 12GB·12 GBVRAM

Runs 6 models

$543
FAQ

Frequently Asked Questions

How much VRAM does Llama 3.1 8B Instruct need?
Llama 3.1 8B Instruct requires 6.7 GB VRAM at recommended quality (Q6_K). At lower quality settings, it can fit in as little as 4 GB.
What is the best GPU for Llama 3.1 8B Instruct?
The NVIDIA Grace Blackwell Ultra GB300 delivers the best performance for Llama 3.1 8B Instruct, achieving 350 tok/s at Q8_0 with an excellent rating.
Can I run Llama 3.1 8B Instruct on an RTX 4060 Ti?
Yes. On the NVIDIA GeForce RTX 4060 Ti 16GB, Llama 3.1 8B Instruct runs at 55 tok/s (Q8_0, excellent).
What quantization should I use for Llama 3.1 8B Instruct?
For the best quality, use Q6_K (6.7 GB VRAM). If your GPU has limited VRAM, Q3_K_M (4 GB) is the most efficient option with acceptable quality.
Is Llama 3.1 8B Instruct good for coding?
Yes. Llama 3.1 8B Instruct is used with Cursor, Continue, Aider, Open WebUI, LM Studio for local AI coding. For the best coding experience, pair it with an embedding model for local RAG.

Related Guides

All models

Data confidence: verified. Source

VRAM requirements are calculated from model parameters and may vary by inference engine, context length, and batch size. Performance estimates are based on community benchmarks and should be verified for your specific configuration.Llama is a trademark of its respective owner. OwnRig is not affiliated with or endorsed by the model creator.