Meta
Llama 3.1 8B: Local Deployment Guide
Short answer: Llama 3.1 8B runs locally with ollama run llama3.1:8b. That pulls the Q4_K_M build, a 4.9 GB download, so an 8 GB GPU is the practical floor and 12 GB is comfortable. The 128K context window is real, but filling it costs about 17 GB of KV cache on top of the weights, which is why almost nobody runs it at 128K on a consumer card. Every figure on this page is from Meta’s model card, the model’s configuration file, or the file sizes published on Ollama and Hugging Face; this site has not benchmarked the model.
Meta's Llama 3.1 8B is the smallest model in the July 2024 release, and it keeps the 128K context window, tool calling and eight supported languages of its larger siblings. The default Ollama build is 4.9 GB (Q4_K_M), which is what makes it one of the most accessible open-weight models to run locally. It is one of the most accessible LLMs you can run locally; if you are still choosing a card, start with the AI hardware guide.
How much VRAM does Llama 3.1 8B need?
About 7 GB at Q4_K_M with an 8K context, so an 8 GB GPU is the floor: a 4.9 GB file, 1.1 GB of context cache and roughly 1 GB of buffers. A 12 GB card covers Q8_0 or a 32K context; 16 GB of system RAM is the equivalent floor without a GPU; the unquantised fp16 build needs a 24 GB card. The arithmetic is parameters × bits per weight ÷ 8: 8.03B × 4.90 bits ÷ 8 = 4.92 GB at Q4_K_M, which matches the published file.
weights (GB) ≈ parameters (billions) × bits per weight ÷ 8
Q4_K_M: 8.03 × 4.90 ÷ 8 ≈ 4.92 GB · Q8_0: 8.03 × 8.5 ÷ 8 ≈ 8.5 GB · fp16: 8.03 × 16 ÷ 8 ≈ 16.1 GB
Q4_K_M is not exactly 4 bits per weight: the k-quant format keeps some tensors at higher precision, which is why the published 4.92 GB file works out to 4.90 bits per weight rather than 4.
File sizes are from bartowski/Meta-Llama-3.1-8B-Instruct-GGUF and Ollama’s tag list. The context cache is arithmetic from the model’s config.json: 32 layers × 8 key-value heads × 128 dimensions, stored twice at 2 bytes, is 128 KB per token, or 1.07 GB for 8,192 tokens. “Memory needed” is file + that cache + a 1 GB allowance for buffers.
| Quantisation | File | Ollama tag (listed size) | Memory needed (8K context) | Fits |
|---|---|---|---|---|
| Q2_K | 3.18 GB | 8b-instruct-q2_K (3.2GB) | ~5.3 GB | 6 GB card, with heavy quality loss |
| Q3_K_M | 4.02 GB | 8b-instruct-q3_K_M (4.0GB) | ~6.1 GB | 8 GB card |
| Q4_K_S | 4.69 GB | 8b-instruct-q4_K_S (4.7GB) | ~6.8 GB | 8 GB card |
| Q4_K_M | 4.92 GB | llama3.1:8b (4.9GB) — the default | ~7.0 GB | 8 GB card |
| Q5_K_M | 5.73 GB | 8b-instruct-q5_K_M (5.7GB) | ~7.8 GB | 8 GB card, with little to spare |
| Q6_K | 6.60 GB | 8b-instruct-q6_K (6.6GB) | ~8.7 GB | 12 GB card |
| Q8_0 | 8.54 GB | 8b-instruct-q8_0 (8.5GB) | ~10.6 GB | 12 GB card |
| fp16 | 16.07 GB | 8b-instruct-fp16 (16GB) | ~18.1 GB | 24 GB card |
- System RAM, no GPU: the file loads into RAM instead, so the same totals apply. 16 GB of RAM covers every build up to Q8_0 with room for the operating system; on an 8 GB machine only the Q2_K and Q3 builds leave enough free. See running an LLM on CPU only.
- Mac: unified memory follows the same arithmetic; an 8 GB Mac is the same squeeze as an 8 GB machine with no GPU, and a 16 GB Mac is comfortable. See running Llama 3 on a Mac.
- Disk: the download size in the table, once per build you pull.
- The 128K window: the table assumes 8K of context. The next section shows what the full window adds.
For the wider ladder across model sizes see the 8 GB RAM model guide, best LLM for 8 GB of VRAM, best LLM for 12 GB of VRAM and the Ollama RAM and VRAM table.
Llama 3.1 8B size in GB: every Ollama tag
The default llama3.1:8b is 4.9 GB. Ollama carries fifteen instruct builds of the 8B model, from 3.2 GB at Q2_K to 16 GB at fp16, all with the 128K context. The sizes below are copied from the tag list; the 8b-text-* tags are the same ladder for the base (pretrained) model, and the 70B and 405B tags are on the Llama 3.1 70B and Llama 3.1 405B pages.
| Ollama tag | Download | Quantisation | Note |
|---|---|---|---|
llama3.1:8b | 4.9GB | Q4_K_M | same file as llama3.1:latest and llama3.1:8b-instruct-q4_K_M |
llama3.1:8b-instruct-q2_K | 3.2GB | Q2_K | |
llama3.1:8b-instruct-q3_K_S | 3.7GB | Q3_K_S | |
llama3.1:8b-instruct-q3_K_M | 4.0GB | Q3_K_M | |
llama3.1:8b-instruct-q3_K_L | 4.3GB | Q3_K_L | |
llama3.1:8b-instruct-q4_0 | 4.7GB | q4_0 | the older 4-bit format that llama3:8b also uses |
llama3.1:8b-instruct-q4_K_S | 4.7GB | Q4_K_S | |
llama3.1:8b-instruct-q4_1 | 5.1GB | q4_1 | |
llama3.1:8b-instruct-q5_0 | 5.6GB | q5_0 | |
llama3.1:8b-instruct-q5_K_S | 5.6GB | Q5_K_S | |
llama3.1:8b-instruct-q5_K_M | 5.7GB | Q5_K_M | |
llama3.1:8b-instruct-q5_1 | 6.1GB | q5_1 | |
llama3.1:8b-instruct-q6_K | 6.6GB | Q6_K | |
llama3.1:8b-instruct-q8_0 | 8.5GB | Q8_0 | |
llama3.1:8b-instruct-fp16 | 16GB | fp16 | unquantised |
Note the 4.7 GB vs 4.9 GB difference between llama3:8b and llama3.1:8b: both models have the same 8,030,261,248 parameters, but the Llama 3 default tag is the older q4_0 format while the Llama 3.1 default is Q4_K_M. The build names are explained in quantization explained.
What does the 128K context window actually cost?
About 17 GB of KV cache at the full 131,072 tokens, on top of the 4.9 GB of weights, so a 24 GB card is the floor for the whole window. This is the number missing from most Llama 3.1 8B write-ups. The weights are only half the memory bill; the cache grows linearly with how many tokens are in the window:
KV bytes/token = 2 (K and V) × layers × KV heads × head dim × bytes per value
= 2 × 32 × 8 × 128 × 2 (f16) = 131,072 bytes = 128 KB per token
Layer count, key-value head count and head dimension are from the published Llama 3.1 8B configuration (32 layers, 8 key-value heads under grouped-query attention, head dimension 128). This is arithmetic, not a measurement.
| Context in use | KV cache (f16) | Total with the 4.9 GB Q4_K_M file | Fits |
|---|---|---|---|
| 4,096 tokens (Ollama default) | 0.54 GB | ~6.5 GB | 8 GB |
| 8,192 tokens | 1.07 GB | ~7.0 GB | 8 GB |
| 32,768 tokens | 4.3 GB | ~10.2 GB | 12 GB |
| 65,536 tokens | 8.6 GB | ~14.5 GB | 16 GB |
| 131,072 tokens (full window) | 17.2 GB | ~23.1 GB | 24 GB |
So the honest version of “128K context on an 8 GB card” is: the model supports it, your GPU does not. Ollama’s documentation says it uses a 4,096-token window by default, so you also do not get the long window unless you ask for it: /set parameter num_ctx 32768 inside ollama run, OLLAMA_CONTEXT_LENGTH=32768 ollama serve, or num_ctx in an API request. Quantising the cache to 8-bit roughly halves the figures above, at some cost to long-context recall.
How fast will Llama 3.1 8B run on my hardware?
We have measured this model on our own Apple M3 Pro and on a rented NVIDIA L4 (the tables further down); for any other card or Mac, what you can do before buying anything is compute the ceiling. Token generation on a local LLM is bandwidth-bound: to emit one token the runtime streams every weight it is using out of memory, so:
ceiling (tokens/sec) = memory bandwidth (GB/s) ÷ model size in memory (GB)
at Q4_K_M: your card’s published bandwidth ÷ 4.92 GB
This is an upper bound, not a prediction. Real output lands well below it: the formula ignores attention over the KV cache, prompt processing, sampling, and the fact that no runtime reaches 100% of a vendor’s peak bandwidth figure. Take the bandwidth from the manufacturer’s specification sheet for your card or memory.
Two things follow. First, a bigger GPU only helps until the model already fits; two cards that both hold the 4.9 GB file differ in bandwidth, not capacity. Second, if the model does not fit and layers spill to system RAM, the much lower bandwidth of system memory becomes the effective ceiling for the spilled portion. Fitting the model is worth more than raw GPU speed, and the 8-bit Q8_0 build on a 12 GB card will be slower than Q4_K_M on the same card simply because there are more bytes to move.
Measured on an Apple M3 Pro (18 GB): 2 November 2026
llama3.1:8b generated 27.2 tokens per second on the one machine we own, an Apple M3 Pro (18 GB). The rest of the table is the same run, so you can see where it sits against the other small models.
| Model (Ollama tag) | Params | Quant | File | Measured tok/s | Run spread | Ceiling | Share | Date |
|---|---|---|---|---|---|---|---|---|
llama3.2:3b | 3.2B | Q4_K_M | 2.02 GB | 55.6 | 53.4–55.8 | 74 | 75% | 2026-11-02 |
qwen2.5-coder:3b-base | 3.1B | Q4_K_M | 1.93 GB | 55.0 | 53.8–56.6 | 78 | 71% | 2026-11-02 |
qwen3:4b | 4.0B | Q4_K_M | 2.50 GB | 44.7 | 44.1–44.8 | 60 | 75% | 2026-11-02 |
phi4-mini | 3.8B | Q4_K_M | 2.49 GB | 43.7 | 42.8–45.2 | 60 | 73% | 2026-11-02 |
mistral:7b | 7.2B | Q4_K_M | 4.37 GB | 29.0 | 29.0–29.0 | 34 | 84% | 2026-11-02 |
qwen2.5-coder:7b | 7.6B | Q4_K_M | 4.68 GB | 29.0 | 28.9–29.0 | 32 | 90% | 2026-11-02 |
llama3.1:8b | 8.0B | Q4_K_M | 4.92 GB | 27.2 | 26.9–27.4 | 30 | 89% | 2026-11-02 |
deepseek-r1:8b | 8.2B | Q4_K_M | 5.23 GB | 25.4 | 25.4–25.5 | 29 | 89% | 2026-11-02 |
qwen3:8b | 8.2B | Q4_K_M | 5.23 GB | 25.3 | 25.2–25.3 | 29 | 88% | 2026-11-02 |
gemma3:12b | 11.8B | Q4_K_M | 7.31 GB | 16.7 | 16.1–16.8 | 21 | 81% | 2026-11-02 |
deepseek-r1:14b | 14.8B | Q4_K_M | 8.99 GB | 14.7 | 14.6–14.8 | 17 | 88% | 2026-11-02 |
qwen2.5-coder:14b | 14.8B | Q4_K_M | 8.99 GB | 14.5 | 14.4–14.6 | 17 | 87% | 2026-11-02 |
qwen3:14b | 14.8B | Q4_K_M | 9.28 GB | 14.5 | 14.4–14.5 | 16 | 90% | 2026-11-02 |
Also measured: llama3.1:8b 49.2 tok/s on the NVIDIA L4 (24 GB) (rented cloud VM, Ollama 0.40.13, 2026-11-03).
Apple M3 Pro, 18 GB unified memory, Ollama 0.40.13, macOS 27.0.1 (Darwin 27.0.0, arm64), Metal. Median generation rate of 6 runs after a discarded warm-up, computed from Ollama's raw eval_count and eval_duration over its HTTP API (not scraped from the terminal); any run that produced fewer than 30 tokens is thrown out rather than averaged. The same prompt, 7 runs, for every model. Ceiling = 150 GB/s (Apple's figure for the M3 Pro) ÷ the file size Ollama downloaded. One machine is a data point, not a survey; download the script (MIT) if you want the same table for yours. Thinking models (qwen3, deepseek-r1) are timed over every token they emit, reasoning included. Every row is in the open benchmark dataset, with how each row is measured.
Read the measured row against the ceiling: 27.2 tok/s on a 150 GB/s machine with a 4.92 GB file is 89% of the bound, which is as close as a dense model gets. On the rented NVIDIA L4 (24 GB, 300 GB/s) the same tag measured 49.2 tok/s, 81% of its 61 tok/s bound (Ollama 0.40.13, 3 November 2026). Scale that share, not the raw number, to your own hardware’s bandwidth.
Benchmarks published by Meta: how good is Llama 3.1 8B?
Llama 3.1 8B Instruct scores 69.4 on MMLU (5-shot) on Meta’s model card, 73.0 with 0-shot chain-of-thought; the base model scores 66.7. These are Meta’s own results from its internal evaluation library. The card compares Llama 3.1 with Llama 3 and with the larger 3.1 models; it contains no figures for any other company’s models. The biggest moves over Llama 3 8B are in maths (MATH 29.1 → 51.9), code (HumanEval 60.4 → 72.6) and tool use (API-Bank 48.3 → 82.6); GPQA is the one row that went down.
| Benchmark | Llama 3.1 8B Instruct | Llama 3 8B Instruct |
|---|---|---|
| MMLU (5-shot) | 69.4 | 68.5 |
| MMLU (0-shot, CoT) | 73.0 | 65.3 |
| MMLU-Pro (5-shot, CoT) | 48.3 | 45.5 |
| IFEval | 80.4 | 76.8 |
| ARC-C (0-shot) | 83.4 | 82.4 |
| GPQA (0-shot) | 30.4 | 34.6 |
| HumanEval (0-shot, pass@1) | 72.6 | 60.4 |
| MBPP++ base (0-shot, pass@1) | 72.8 | 70.6 |
| GSM-8K (8-shot, CoT) | 84.5 | 80.6 |
| MATH (0-shot, CoT) | 51.9 | 29.1 |
| API-Bank (tool use) | 82.6 | 48.3 |
| BFCL (tool use) | 76.1 | 60.3 |
| Nexus (tool use) | 38.5 | 18.1 |
| Multilingual MGSM (0-shot, CoT) | 68.9 | — |
| Benchmark | Llama 3.1 8B | Llama 3 8B |
|---|---|---|
| MMLU (5-shot) | 66.7 | 66.7 |
| MMLU-Pro (5-shot, CoT) | 37.1 | 36.2 |
| AGIEval English (3-5 shot) | 47.8 | 47.1 |
| CommonSenseQA (7-shot) | 75.0 | 72.6 |
| BIG-Bench Hard (3-shot, CoT) | 64.2 | 61.1 |
| ARC-Challenge (25-shot) | 79.7 | 79.4 |
| TriviaQA-Wiki (5-shot) | 77.6 | 78.5 |
| SQuAD (1-shot) | 77.0 | 76.4 |
| DROP (3-shot, F1) | 59.5 | 58.4 |
| Language | MMLU |
|---|---|
| Portuguese | 62.12 |
| Spanish | 62.45 |
| French | 62.34 |
| Italian | 61.63 |
| German | 60.59 |
| Hindi | 50.88 |
| Thai | 50.32 |
Source: Meta’s Llama 3.1 model card. Other models’ scores on the same benchmarks are on the AI model leaderboard.
Specifications
- Model family
- llama-3-1
- Version
- 3.1
- Parameters
- 8,030,261,248 (Hugging Face API; the same count as Llama 3 8B)
- Context window
- 128K tokens (131,072)
- Modalities
- text in, text and code out
- Supported languages
- English, German, French, Italian, Portuguese, Hindi, Spanish, Thai
- Release date
- 23 July 2024
- Knowledge cutoff
- December 2023
- Training data
- ~15 trillion tokens of publicly available data; fine-tuning data includes over 25M synthetically generated examples
- Variants
- Base (pretrained) and Instruct
- License
- Llama 3.1 Community License
- Data verified
- 2026-10-15
Headline scores (instruct model)
Every figure is copied from Meta’s model card with the shot setting Meta used. Nothing here is this site’s own evaluation; the full tables are in the benchmarks section above.
- MMLU: 69.4 % — Meta model card, instruct, 5-shot macro average (73.0 with 0-shot CoT)
- MMLU-Pro (CoT): 48.3 % — Meta model card, instruct, 5-shot
- IFEval: 80.4 % — Meta model card, instruct
- GSM-8K: 84.5 % — Meta model card, instruct, 8-shot chain-of-thought
- MATH: 51.9 % — Meta model card, instruct, 0-shot CoT final exact match
- HumanEval: 72.6 % — Meta model card, instruct, 0-shot pass@1
- ARC-Challenge: 83.4 % — Meta model card, instruct, 0-shot accuracy
- GPQA: 30.4 % — Meta model card, instruct, 0-shot exact match
Architecture: what is inside Llama 3.1 8B
Llama 3.1 8B is a dense decoder-only transformer with grouped-query attention. The figures below are from the model’s config.json; they are identical to Llama 3 8B except for the maximum position count and the added RoPE scaling, which is how the same weights layout reaches 128K.
| Layers | 32 |
| Hidden size (model width) | 4,096 |
| Feed-forward intermediate size | 14,336 |
| Attention heads | 32 |
| Key-value heads (GQA) | 8 |
| Head dimension | 128 |
| Vocabulary | 128,256 tokens |
| Max positions | 131,072 |
| RoPE | theta 500,000; “llama3” scaling, factor 8 over an original 8,192 |
| Activation / norm | SiLU; RMSNorm, eps 1e-5 |
From config.json (ungated mirror of Meta’s repository). The full generation-by-generation table of Llama dimensions is on the Llama 3 8B page.
How is Llama 3.1 8B different from Llama 3 8B?
Comparing the two model cards, four things changed that matter for local use:
- Context 8K → 128K. The headline change, with the memory bill described above.
- Tool calling. The 3.1 card reports tool-use benchmarks for the instruct model; on API-Bank the 8B went from 48.3 to 82.6.
- Eight supported languages rather than English alone, with the multilingual MMLU scores above.
- Knowledge cutoff December 2023 instead of March 2023, with roughly the same 15T-token pretraining budget.
Same parameter count, same architecture, and the same memory footprint at a given quantisation, so upgrading from Llama 3 8B costs you nothing but the download. The one caveat: the default Ollama tags differ (4.7 GB q4_0 for Llama 3, 4.9 GB Q4_K_M for 3.1), which is a format change, not a size change.
How do I install Llama 3.1 8B?
The one-line path is Ollama, which pulls the 4.9 GB Q4_K_M build and starts a chat session. Every tag below is on ollama.com/library/llama3.1/tags.
# Default: Q4_K_M, 4.9 GB — for an 8 GB card
ollama run llama3.1:8b
# Smaller: Q3_K_M, 4.0 GB — for a 6 GB card or an 8 GB machine with no GPU
ollama pull llama3.1:8b-instruct-q3_K_M
# Larger: Q8_0, 8.5 GB — for a 12 GB card
ollama pull llama3.1:8b-instruct-q8_0
# Raise the context window inside a session (default is 4,096 tokens)
/set parameter num_ctx 32768Re-check the KV cache table before raising num_ctx. LM Studio and llama.cpp read the same GGUF files if you prefer a GUI or a raw binary; for a quantisation Ollama does not carry, download the file from the bartowski repository linked in the hardware section and load it in llama.cpp. The alternative is to take the weights straight from the vendor:
- Download the latest weights from Download Llama 3.1 8B. The Hugging Face repository is gated, so you accept Meta’s licence before downloading.
- Verify your hardware can accommodate the 8B parameter checkpoint at the context length you intend to use (the tables above).
- Follow the vendor documentation Hugging Face model card for runtime setup and inference examples. Tool calling from a local script is covered in the Ollama function-calling guide.
What is Llama 3.1 8B good and bad at?
Where an 8B model earns its place
- • Summarising and rewriting documents you already have: the task is bounded, and the model is not being asked to know anything.
- • Structured extraction: pulling JSON out of messy text, with the schema in the prompt.
- • Drafting and boilerplate code, checked by you before it runs. Meta’s HumanEval figure is 72.6.
- • Tool-calling agents where the model routes to a real API instead of answering from memory; the card’s tool-use rows are the largest gains over Llama 3.
- • Anything privacy-bound, where the constraint is “this text must not leave the machine” rather than raw capability.
Where it will disappoint you
- • Factual recall on niche topics. An 8B model has limited room for world knowledge, and the cutoff is December 2023; pair it with retrieval rather than trusting it.
- • Hard reasoning. Meta’s own GPQA figure (30.4, lower than Llama 3 8B’s 34.6) is the honest signal: it is a competent assistant, not a solver.
- • Very long contexts in practice. Whether attention quality holds at 128K is a different question from whether the window is advertised, and the memory bill above usually settles it first.
- • Tasks where a 70B model is the right answer. If quality matters more than latency and you have the VRAM, compare against Llama 3.1 70B or Llama 3.3 70B.
Licence
Llama 3.1 is released under the Llama 3.1 Community License (version release date July 23, 2024). Meta describes it as a custom commercial licence; it is not an open-source licence such as MIT or Apache 2.0. The terms that matter in practice:
- Commercial use is permitted, along with modification and redistribution.
- If you distribute the model, a derivative, or a product or service that contains it, you must include the licence and “prominently display ‘Built with Llama’” on a related website, interface, blog post, about page or documentation.
- A model you train or fine-tune from it and distribute must “include ‘Llama’ at the beginning of any such AI model name”.
- If, on the release date, your products or services had more than 700 million monthly active users in the preceding month, you must request a separate licence from Meta.
- Use is also subject to Meta’s Acceptable Use Policy, and the card lists use outside the eight supported languages as out of scope unless you fine-tune for it.
This is a summary, not legal advice; read the licence before building a product on it. Other model licences are compared in LLM licences for commercial use.
What has replaced Llama 3.1 8B
Nothing at the same size from Meta. Llama 3.1 8B is still the most recent 8B model in the Llama line, which is why it remains the default “small Llama” on Ollama:
- Llama 3.2 added 1B and 3B text models and 11B and 90B vision models (its two model cards list those four sizes), with no 8B. See Llama 3.2 1B and 3B and Llama 3.2 11B Vision.
- Llama 3.3 is a 70B-only release (its model card lists one size); there is no Llama 3.3 8B. See Llama 3.3 70B.
- Llama 4 Scout (April 2025) is Meta’s next generation: a 109B mixture-of-experts model with 17B active parameters that accepts images. Its Ollama tag is 67 GB, so it is not a replacement for anything that runs on an 8 GB card.
If you want the strongest model that fits 8 or 12 GB rather than this model specifically, the best Ollama models list is kept current.
Frequently asked questions
What are the Llama 3.1 8B system requirements?
An 8 GB GPU, or 16 GB of system RAM without one, for the default 4.9 GB build at an 8K context; a 12 GB card for Q8_0 or a 32K context; a 24 GB card for the full 128K window or the fp16 build. Disk space equals the download size of the tag you pull. Any OS that runs Ollama, LM Studio or llama.cpp.
How much VRAM does Llama 3.1 8B use at Q4_K_M?
About 7 GB with an 8K context: the 4.92 GB file, 1.07 GB of context cache and roughly 1 GB of buffers. At the Ollama default of 4,096 tokens it is about 6.5 GB. That is calculated from the file size and the model configuration, not measured.
How big is Llama 3.1 8B in GB?
4.9 GB for the default Ollama tag. Other builds range from 3.2 GB (Q2_K) to 16 GB (fp16); the original BF16 safetensors on Hugging Face are about 16 GB as well.
What is the official MMLU score?
69.4 for the instruct model (5-shot) and 66.7 for the base model, from Meta’s model card. With 0-shot chain-of-thought the instruct model scores 73.0.
Is the 128K context length official?
Yes. Meta’s model card lists a 128k context length for the 8B, 70B and 405B, the configuration file sets 131,072 maximum positions, and the Ollama tags are listed with a 128K context window. Ollama still opens a 4,096-token window unless you set num_ctx.
Should I run Llama 3.1 8B or Llama 3 8B?
Llama 3.1 8B. Same hardware, same download time within 0.2 GB, higher scores on every card row except GPQA, and a 128K window instead of 8K.
Is Llama 3.1 8B good for coding?
Meta reports HumanEval 72.6 and MBPP++ 72.8 for the instruct model. For a dedicated local coding model at this size see the best coding LLM for 8 GB of VRAM.
Research & Documentation
Meta
- Llama 3.1 model card (github.com) — specifications, languages, benchmark tables
- Llama 3.1 Community License (github.com)
- Meta’s Llama 3.1 announcement (ai.meta.com)
- The Llama 3 Herd of Models (arxiv.org, 2407.21783) — the paper covering Llama 3 and 3.1
Weights and sizes
- Meta-Llama-3.1-8B-Instruct (huggingface.co) — original weights, parameter count
- config.json (huggingface.co, ungated mirror) — layers, heads, head dimension
- Ollama llama3.1 tags (ollama.com) — every tag with its download size
- bartowski GGUF files (huggingface.co) — the file sizes in the hardware table
- Ollama FAQ (docs.ollama.com) — the 4,096-token default context
Sourcing note: every specification and benchmark figure on this page comes from Meta’s model card and licence, linked above. The memory tables are arithmetic derived from the published parameter count, the model configuration and the published file sizes; the formulas are shown so you can check them. This site does not publish its own hardware benchmarks for this model.
Related Models & Resources
Other Llama models
- Llama 3 8B - the April 2024 predecessor, with the full architecture table
- Llama 3.1 70B - same release, 43 GB on Ollama
- Llama 3.1 405B - the largest of the three, 243 GB on Ollama
Setup & Optimization Guides
- Quantization Explained - what Q4_K_M trades away for that 4.9 GB
- Hardware Requirements Guide - what to buy for local models
- Ollama system requirements - RAM and VRAM for every tier
Go from reading about AI to building with AI
25 structured courses. Hands-on projects. Runs on your machine. Start free.

Written by
Barsha Mohapatra
Founder and Editor, Local AI Master · Founder, Little AI Master
Founder of Little AI Master and the editor behind every course and guide on Local AI Master. Years of tutoring students taught her where AI education actually fails.
Learn AI in the Right Order
Structured courses with hands-on projects and local-first workflows that reduce API dependency where they fit.
Related Guides
Continue your local AI journey with these comprehensive guides
Llama 3.1 70B
The 70B from the same release: 43 GB on Ollama, 128K context, and what it needs to run.
Quantization Explained
What Q4_K_M actually does to the weights, and where quality starts to fall off.
Best Local AI Models for 8GB RAM
The wider model ladder when memory, not preference, is the constraint.
Continue Learning
Explore these essential AI topics to expand your knowledge:
Last verified on October 15, 2026 by Localaimaster Team
Sources (Click to expand)
- ai.meta.comMeta's Llama 3.1 announcementFetched October 15, 2026https://ai.meta.com/blog/meta-llama-3-1/
- docs.ollama.comOllama default context windowFetched October 15, 2026https://docs.ollama.com/faq
- github.comModel card: context, languages, release date, benchmarksFetched October 15, 2026https://github.com/meta-llama/llama-models/blob/main/models/llama3_1/MODEL_CARD.md
- github.comLlama 3.1 Community LicenseFetched October 15, 2026https://github.com/meta-llama/llama-models/blob/main/models/llama3_1/LICENSE
- huggingface.coParameter count (Hugging Face API)Fetched October 15, 2026https://huggingface.co/meta-llama/Meta-Llama-3.1-8B-Instruct
- huggingface.coconfig.json: layers, heads, head dimensionFetched October 15, 2026https://huggingface.co/unsloth/Meta-Llama-3.1-8B-Instruct/blob/main/config.json
- huggingface.coGGUF file sizesFetched October 15, 2026https://huggingface.co/bartowski/Meta-Llama-3.1-8B-Instruct-GGUF/tree/main
- ollama.comOllama tags and download sizesFetched October 15, 2026https://ollama.com/library/llama3.1/tags
All data aggregated from official model cards, papers, and vendor documentation. Errors may exist; please report corrections via admin@localaimaster.com.
- PILLARLocal AI Models Directory: Every Model Compared
- DeepSeek V4 Local Setup: 1M Context, MIT (2026)
- models/deepseek-coder-v2-236b
- Phi-3 Mini 3.8B: 69% MMLU on 8GB RAM (Microsoft SLM)
- models/gpt-oss
- models/gemma-2-9b
- MiniMax M3: Open-Weight 1M-Context Frontier Model (2026)
- GPT-5.6 Explained: Luna, Terra, Sol Pricing & Local Options
- ShieldGemma 2B: Local Safety Classifier for Content Moderation
- StarCoder 2 15B – Technical Analysis & Performance Guide
Grab the AI Starter Kit — career roadmap, cheat sheet, setup guide
No spam. Unsubscribe with one click.
Found your model? Now build something with it.
25 hands-on courses — RAG, agents, fine-tuning — all running locally. First chapter free, no card.