On-prem models / Meta

Run Llama 3.1 8B Instruct on-prem

Meta's 8B dense instruction model from the Llama 3.1 release. It supports 128K context, eight languages and built-in tool-calling prompt formats. It remains one of the most fine-tuned and widely deployed small models.

8B dense128K contextLlama 3.1 Community Licensetexttool callingreleased 2024-07

Memory needed

PrecisionWeightsKV per request, 8KKV per request, 32KKV per request, 128K
BF16 (full precision)16.0 GB1.07 GB4.29 GB17.2 GB
FP88.00 GB0.54 GB2.15 GB8.59 GB
INT4 (AWQ / GPTQ)4.48 GB0.54 GB2.15 GB8.59 GB
GGUF Q4_K_M4.80 GB0.54 GB2.15 GB8.59 GB

KV cache from the published config: 32 layers, 8 KV heads x 128 dims. 16-bit cache for BF16 rows, 8-bit otherwise.

Fit for ERP and manufacturing work

Best used as a fine-tuning base for narrow ERP tasks such as classifying tickets, normalizing part descriptions or routing requests. Zero-shot text-to-SQL over large ERP schemas is weak. Fine for simple tool calls with a small tool set.

Strengths

  • Huge ecosystem of fine-tunes, quantizations and tutorials
  • Runs on a single 16GB GPU at 8-bit or on CPU at 4-bit
  • Supported by every major inference engine
  • Built-in tool-use prompt format

Watch out for

  • Clearly behind 2025 and 2026 small models on reasoning and coding
  • No reasoning mode
  • Gated repo on Hugging Face; licence is not OSI open source
  • Full-attention KV cache grows fast at long context

GPUs that run it

One user, 8K context, FP8

HardwareCountMemory usedTok/s per user
NVIDIA L4 24GB111 / 21 GB21
NVIDIA A10 24GB111 / 21 GB41
NVIDIA GeForce RTX 4090 24GB111 / 21 GB66
NVIDIA GeForce RTX 5090 32GB111 / 28 GB109
NVIDIA A100 40GB PCIe111 / 36 GB96
NVIDIA L40S 48GB111 / 43 GB57
NVIDIA RTX A6000 48GB111 / 43 GB51
NVIDIA RTX 6000 Ada 48GB111 / 43 GB63

20 people at once, 16K context, FP8

HardwareCountMemory usedTok/s per user
NVIDIA A100 40GB PCIe131 / 36 GB46
NVIDIA L4 24GB233 / 43 GB16
NVIDIA A10 24GB233 / 43 GB32
NVIDIA L40S 48GB131 / 43 GB26
NVIDIA RTX A6000 48GB131 / 43 GB23
NVIDIA RTX 6000 Ada 48GB131 / 43 GB29
NVIDIA GeForce RTX 4090 24GB233 / 43 GB51
NVIDIA GeForce RTX 5090 32GB233 / 57 GB83

Serving and licence

vLLM, SGLang, TensorRT-LLM, llama.cpp and Ollama (llama3.1:8b) all support it fully.

Llama 3.1 Community License. Commercial use is allowed, but companies with over 700 million monthly active users need a separate licence from Meta, and attribution plus the Acceptable Use Policy apply.

Model card on Hugging Face

Design a Llama 3.1 8B Instruct deployment

Preloaded with Llama 3.1 8B Instruct. Add your ERP and documents, change GPUs or users, and export the diagram.

Loading the architecture builder...

Questions

How much VRAM does Llama 3.1 8B Instruct need?

The weights alone take about 16.0 GB in BF16, 8.00 GB in FP8 and 4.48 GB in 4-bit. On top of that each request holds a KV cache of about 0.54 GB at 8K tokens of context (FP8 cache), so 20 people generating at once need roughly 10.7 GB more, plus a few GB of runtime overhead.

What is the smallest GPU setup that runs Llama 3.1 8B Instruct?

For a single user at 8K context in FP8, 1 x NVIDIA L4 24GB (24 GB each) fits, at an estimated 21 tokens per second. For a team, size for concurrent requests and context; the builder above does that.

Is Llama 3.1 8B Instruct allowed for commercial use?

Llama 3.1 8B Instruct is released under Llama 3.1 Community License. Commercial use is allowed, but companies with over 700 million monthly active users need a separate licence from Meta, and attribution plus the Acceptable Use Policy apply. Check the licence text on the model card with your legal team before production use.

Which engine should serve Llama 3.1 8B Instruct on-prem?

vLLM, SGLang, TensorRT-LLM, llama.cpp and Ollama (llama3.1:8b) all support it fully.