Model comparison

GLM-5.2 vs Llama 3.1-8B

GLM-5.2 is the stronger model overall, scoring 50.9 to 22.8 on the Noometry Index. Llama 3.1-8B costs 37× less per token, which makes it the better buy when GLM-5.2's lead doesn't matter for your workload.

Last verified . 27 shared benchmarks.

GLM-5.2 Z.ai (Zhipu)

50.9

Rank #38 Confirmed

Llama 3.1-8B Meta

22.8

Rank #347 Confirmed

Summary

  • They share 27 benchmarks with published results for both. GLM-5.2 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 GLM-5.2 leads 57.1 to 8.0.
  • The biggest single-benchmark swing is OTIS Mock AIME 2024-2025: 86.4% for GLM-5.2 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 $1.40 / $4.40 for GLM-5.2.
  • GLM-5.2 accepts more context: 1M tokens versus 128K.

Side by side

GLM-5.2 and Llama 3.1-8B specifications
GLM-5.2Llama 3.1-8B
ProviderZ.ai (Zhipu)Meta
Noometry Index50.922.8
Released2026-06-132024-07-23
WeightsOpenOpen
Context window1M128K
Max output131K4K
Input $ / M tokens$1.40$0.05
Output $ / M tokens$4.40$0.08
Results tracked5043

Sponsored placements are available on pages like this one. Advertise on Noometry

Category by category

Coding GLM-5.2 leads

GLM-5.2: 50.9 (#37), Llama 3.1-8B: 19.9 (#335)

Coding benchmarks
BenchmarkGLM-5.2Llama 3.1-8B
SciCode50.5%13.2%
WeirdML70.1%1.7%
LMArena Coding14841195
SWE-bench Verified78.7%—
DeepSWE43.8%—
FrontierCode24.5%—
LMArena WebDev1604—
BigCodeBench Instruct—32.8%
BigCodeBench Complete—40.5%
ALE-Bench1,047—
HumanEval+—62.8%
MBPP+—55.6%

Agentic & Tool Use GLM-5.2 leads

GLM-5.2: 31.6 (#63), Llama 3.1-8B: 22.3 (#123)

Agentic & Tool Use benchmarks
BenchmarkGLM-5.2Llama 3.1-8B
Berkeley Function Calling Leaderboard—25.8%
τ²-bench Banking37.1%—
PostTrainBench31.7%—
BALROG—15.1%
GBAEval0%—
Vending-Bench 28,314—

Reasoning GLM-5.2 leads

GLM-5.2: 42.1 (#46), Llama 3.1-8B: 14.5 (#316)

Reasoning benchmarks
BenchmarkGLM-5.2Llama 3.1-8B
CritPt20.9%0%
Chess Puzzles21%0%
LMArena Hard Prompts14801175
DTBench93.6%50.9%
LMCA45.8%5.4%
Epoch Capabilities Index151.76116.48
ARC-AGI-222.8%—
SimpleBench58.8%—
Kagi LLM Benchmark62.6%—
NYT Connections (extended)74.3%—
ARC-AGI-177%—
EBR-Bench9.5%—
Mystery Game Puzzles19%—
Surface Evolver Bench55.6%—
PIQA—81.2%

Math GLM-5.2 leads

GLM-5.2: 55.4 (#35), Llama 3.1-8B: 9.5 (#311)

Math benchmarks
BenchmarkGLM-5.2Llama 3.1-8B
OTIS Mock AIME 2024-202586.4%1.7%
LMArena Math14821179
FrontierMath (Tiers 1-3)59.2%—
FrontierMath Tier 429.3%—
MathArena Final-Answer Competitions67.6%—
ProofBench35%—
Omni-MATH—13.7%
MATH Level 5—22.9%
GSM8K—82.4%

Knowledge GLM-5.2 leads

GLM-5.2: 57.1 (#36), Llama 3.1-8B: 8.0 (#302)

Knowledge benchmarks
BenchmarkGLM-5.2Llama 3.1-8B
GPQA Diamond91.9%27%
LMArena Expert14841144
SimpleQA Verified34.2%—
MMLU-Pro—40.6%
GPQA (HELM)—24.7%
BoolQ—82.8%
MMLU—56.1%

Multilingual GLM-5.2 leads

GLM-5.2: 56.0 (#25), Llama 3.1-8B: 34.2 (#244)

Multilingual benchmarks
BenchmarkGLM-5.2Llama 3.1-8B
LMArena Non-English14591148
LMArena Chinese15181151
LMArena French14761176
LMArena German14701144
LMArena Japanese14511061
LMArena Korean14451053
LMArena Russian14671158
LMArena Spanish14771169

Instruction Following GLM-5.2 leads

GLM-5.2: 77.1 (#32), Llama 3.1-8B: 59.1 (#253)

Instruction Following benchmarks
BenchmarkGLM-5.2Llama 3.1-8B
LMArena Instruction Following14651159
IFEval—74.3%

Long Context GLM-5.2 leads

GLM-5.2: 45.3 (#43), Llama 3.1-8B: 35.8 (#233)

Long Context benchmarks
BenchmarkGLM-5.2Llama 3.1-8B
LMArena Longer Query14791182

Writing & Preference GLM-5.2 leads

GLM-5.2: 70.7 (#20), Llama 3.1-8B: 29.9 (#285)

Writing & Preference benchmarks
BenchmarkGLM-5.2Llama 3.1-8B
LMArena Text14701187
LMArena Creative Writing14651154
EQ-Bench Creative Writing1757713
LMArena Multi-Turn14681172
WildBench—68.7%
EQ-Bench 41222—

Frequently asked questions

Is GLM-5.2 better than Llama 3.1-8B?

GLM-5.2 is the stronger model overall, scoring 50.9 to 22.8 on the Noometry Index. Llama 3.1-8B costs 37× less per token, which makes it the better buy when GLM-5.2's lead doesn't matter for your workload.

Which is cheaper, GLM-5.2 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; GLM-5.2 lists at $1.40 and $4.40.

Is GLM-5.2 or Llama 3.1-8B better for coding?

GLM-5.2 scores higher on coding benchmarks: 50.9 versus 19.9 in the Noometry coding category.

Which has the bigger context window?

GLM-5.2 does, with 1M tokens against 128K.

How many benchmarks do GLM-5.2 and Llama 3.1-8B share?

27 benchmarks have published results for both models. GLM-5.2 has 50 scored results on Noometry and Llama 3.1-8B has 43.

Related comparisons

Go deeper