Model comparison
Grok 4.7 vs Llama 3.1-8B
Grok 4.7 is the stronger model overall, scoring 53.1 to 23.0 on the Noometry Index. Llama 3.1-8B costs 52× less per token, which makes it the better buy when Grok 4.7's lead doesn't matter for your workload.
Last verified . 23 shared benchmarks.
Summary
- They share 23 benchmarks with published results for both. Grok 4.7 scores higher in 9 categories and Llama 3.1-8B in 0 categories; 9 gaps are clear of the uncertainty.
- The widest gap is in knowledge, where Grok 4.7 leads 62.8 to 8.0.
- The biggest single-benchmark swing is OTIS Mock AIME 2024-2025: 98.1% for Grok 4.7 and 1.7% for Llama 3.1-8B.
- Llama 3.1-8B is cheaper at $0.05 / $0.08 per million input/output tokens, against $2 / $6 for Grok 4.7.
- Grok 4.7 accepts more context: 500K tokens versus 128K.
- Llama 3.1-8B has downloadable open weights; the other is API-only.
Side by side
| Grok 4.7 | Llama 3.1-8B | |
|---|---|---|
| Provider | xAI | Meta |
| Noometry Index | 53.1 | 23.0 |
| Released | 2026-09-21 | 2024-07-23 |
| Weights | Proprietary | Open |
| Context window | 500K | 128K |
| Max output | 500K | 4K |
| Input $ / M tokens | $2 | $0.05 |
| Output $ / M tokens | $6 | $0.08 |
| Results tracked | 39 | 43 |
Sponsored placements are available on pages like this one. Advertise on Noometry
Category by category
Coding Grok 4.7 leads
Grok 4.7: 58.0 (#18), Llama 3.1-8B: 20.2 (#340)
| Benchmark | Grok 4.7 | Llama 3.1-8B |
|---|---|---|
| SciCode | 57.8% | 13.2% |
| LMArena Coding | 1427 | 1195 |
| FrontierCode | 47.6% | — |
| CursorBench | 46.3% | — |
| LMArena WebDev | 1639 | — |
| FrontierSWE | 29.5% | — |
| WeirdML | — | 1.7% |
| BigCodeBench Instruct | — | 32.8% |
| BigCodeBench Complete | — | 40.5% |
| HumanEval+ | — | 62.8% |
| MBPP+ | — | 55.6% |
Agentic & Tool Use Grok 4.7 leads
Grok 4.7: 36.7 (#37), Llama 3.1-8B: 22.5 (#131)
| Benchmark | Grok 4.7 | Llama 3.1-8B |
|---|---|---|
| APEX-Agents | 54.6% | — |
| Berkeley Function Calling Leaderboard | — | 25.8% |
| BALROG | — | 15.1% |
| GDP.pdf | 22.8% | — |
| Vending-Bench 2 | 10,537 | — |
Reasoning Grok 4.7 leads
Grok 4.7: 49.1 (#40), Llama 3.1-8B: 14.9 (#321)
| Benchmark | Grok 4.7 | Llama 3.1-8B |
|---|---|---|
| CritPt | 18% | 0% |
| Chess Puzzles | 38% | 0% |
| LMArena Hard Prompts | 1413 | 1175 |
| DTBench | 96% | 50.9% |
| LMCA | 49.4% | 5.4% |
| Epoch Capabilities Index | 153.53 | 116.57 |
| NYT Connections (extended) | 76.8% | — |
| Mystery Game Puzzles | 29% | — |
| PIQA | — | 81.2% |
Math Grok 4.7 leads
Grok 4.7: 57.8 (#39), Llama 3.1-8B: 10.2 (#317)
| Benchmark | Grok 4.7 | Llama 3.1-8B |
|---|---|---|
| OTIS Mock AIME 2024-2025 | 98.1% | 1.7% |
| LMArena Math | 1407 | 1179 |
| FrontierMath (Tiers 1-3) | 53% | — |
| FrontierMath Tier 4 | 17.1% | — |
| ProofBench | 34% | — |
| Omni-MATH | — | 13.7% |
| MATH Level 5 | — | 22.9% |
| GSM8K | — | 82.4% |
Knowledge Grok 4.7 leads
Grok 4.7: 62.8 (#22), Llama 3.1-8B: 8.0 (#307)
| Benchmark | Grok 4.7 | Llama 3.1-8B |
|---|---|---|
| GPQA Diamond | 92.7% | 27% |
| LMArena Expert | 1422 | 1144 |
| SimpleQA Verified | 56% | — |
| MMLU-Pro | — | 40.6% |
| GPQA (HELM) | — | 24.7% |
| BoolQ | — | 82.8% |
| MMLU | — | 56.1% |
Multimodal Not comparable
Grok 4.7: 35.5 (#87), Llama 3.1-8B: —
| Benchmark | Grok 4.7 | Llama 3.1-8B |
|---|---|---|
| LMArena Vision | 1228 | — |
| Blueprint-Bench 2 | 32.5% | — |
| Furniture Assembly | 20.8% | — |
Multilingual Grok 4.7 leads
Grok 4.7: 50.8 (#116), Llama 3.1-8B: 34.0 (#249)
| Benchmark | Grok 4.7 | Llama 3.1-8B |
|---|---|---|
| LMArena Non-English | 1389 | 1148 |
| LMArena Chinese | 1455 | 1151 |
| LMArena French | 1455 | 1177 |
| LMArena Russian | 1397 | 1158 |
| LMArena Spanish | 1400 | 1169 |
| LMArena German | — | 1144 |
| LMArena Japanese | — | 1061 |
| LMArena Korean | — | 1053 |
Instruction Following Grok 4.7 leads
Grok 4.7: 74.1 (#105), Llama 3.1-8B: 58.9 (#258)
| Benchmark | Grok 4.7 | Llama 3.1-8B |
|---|---|---|
| LMArena Instruction Following | 1404 | 1159 |
| IFEval | — | 74.3% |
Long Context Grok 4.7 leads
Grok 4.7: 43.1 (#104), Llama 3.1-8B: 35.8 (#238)
| Benchmark | Grok 4.7 | Llama 3.1-8B |
|---|---|---|
| LMArena Longer Query | 1413 | 1182 |
Writing & Preference Grok 4.7 leads
Grok 4.7: 70.0 (#24), Llama 3.1-8B: 29.7 (#290)
| Benchmark | Grok 4.7 | Llama 3.1-8B |
|---|---|---|
| LMArena Text | 1399 | 1187 |
| LMArena Creative Writing | 1391 | 1154 |
| EQ-Bench Creative Writing | 2007 | 713 |
| LMArena Multi-Turn | 1393 | 1172 |
| WildBench | — | 68.7% |
Frequently asked questions
Is Grok 4.7 better than Llama 3.1-8B?
Grok 4.7 is the stronger model overall, scoring 53.1 to 23.0 on the Noometry Index. Llama 3.1-8B costs 52× less per token, which makes it the better buy when Grok 4.7's lead doesn't matter for your workload.
Which is cheaper, Grok 4.7 or Llama 3.1-8B?
Llama 3.1-8B is cheaper. It lists at $0.05 per million input tokens and $0.08 per million output tokens; Grok 4.7 lists at $2 and $6.
Is Grok 4.7 or Llama 3.1-8B better for coding?
Grok 4.7 scores higher on coding benchmarks: 58.0 versus 20.2 in the Noometry coding category.
Which has the bigger context window?
Grok 4.7 does, with 500K tokens against 128K.
How many benchmarks do Grok 4.7 and Llama 3.1-8B share?
23 benchmarks have published results for both models. Grok 4.7 has 39 scored results on Noometry and Llama 3.1-8B has 43.