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.

Grok 4.7 xAI

53.1

Rank #37 Confirmed

Llama 3.1-8B Meta

23.0

Rank #352 Confirmed

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 and Llama 3.1-8B specifications
Grok 4.7Llama 3.1-8B
ProviderxAIMeta
Noometry Index53.123.0
Released2026-09-212024-07-23
WeightsProprietaryOpen
Context window500K128K
Max output500K4K
Input $ / M tokens$2$0.05
Output $ / M tokens$6$0.08
Results tracked3943

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)

Coding benchmarks
BenchmarkGrok 4.7Llama 3.1-8B
SciCode57.8%13.2%
LMArena Coding14271195
FrontierCode47.6%—
CursorBench46.3%—
LMArena WebDev1639—
FrontierSWE29.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)

Agentic & Tool Use benchmarks
BenchmarkGrok 4.7Llama 3.1-8B
APEX-Agents54.6%—
Berkeley Function Calling Leaderboard—25.8%
BALROG—15.1%
GDP.pdf22.8%—
Vending-Bench 210,537—

Reasoning Grok 4.7 leads

Grok 4.7: 49.1 (#40), Llama 3.1-8B: 14.9 (#321)

Reasoning benchmarks
BenchmarkGrok 4.7Llama 3.1-8B
CritPt18%0%
Chess Puzzles38%0%
LMArena Hard Prompts14131175
DTBench96%50.9%
LMCA49.4%5.4%
Epoch Capabilities Index153.53116.57
NYT Connections (extended)76.8%—
Mystery Game Puzzles29%—
PIQA—81.2%

Math Grok 4.7 leads

Grok 4.7: 57.8 (#39), Llama 3.1-8B: 10.2 (#317)

Math benchmarks
BenchmarkGrok 4.7Llama 3.1-8B
OTIS Mock AIME 2024-202598.1%1.7%
LMArena Math14071179
FrontierMath (Tiers 1-3)53%—
FrontierMath Tier 417.1%—
ProofBench34%—
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)

Knowledge benchmarks
BenchmarkGrok 4.7Llama 3.1-8B
GPQA Diamond92.7%27%
LMArena Expert14221144
SimpleQA Verified56%—
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: —

Multimodal benchmarks
BenchmarkGrok 4.7Llama 3.1-8B
LMArena Vision1228—
Blueprint-Bench 232.5%—
Furniture Assembly20.8%—

Multilingual Grok 4.7 leads

Grok 4.7: 50.8 (#116), Llama 3.1-8B: 34.0 (#249)

Multilingual benchmarks
BenchmarkGrok 4.7Llama 3.1-8B
LMArena Non-English13891148
LMArena Chinese14551151
LMArena French14551177
LMArena Russian13971158
LMArena Spanish14001169
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)

Instruction Following benchmarks
BenchmarkGrok 4.7Llama 3.1-8B
LMArena Instruction Following14041159
IFEval—74.3%

Long Context Grok 4.7 leads

Grok 4.7: 43.1 (#104), Llama 3.1-8B: 35.8 (#238)

Long Context benchmarks
BenchmarkGrok 4.7Llama 3.1-8B
LMArena Longer Query14131182

Writing & Preference Grok 4.7 leads

Grok 4.7: 70.0 (#24), Llama 3.1-8B: 29.7 (#290)

Writing & Preference benchmarks
BenchmarkGrok 4.7Llama 3.1-8B
LMArena Text13991187
LMArena Creative Writing13911154
EQ-Bench Creative Writing2007713
LMArena Multi-Turn13931172
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.

Related comparisons

Go deeper