Qwen vs. Gemma: Tokenizer Efficiency Explains Coding Performance Gap
WhoRoger · reddit · 2026-08-09
A developer found a massive discrepancy when feeding the same 330 lines of HTML/JS code to Qwen 35B and Gemma 26B: Qwen tokenized the input to 1,609 tokens, while Gemma produced 4,258 tokens.
This significant difference in tokenization efficiency helps explain why Qwen is regarded as better at coding, while Gemma leans towards language tasks. Qwen can process code more efficiently as a specific structure, whereas Gemma breaks it down into smaller pieces like regular language. The author wonders if retraining Gemma with a more efficient tokenizer could help bridge this gap.
More from Models
- Using Perplexity's Decider Model as a Reranker: Binary and Scale-Based Reranking — bo_wangbo · 2026-11-30
- DSArena: 779 humans vote on LLM data science agents, Claude Opus 5 tops the leaderboard — PolyUHK · 2026-11-30
- Claude Sonnet-Next reportedly built a Blender scene in 15 minutes, spooking AI watchers — teortaxesTex · 2026-11-30
- Bel-0 Claims First Fully Homomorphic Encryption for an LLM—Slow but Private — Wired AI · 2026-11-30
- Which free local AI model to download for your GPU, from 6GB to 24GB VRAM — alex_verem · 2026-11-30
- NeurIPS paper: buggy baselines hid that SFT-then-RL beats mixed-policy RL by up to +22.2 points — valentina__py · 2026-11-30