Llama 3.2 1B Instruct VRAM & Memory Requirements
Specific checkpoints with sourced architecture and weight files. Official BF16 safetensors: 3.18 GiB–5.06 GiB at 8,192 tokens, 1 sequence, FP16 KV, vllm.
This result is an estimate, not a measured trace.Not verifiedFile-backed weights
Publisher and provenance
- PublisherMeta
- Hugging Face
meta-llama/Llama-3.2-1B-Instruct - Revision
9213176726f574b556790deb65791e0c5aa438b6 - Total parameters1,235,814,400
- Layers16
- Query heads32
- KV heads8 (gqa)
- Head dimension64
- Recorded context capability131,072
- Completenesscomplete · full
Memory layers in this estimate
Artifact bytes, raw KV, engine extras, and total demand are separate. This is not a runtime trace.
- Weight artifact
- 2.30 GiB (2,471,645,608 bytes)
- Raw KV cache
- 0.25 GiB (268,435,456 bytes)
- Engine extras / workspace
- 0.63 GiB–2.51 GiB
- Total estimated demand
- 3.18 GiB–5.06 GiB
Published artifacts
| Quantization | Selected files | Bytes | Engine | Evidence |
|---|---|---|---|---|
| Official BF16 safetensors bf16 | model.safetensors | 2,471,645,608 (2.30 GiB / 2.47 GB) | vllm, sglang, unspecified | file-metadata |
| INT4 theoretical | No published file | 617,907,200 (theoretical) | — | theoretical |
Memory by quantization and context
Concurrent sequences = 1. KV defaults to FP16. The range includes documented runtime extras for the listed engine. These figures use the same core as the interactive calculator.
| Quantization | 2,048 tokens | 8,192 tokens | 32,768 tokens |
|---|---|---|---|
| Official BF16 safetensors | 2.99 GiB–4.87 GiB | 3.18 GiB–5.06 GiB | 3.93 GiB–5.83 GiB |
| INT4 theoretical Theoretical rows are not downloadable artifacts. | 0.76 GiB–1.39 GiB | 0.95 GiB–1.62 GiB | 1.70 GiB–2.55 GiB |
Raw KV contribution
Standard GQA/MHA raw KV is 2 × layers × kvHeads × headDim × tokens × sequences × bytes per element. This page uses KV heads (8), not query heads (32). Using query heads would overstate this cache by 4×.
- 8,192 tokens, 1 sequence, FP16: 268,435,456 bytes (0.2500 GiB)
- 32,768 tokens: 1,073,741,824 bytes (1.00 GiB)
Related pages
Sources
- Llama 3.2 1B Instruct model card (Meta) — Context length 128k, GQA, Llama 3.2 Community License. Parameters as printed on the card.
- Meta llama-models sku_list.py (architecture arguments) — arch_args dim=2048, n_layers=16, n_heads=32, n_kv_heads=8. head_dim is dim ÷ n_heads = 64 (Meta's reference model derives it that way; sku_list.py has no head_dim key). The Hugging Face config.json is gated (HTTP 401), so it was not read.
- Hugging Face API — sha 9213176726f574b556790deb65791e0c5aa438b6; gated manual; safetensors.total=1235814400; 1 safetensors siblings.
- Cross-check only: GGUF header of a community conversion (not an official source) — Header read with an HTTP range request on 2026-10-18; it agrees with Meta's numbers: block_count 16, head_count 32, head_count_kv 8, embedding_length 2048, context_length 131072, key_length 64. The catalog values above come from Meta, not from this file.
- Hugging Face model page — Gated (manual). Llama 3.2 Community License applies; this page states facts only and does not redistribute the weights.
Assumptions that affect this result
- Requested context is within the recorded native window of 131072 tokens.
- Full-resident weight estimates use total parameters, including inactive MoE experts.
- Weight bytes come from the selected weight files only, not from every file in the repository.
- Download file size is not peak GPU memory. Runtime layout, allocator padding, and KV are extra.
- Counted files: model.safetensors.
- Context budget is the number of cached tokens per sequence (prompt plus reserved generation).
- Concurrent sequences share one model replica; weights are not multiplied by sequence count.
- KV dtype is independent of weight quantization unless you change it.
Calculator
Loading catalog snapshot…
Search or pick a catalog checkpoint to see memory demand.
Search or pick a catalog checkpoint to see memory demand.