whatmodel.sh / Llama 3.1 8B Instruct
Llama 3.1 8B Instruct
↗ share
+ contribute
Llama 3.1 8B Instruct is an open-weights language model from Meta, released July 2024. Its published size is 8.03B parameters and a 128k-token context window. Licence: llama3.1.
$ how it compares
The LLMs ranked either side of Llama 3.1 8B Instruct, out of 828 with a score, then more from Meta.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 534 | 45±2 | local | |||
| 535 | 45±1 | comparison only | |||
| 536 | 45±0 | api $0.22/M +local | |||
| 537 | 45±1 | local | |||
| 538 | 44±1 | local | |||
| more from Meta | |||||
| 24 | 77±1 | api $2.00/M | |||
| 40 | 75±1 | api $2.00/M | |||
| 43 | 75±1 | api $2.00/M | |||
$ what it's good at
agent tasks▁▁▃▆█▆▅▅▅▄▃▁ #260 of 300 · 1.5% of its score · 4 tests
Beats DeepSeek R1 0528 Qwen3 8B, Magistral Small 1.0 (2506), Llama 4 Scout (109B-A17B) here, though they rank higher overall. Trails Granite 4.0 H 1B, Granite 4.0 1B, Qwen2.5 3B Instruct here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| MASSIVE-Agents AST (10k, zero-shot) | 9.1% ✎ | █····███·███ beats 3/6 | 0.6% |
| BFCL V4 (December 2025 archive) | 25.8% ✎ | ▁▁▁▂██▅▅▆▂▂▂ beats 16/77 | 0.4% |
| Galileo Agent Leaderboard v1 (tool selection quality) | 67.8% ✎ | ▃▃▃▃▆▅▆▅█▂▅▂ beats 2/31 | 0.2% |
| BFCL v3 | 49.6% ✎ | ▁▁▁▁▁▃▅█▅▄▁▁ beats 33/114 | 0.2% |
coding▁▁▁▃▆██▇▆▄▃▁ #316 of 458 · 29% of its score · 13 tests
Beats GLM-4.7-Flash, Qwen3-VL 8B Instruct, Qwen3-VL 4B Instruct here, though they rank higher overall. Trails DeepSeek LLM 67B Chat, WizardLM 70B V1.0, Phi-4-mini 3.8B here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| HumanEval +1 | 69.5% ✎ | ▁·▁▁▃▄▆▅█▃▁▁ beats 57/99 | 11% |
| HumanEval+ | 62.8% ✎ | ▁·▁▁▁▃▄▄▄█▃▁ beats 57/99 | 7.5% |
| CRUXEval (ZeroEval, 800 problems) | 39.9% ✎ | ▁▂▆▃▆█▆▃▂·▁▁ beats 5/47 | 3.2% |
| Aider code editing (133 Exercism Python exercises, two attempts) | 37.6% ✎ | ▁·▁▂▄▁▆▄█▆▂▂ beats 5/62 | 2.0% |
| LiveCodeBench official (Jan 1–Nov 1, 2024) | 16.1% ✎ | ▁▁·▁▃▄▆█▅▂·▂ beats 3/31 | 1.7% |
| MBPP+ | 55.6% ✎ | ▁···▁▁▂▅▇█▆▂ beats 29/75 | 1.3% |
| MBPP | 52.2% ✎ | ▄···▄·▄▄█··█ beats 7/7 | 0.7% |
| WebApp1K-React pass@1 (onekq-ai) | 25.1% ✎ | ▃▁▁█▁▄▅▃▄▇▁▄ beats 4/31 | 0.4% |
5 more tests
| test | result | vs the others in its run | counts |
|---|---|---|---|
| Luau Leetcode fully solved (Torpedo Software) | 8.2% ✎ | ▃▁▁▁·▁▂▃▅▃█▇ beats 0/49 | 0.4% |
| CodeReviewQA: solution identification (hard), invariant accuracy | 54.3% ✎ | ▃··▁▂▂▃▂█▃▄▂ beats 29/47 | 0.3% |
| CodeReviewQA: change localisation (hard), invariant accuracy | 29.8% ✎ | █▂▁▁▂▂▂▃▅▅▅▇ beats 25/47 | 0.3% |
| CodeReviewQA: automated code refinement, exact match rate | 26.2% ✎ | ▁▁▁▁▁▁▂▂▃█▅▄ beats 17/47 | 0.2% |
| CodeReviewQA: change type recognition, invariant accuracy | 71.8% ✎ | ▁▁▁······▁▃█ beats 21/47 | 0.0% |
chat & writing▁▁▁▃▅▄▅█▆▆▇▃ #297 of 393 · 5.9% of its score · 6 tests
Beats Ministral 3 14B Reasoning 2512, Gemma 4 E4B, OpenThinker3 7B here, though they rank higher overall. Trails LFM2 350M, Flan-T5 XXL, LFM2 700M here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| Arena-Hard (v0.1, GPT-4-1106 judge) | 21.3% ✎ | ▂▁▁▅█▅▄▃▃▅▃▁ beats 16/60 | 2.6% |
| LMArena (text) | 1211.2 ✎ | ▁▁▁▂▃▃▃▆▆▇█▃ beats 73/379 | 1.1% |
| Arabic IFEval prompt-level (Inception) | 41.6% ✎ | ▁·▁▁▂▁▄▄▆▄█▄ beats 23/38 | 0.9% |
| AlpacaEval 2 length-controlled | 25.8% ✎ | ▃▃·▁▃█▇▅·▁·▁ beats 5/22 | 0.7% |
| IFEval (aggregation unspecified) | 50.4% ✎ | ▄····█·▄··██ beats 4/7 | 0.4% |
| IFEval prompt-level loose | 80.6% ✎ | ▁▃▁▃▁▄▁▃█▃▃▁ beats 11/22 | 0.3% |
math▁▂▃▅▆▅▄█▄▁▁▁ #319 of 398 · 12% of its score · 8 tests
Beats Athene-70B, Gemma 2 9B IT, GPT-3.5 Turbo (0125) here, though they rank higher overall. Trails Gemma 7B (base), DeepSeek R1 Distill Qwen 1.5B, Tulu 2 DPO 13B here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| GSM8K +2 | 83.4% ✎ | ▂▃··▃▂▅█▆▃▂▃ beats 10/22 | 3.5% |
| GSM8K (ZeroEval, zero-shot) | 84.0% ✎ | ▁▄·▁▄█▅▅▅███ beats 16/43 | 2.1% |
| MATH (subset unspecified) +1 | 42.5% ✎ | ▃▃█▂▂▆·····▁ beats 11/22 | 1.8% |
| MATH level 5 | 22.9% ✎ | ▂▂▅▆▄█▆▃▅▂▃▄ beats 20/92 | 1.4% |
| MGSM | 56.7% ✎ | ▅▃▃█·▅···▃·▃ beats 4/10 | 1.3% |
| MATH Level 5 (ZeroEval, 721 problems) | 22.2% ✎ | ▁▁▁▆█▂▇▇▄··▂ beats 11/38 | 1.1% |
| MATH | 47.6% ✎ | █▄██···▄▄▄·▄ beats 4/10 | 0.8% |
| OTIS mock AIME 2024–2025 | 1.7% ✎ | ▃▃▄▃▃▃▇▇█▃▂▅ beats 12/193 | 0.1% |
other tests38 not in a task · 51% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| BIG-Bench Hard +2 | 71.9% ✎ | ▁▄·▁▁·▅█·▄▄▁ beats 14/22 | 6.0% |
| MMLU-Redux (ZeroEval, 2,778 questions) | 67.2% ✎ | ▁·▁▁▄▄▄▅█▄▂▁ beats 11/53 | 5.7% |
| MMLU +2 | 71.3% ✎ | ▁▂·▁·▁▁█·▃▃▅ beats 12/22 | 4.4% |
| LiveBench 2024-07-26 | 28.0% ✎ | ▁▁▁▂▂▃▂█▆▃▅▃ beats 22/61 | 4.2% |
| MMLU-Pro +2 | 44.2% ✎ | ▃▂▅█▃·█▃▅··▂ beats 10/23 | 4.0% |
| ARC Challenge +1 | 83.1% ✎ | ▂▂▂█▂···▄··▂ beats 5/10 | 3.0% |
| GPQA (subset unspecified) +1 | 26.3% ✎ | █··▄▂··▂▂··▄ beats 4/10 | 2.3% |
| OpenBookQA +1 | 84.8% ✎ | ▂··▄█▂·▃···▄ beats 8/10 | 2.2% |
30 more tests
$ where to run it
Through an API
api · Amazon Bedrock · $0.22/M · $0.22 in / $0.22 out per 1M tokens · 128k context · docs.aws.amazon.com ↗ · price sourceStandard base token rate from models.dev. Provider-specific tiers, long-context surcharges, caching and promotions may differ.
llama.cpp · recommended
version
- Install llama.cpp · Homebrew and winget installs name the commands llama-cli and llama-server instead.macOS / Linux
curl -LsSf https://llama.app/install.sh | shWindowsirm https://llama.app/install.ps1 | iex - Run Llama 3.1 8B Instruct · needs ~4.9 GB · from huggingface.co/lmstudio-communitychat in the terminal
llama cli -hf lmstudio-community/Meta-Llama-3.1-8B-Instruct-GGUF:Q4_K_M - Or start a local server and open the address it prints (http://localhost:9931)
llama serve -hf lmstudio-community/Meta-Llama-3.1-8B-Instruct-GGUF:Q4_K_M
LM Studio
version
- Install LM Studio · Open the app once before using the lms command.
- Run Llama 3.1 8B Instruct · needs ~4.9 GB · from huggingface.co/lmstudio-community
- Or download it in the terminal
lms get https://huggingface.co/lmstudio-community/Meta-Llama-3.1-8B-Instruct-GGUF@Q4_K_M -y - Then run lms ls to see its name, and lms chat followed by that name
Ollama
version
- Install Ollama
download it (macOS / Windows) ↗
Linuxcurl -fsSL https://ollama.com/install.sh | sh - Run Llama 3.1 8B Instruct · needs ~5.32 GB · from ollama.comchat in the terminal
ollama run llama3.1:8b
MLX (Mac)
version
- Install MLX (Mac) · Apple silicon Macs only, text only.with uv
uv tool install mlx-lmorpip install mlx-lm - Run Llama 3.1 8B Instruct · needs ~4.5 GB, Mac only · from huggingface.co/mlx-communitychat in the terminal
mlx_lm.chat --model mlx-community/Llama-3.1-8B-Instruct-4bit - Or start an OpenAI-compatible server at http://localhost:8080/v1
mlx_lm.server --model mlx-community/Llama-3.1-8B-Instruct-4bit
Weights and documentation: huggingface.co/meta-llama ↗
$ how the score was worked out · EvalPlus / EvalPerf published… 19%, IBM Granite 3.0 Language Mode… 16%, microsoft/Phi-4-mini-instruct… 16% and 28 more
Each result implies a score on its own, after adjusting for how hard its test is and who ran it. The score is their weighted average, with a small pull toward the middle for thinly tested models. Each test's weight is its counts column above; here it's added up by who ran the tests. How it works
$ quantization evidence · 18 measurements
How much of the full-precision result a quantized version kept, measured within one study. Rows from the same study share a table and aren't independent.
| precision | test | full → quantized | kept | |
|---|---|---|---|---|
| AutoRound 2-bit (group size 32; 512 calibration samples, seqlen 4096, 512 iterations) | WMT24++ X->English COMET (wmt22-comet-da), unweighted mean over 6 language pairs (ja_JP, fr_FR, pl_PL, bn_IN, ml_IN, zu_ZA); greedy decoding | 0.737 → 0.466 | 63.2% | source ↗ |
| AutoRound 2-bit (group size 32; 512 calibration samples, seqlen 4096, 512 iterations) | WMT24++ English->X COMET (wmt22-comet-da), unweighted mean over 6 language pairs (ja_JP, fr_FR, pl_PL, bn_IN, ml_IN, zu_ZA); greedy decoding | 0.694 → 0.357 | 51.5% | source ↗ |
| AutoRound 4-bit (group size 128; 512 calibration samples, seqlen 4096, 512 iterations) | WMT24++ English->X COMET (wmt22-comet-da), unweighted mean over 6 language pairs (ja_JP, fr_FR, pl_PL, bn_IN, ml_IN, zu_ZA); greedy decoding | 0.694 → 0.68 | 98.1% | source ↗ |
| AutoRound 4-bit (group size 128; 512 calibration samples, seqlen 4096, 512 iterations) | WMT24++ X->English COMET (wmt22-comet-da), unweighted mean over 6 language pairs (ja_JP, fr_FR, pl_PL, bn_IN, ml_IN, zu_ZA); greedy decoding | 0.737 → 0.704 | 95.5% | source ↗ |
| AWQ 4-bit (AutoAWQ, zero point, group size 128) | WMT24++ English->X COMET (wmt22-comet-da), unweighted mean over 6 language pairs (ja_JP, fr_FR, pl_PL, bn_IN, ml_IN, zu_ZA); greedy decoding | 0.694 → 0.676 | 97.5% | source ↗ |
| AWQ 4-bit (AutoAWQ, zero point, group size 128) | WMT24++ X->English COMET (wmt22-comet-da), unweighted mean over 6 language pairs (ja_JP, fr_FR, pl_PL, bn_IN, ml_IN, zu_ZA); greedy decoding | 0.737 → 0.709 | 96.1% | source ↗ |
| bitsandbytes NF4 (Transformers integration, nested/double quantization) | WMT24++ English->X COMET (wmt22-comet-da), unweighted mean over 6 language pairs (ja_JP, fr_FR, pl_PL, bn_IN, ml_IN, zu_ZA); greedy decoding | 0.694 → 0.681 | 98.1% | source ↗ |
| bitsandbytes NF4 (Transformers integration, nested/double quantization) | WMT24++ X->English COMET (wmt22-comet-da), unweighted mean over 6 language pairs (ja_JP, fr_FR, pl_PL, bn_IN, ml_IN, zu_ZA); greedy decoding | 0.737 → 0.7 | 94.9% | source ↗ |
| GGUF Q2_K with imatrix (llama.cpp; imatrix from 20k WikiText samples) | WMT24++ X->English COMET (wmt22-comet-da), unweighted mean over 6 language pairs (ja_JP, fr_FR, pl_PL, bn_IN, ml_IN, zu_ZA); greedy decoding | 0.737 → 0.697 | 94.5% | source ↗ |
| GGUF Q2_K with imatrix (llama.cpp; imatrix from 20k WikiText samples) | WMT24++ English->X COMET (wmt22-comet-da), unweighted mean over 6 language pairs (ja_JP, fr_FR, pl_PL, bn_IN, ml_IN, zu_ZA); greedy decoding | 0.694 → 0.556 | 80.2% | source ↗ |
| GGUF Q4_K_M with imatrix (llama.cpp; imatrix from 20k WikiText samples) | WMT24++ English->X COMET (wmt22-comet-da), unweighted mean over 6 language pairs (ja_JP, fr_FR, pl_PL, bn_IN, ml_IN, zu_ZA); greedy decoding | 0.694 → 0.683 | 98.4% | source ↗ |
| GGUF Q4_K_M with imatrix (llama.cpp; imatrix from 20k WikiText samples) | WMT24++ X->English COMET (wmt22-comet-da), unweighted mean over 6 language pairs (ja_JP, fr_FR, pl_PL, bn_IN, ml_IN, zu_ZA); greedy decoding | 0.737 → 0.723 | 98.0% | source ↗ |
| MXFP4 via AutoRound 'OPT-RNT(-1,1) (Our's default)' (iters 0; scheme as defined by auto-round; activation handling not restated in this table) | Average of 11 lm-eval tasks (ARC-c, ARC-e, BoolQ, HellaSwag, LAMBADA, MMLU, OBQA, PIQA, TruthfulQA, WinoGrande, GSM8K strict) | 0.652 → 0.591 | 90.7% | source ↗ |
| MXFP4 via AutoRound 'OPT-RTN(-2,-1,1,2)' (iters 0; scheme as defined by auto-round; activation handling not restated in this table) | Average of 11 lm-eval tasks (ARC-c, ARC-e, BoolQ, HellaSwag, LAMBADA, MMLU, OBQA, PIQA, TruthfulQA, WinoGrande, GSM8K strict) | 0.652 → 0.585 | 89.7% | source ↗ |
| MXFP4 via AutoRound 'orig-RTN' (iters 0; scheme as defined by auto-round; activation handling not restated in this table) | Average of 11 lm-eval tasks (ARC-c, ARC-e, BoolQ, HellaSwag, LAMBADA, MMLU, OBQA, PIQA, TruthfulQA, WinoGrande, GSM8K strict) | 0.652 → 0.572 | 87.8% | source ↗ |
| NVFP4 via AutoRound 'opt-rtn' (iters 0; scheme as defined by auto-round; activation handling not restated in this table) | Average of 11 lm-eval tasks (ARC-c, ARC-e, BoolQ, HellaSwag, LAMBADA, MMLU, OBQA, PIQA, TruthfulQA, WinoGrande, GSM8K strict) | 0.652 → 0.639 | 98.1% | source ↗ |
| NVFP4 via AutoRound 'RTN' (iters 0; scheme as defined by auto-round; activation handling not restated in this table) | Average of 11 lm-eval tasks (ARC-c, ARC-e, BoolQ, HellaSwag, LAMBADA, MMLU, OBQA, PIQA, TruthfulQA, WinoGrande, GSM8K strict) | 0.652 → 0.626 | 96.1% | source ↗ |
| ONNX INT4 AWQ (NVIDIA ModelOpt-Windows v0.19.0, quantizing the FP16 ONNX model) | MMLU 5-shot (ModelOpt-Windows accuracy_benchmark; onnxruntime-genai-directml 0.4, transformers 4.44) | 0.684 → 0.661 | 96.6% | source ↗ |
$ improve this page
Use a short GitHub form or edit the data through a pull request. Every number needs a source; here's which ones we can use.
data updated · sources and licences · json