LL

Meta Llama 3.1 405B Instruct

LlamaGGUF by ThomasBaruzierUpdated 2024-08-31
Download on Hugging Face
Parameters406B
Context128K
Layers126
Architecturellama
Smallest quant85.2 GB
Quick answer

Meta Llama 3.1 405B Instruct needs about 247.8 GB of memory at Q4_K_M (a 243.1 GB file) with an 8K context window, which is more than a 48 GB GPU holds. This repository has 20 quants, from 85.2 GB (IQ1_S) to 811.7 GB (F16). Longer context needs more: at 32K tokens the KV cache alone adds about 16.9 GB.

Meta Llama 3.1 405B Instruct – 405B parameter instruction‑tuned LLM

Meta Llama 3.1 405B Instruct is a 405B parameter, text‑only instruction tuned model. It supports multilingual dialogue and is optimized for large context lengths of 131072 tokens. The model is available in multiple GGUF quantizations for llama.cpp.

Good at

  • Multilingual instruction following
  • Large context handling
  • Tool‑use capability

Limits

  • No vision support
  • Requires large VRAM for full precision
  • License is llama3.1

Best for

  • Chatbots needing 128k context
  • Long‑form content generation
  • Complex tool‑integrated workflows

Who it’s for. Developers building high‑capacity chat or content generation systems that require extensive context and multilingual support. The model is suitable for users with sufficient GPU memory to run the chosen quantization.

Quants & memory

QuantFileEst. memoryvs VRAMResultDownload
IQ1_S85.2 GB (2 parts) 90.0 GB
Too big Get file →
IQ1_M93.5 GB (2 parts) 98.2 GB
Too big Get file →
IQ2_XXS107.3 GB (3 parts) 112.0 GB
Too big Get file →
IQ2_XS119.3 GB (3 parts) 124.1 GB
Too big Get file →
IQ2_S125.6 GB (3 parts) 130.4 GB
Too big Get file →
IQ2_M136.7 GB (3 parts) 141.4 GB
Too big Get file →
Q2_K_S137.8 GB (3 parts) 142.5 GB
Too big Get file →
Q2_K149.3 GB (4 parts) 154.1 GB
Too big Get file →
IQ3_XXS155.8 GB (4 parts) 160.6 GB
Too big Get file →
IQ3_XS166.1 GB (4 parts) 170.8 GB
Too big Get file →
Q3_K_S175.2 GB (4 parts) 180.0 GB
Too big Get file →
IQ3_S175.5 GB (4 parts) 180.2 GB
Too big Get file →
IQ3_M181.7 GB (4 parts) 186.5 GB
Too big Get file →
Q3_K_M195.4 GB (5 parts) 200.1 GB
Too big Get file →
Q3_K_L212.8 GB (5 parts) 217.6 GB
Too big Get file →
IQ4_XS216.6 GB (5 parts) 221.3 GB
Too big Get file →
IQ4_NL229.1 GB (5 parts) 233.8 GB
Too big Get file →
Q4_K_S230.5 GB (5 parts) 235.2 GB
Too big Get file →
Q4_K_M243.1 GB (6 parts) 247.8 GB
Too big Get file →
F16811.7 GB (18 parts) 816.5 GB
Too big Get file →

For 8 GB VRAM, use IQ1_S (85.23 GB file, ~90 GB memory at 8 k context). For 16 GB VRAM, IQ2_S (125.65 GB file, ~130.4 GB memory). For 24 GB VRAM, Q3_K_M (195.37 GB file, ~200.1 GB memory). Estimates are approximate.

What GPU do you need for Meta Llama 3.1 405B Instruct?

These figures add the file size, an fp16 KV cache at an 8K context window (worked out from this model’s own header) and about 0.5 GB for the runtime. They are estimates, so leave a little headroom, and expect to use less context or a smaller quant if you are right at the limit.

  • 4 GB VRAM: no quant fits at an 8K context.
  • 6 GB VRAM: no quant fits at an 8K context.
  • 8 GB VRAM: no quant fits at an 8K context.
  • 12 GB VRAM: no quant fits at an 8K context.
  • 16 GB VRAM: no quant fits at an 8K context.
  • 24 GB VRAM: no quant fits at an 8K context.
  • 32 GB VRAM: no quant fits at an 8K context.
  • 48 GB VRAM: no quant fits at an 8K context.

Which Meta Llama 3.1 405B Instruct quant should you choose?

Q4_K_M is the usual starting point for Meta Llama 3.1 405B Instruct: it balances file size and quality well. Here it is a 243.1 GB file.

If memory is tight, the smallest file is IQ1_S at 85.2 GB, with the quality trade-offs that come with fewer bits. Use it only when memory is very tight. Expect a clear drop in quality, which is usually worse on small models and easier to live with on large ones.

New to quant names? Read GGUF quantization explained.

Specifications

Architecture from the GGUF header

Architecturellama
Parameters406B
Layers126
Trained context131,072 tokens
KV cache (fp16)504 KB per token

Source

Quantized byThomasBaruzier
FamilyLlama
Licensellama3.1
Downloads (HF)2,790
Last updated2024-08-31

Frequently asked questions about Meta Llama 3.1 405B Instruct

How much VRAM does Meta Llama 3.1 405B Instruct need?

About 247.8 GB at Q4_K_M with an 8K context window. That is the 243.1 GB file, plus the KV cache and roughly 0.5 GB of runtime overhead. Smaller quants need less and longer context needs more.

Can I run Meta Llama 3.1 405B Instruct on an 8 GB GPU?

Not at an 8K context. The smallest file needs about 90.0 GB, so you would need a larger GPU or CPU offloading.

What is the file size of Meta Llama 3.1 405B Instruct GGUF?

It depends on the quant: IQ1_S is 85.2 GB, IQ1_M is 93.5 GB, IQ2_XXS is 107.3 GB, IQ2_XS is 119.3 GB, IQ2_S is 125.6 GB, IQ2_M is 136.7 GB and 14 more.

What context length does Meta Llama 3.1 405B Instruct support?

The GGUF header lists a trained context length of 131,072 tokens (128K). The KV cache grows with the context you use: about 4.2 GB at 8K and 16.9 GB at 32K.

Where can I download Meta Llama 3.1 405B Instruct GGUF?

The files are on Hugging Face in the ThomasBaruzier/Meta-Llama-3.1-405B-Instruct-GGUF repository. The download buttons on this page open the file on Hugging Face. ggufmodels.com does not host any model files.

What license does Meta Llama 3.1 405B Instruct use?

Hugging Face lists the license as llama3.1. Licenses can differ between the quantized files and the original model, so check the repository and the base model before commercial use.

Can I run Meta Llama 3.1 405B Instruct on 8 GB VRAM?

Use the IQ1_S quantization; it requires about 90 GB of memory at 8 k context, which is beyond 8 GB VRAM, so it is not feasible.

Does this model support image input?

No, the model is text‑only and does not support vision modalities.

What is the maximum context length?

The model supports up to 131072 tokens of context.

Similar models

Browse all →

More from ThomasBaruzier

All by ThomasBaruzier →

More Llama models

All Llama →

Other large models

All large models →