
Llama's context limit is only one part of a deployment budget. Model weights, key-value (KV) cache, serving runtime memory and concurrent requests all use memory. Treat the calculations here as planning estimates for one sequence, not a hardware guarantee.
Compare context limits by release
| Release | Context listed by Meta | Notes |
|---|---|---|
| LLaMA | 2K tokens | Original research release |
| Llama 2 | 4K tokens | Text models |
| Llama 3 | 8K tokens | Text models |
| Llama 3.1, 3.2 and 3.3 | 128K tokens | Check the selected version and quantized build |
| Code Llama |

