Model comparison

GLM-4.7 vs Llama 3.1-8B

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

Last verified . 24 shared benchmarks.

GLM-4.7 Z.ai (Zhipu)

42.0

Rank #124 Confirmed

Llama 3.1-8B Meta

23.0

Rank #352 Confirmed

Summary

  • They share 24 benchmarks with published results for both. GLM-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 GLM-4.7 leads 47.0 to 8.0.
  • The biggest single-benchmark swing is OTIS Mock AIME 2024-2025: 83.3% for GLM-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 $0.60 / $2.20 for GLM-4.7.
  • GLM-4.7 accepts more context: 205K tokens versus 128K.

Side by side

GLM-4.7 and Llama 3.1-8B specifications
GLM-4.7Llama 3.1-8B
ProviderZ.ai (Zhipu)Meta
Noometry Index42.023.0
Released2025-12-222024-07-23
WeightsOpenOpen
Context window205K128K
Max output131K4K
Input $ / M tokens$0.60$0.05
Output $ / M tokens$2.20$0.08
Results tracked3643

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

Category by category

Coding GLM-4.7 leads

GLM-4.7: 44.0 (#79), Llama 3.1-8B: 20.2 (#340)

Coding benchmarks
BenchmarkGLM-4.7Llama 3.1-8B
SciCode45.1%13.2%
LMArena Coding14541195
LMArena WebDev1435—
WeirdML—1.7%
BigCodeBench Instruct—32.8%
BigCodeBench Complete—40.5%
ALE-Bench399.48—
HumanEval+—62.8%
MBPP+—55.6%

Agentic & Tool Use GLM-4.7 leads

GLM-4.7: 26.5 (#103), Llama 3.1-8B: 22.5 (#131)

Agentic & Tool Use benchmarks
BenchmarkGLM-4.7Llama 3.1-8B
Terminal-Bench33.4%—
Berkeley Function Calling Leaderboard—25.8%
BALROG—15.1%
Vending-Bench 22,377—

Reasoning GLM-4.7 leads

GLM-4.7: 24.3 (#164), Llama 3.1-8B: 14.9 (#321)

Reasoning benchmarks
BenchmarkGLM-4.7Llama 3.1-8B
CritPt1.7%0%
Chess Puzzles6%0%
LMArena Hard Prompts14431175
Epoch Capabilities Index143.51116.57
SimpleBench47.7%—
DTBench—50.9%
LMCA—5.4%
PIQA—81.2%

Math GLM-4.7 leads

GLM-4.7: 38.6 (#135), Llama 3.1-8B: 10.2 (#317)

Math benchmarks
BenchmarkGLM-4.7Llama 3.1-8B
OTIS Mock AIME 2024-202583.3%1.7%
LMArena Math14231179
ProofBench6%—
Omni-MATH—13.7%
MATH Level 5—22.9%
FrontierMath (Feb 2025 set)2.4%—
FrontierMath Tier 4 (v1)0%—
GSM8K—82.4%

Knowledge GLM-4.7 leads

GLM-4.7: 47.0 (#80), Llama 3.1-8B: 8.0 (#307)

Knowledge benchmarks
BenchmarkGLM-4.7Llama 3.1-8B
GPQA Diamond83.3%27%
LMArena Expert14241144
SimpleQA Verified32.2%—
MMLU-Pro—40.6%
Vectara Hallucination Rate11.7%—
GPQA (HELM)—24.7%
BoolQ—82.8%
MMLU—56.1%

Multilingual GLM-4.7 leads

GLM-4.7: 52.8 (#79), Llama 3.1-8B: 34.0 (#249)

Multilingual benchmarks
BenchmarkGLM-4.7Llama 3.1-8B
LMArena Non-English14171148
LMArena Chinese14951151
LMArena French14321177
LMArena German14241144
LMArena Japanese14391061
LMArena Korean13991053
LMArena Russian14231158
LMArena Spanish14341169

Instruction Following GLM-4.7 leads

GLM-4.7: 74.4 (#95), Llama 3.1-8B: 58.9 (#258)

Instruction Following benchmarks
BenchmarkGLM-4.7Llama 3.1-8B
LMArena Instruction Following14111159
IFEval—74.3%

Long Context GLM-4.7 leads

GLM-4.7: 42.8 (#116), Llama 3.1-8B: 35.8 (#238)

Long Context benchmarks
BenchmarkGLM-4.7Llama 3.1-8B
LMArena Longer Query14321182
CL-bench15.9%—
CL-bench Life10.9%—

Writing & Preference GLM-4.7 leads

GLM-4.7: 60.9 (#93), Llama 3.1-8B: 29.7 (#290)

Writing & Preference benchmarks
BenchmarkGLM-4.7Llama 3.1-8B
LMArena Text14351187
LMArena Creative Writing14011154
EQ-Bench Creative Writing1413713
LMArena Multi-Turn14461172
WildBench—68.7%

Frequently asked questions

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

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

Which is cheaper, GLM-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; GLM-4.7 lists at $0.60 and $2.20.

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

GLM-4.7 scores higher on coding benchmarks: 44.0 versus 20.2 in the Noometry coding category.

Which has the bigger context window?

GLM-4.7 does, with 205K tokens against 128K.

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

24 benchmarks have published results for both models. GLM-4.7 has 36 scored results on Noometry and Llama 3.1-8B has 43.

Related comparisons

Go deeper