Bonus: Top up now and we'll double your first deposit — get x2 credits instantly.

Llama 3.1 405B Instruct: Self-Hosting & Deployment Guide

Llama 3.1 405B Instruct is Meta's largest openly released instruction-tuned text model.

What is Llama 3.1 405B Instruct?

Llama 3.1 405B Instruct is Meta's largest openly released instruction-tuned text model, published by Meta with open weights at meta-llama/Llama-3.1-405B-Instruct. LLM API does not route this model today, so there is no endpoint or code sample for it here. What this page does give you is the self-hosting picture: published weight sizes, the VRAM each quantisation needs and the commands to serve it yourself. Every figure is read from the public repository and refreshed weekly.

How to run Llama 3.1 405B Instruct yourself

Open weights (llama3.1), 405.9B parameters. Below: how much memory the weights need at each quantization, which hardware fits them, and the commands to serve it.

Llama 3.1 405B Instruct VRAM requirements

Precision / quantizationWeightsFigureSource
BF16 (full precision)811.7 GBEstimate405.9B params × 2 bytes
FP8410.1 GBFile sizenvidia/Llama-3.1-405B-Instruct-FP8
AWQ 4-bit219.3 GBFile sizehugging-quants/Meta-Llama-3.1-405B-Instruct-AWQ-INT4

File size = actual download size on Hugging Face. Estimate = parameter count × bytes per weight. Weights only — the KV cache for long contexts needs extra memory; the fit tables below add 15% headroom as a rule of thumb.

GPU requirements: deploy Llama 3.1 405B Instruct on your hardware

HardwareBF16 (full precision)FP8AWQ 4-bit
NVIDIA H200141 GB
NVIDIA H10080 GB
NVIDIA A100 80GB80 GB
NVIDIA L40S48 GB

GPUs needed per variant.

HardwareBF16 (full precision)FP8AWQ 4-bit
AWS p5.48xlarge8× H100 · 640 GBFitsFits
AWS p4de.24xlarge8× A100 80GB · 640 GBFitsFits
AWS g6e.12xlarge4× L40S · 192 GB
Google Cloud a3-highgpu-8g8× H100 · 640 GBFitsFits
Azure ND H100 v58× H100 · 640 GBFitsFits

Whole-instance GPU memory; public instance specs.

Serve it yourself

pip install -U vllm
vllm serve meta-llama/Llama-3.1-405B-Instruct
pip install 'sglang[all]'
python -m sglang.launch_server --model-path meta-llama/Llama-3.1-405B-Instruct

Commands use the official repositories above; vLLM and SGLang expose an OpenAI-compatible endpoint.

Not on LLM.API yet

We do not route this model through our API at the moment. Browse the models you can call today — most workloads have a close match already live.

Not available on LLM API yet

We do not route this model through our API at the moment, so there is no endpoint or code snippet for it yet. Browse the models you can call today — most workloads have a close match already live.

Browse available models

Why run Llama 3.1 405B Instruct on LLM.API?

  • Unified AI Routing

    Reach Llama 3.1 405B Instruct and sibling models through one OpenAI-compatible endpoint.

  • Cost Control

    Production: Compare provider price points and keep spend visible as you scale Llama 3.1 405B Instruct.

  • Reliability Layer

    Retry and route across configured providers when a single upstream blips.

  • Observability

    Trace prompts, tokens, and errors for Llama 3.1 405B Instruct alongside the rest of your stack.

  • Drop-in SDKs

    Keep using familiar OpenAI client patterns with base URL https://api.llmapi.ai/v1.

  • Model Breadth

    Swap Llama 3.1 405B Instruct for chat, media, or embedding alternatives without rewriting auth.

When to Use — When NOT to Use

Get one key to every model

Swap your API key. Keep your code.