跳到正文
@atomic_chat_hq· @atomic_chat_hq · X·· 2026-06-04AI 评分59
AI 导读

作者在单张 RTX 4090 上本地对比 Google Gemma 4 12B 与 Gemma 4 26B-A4B,让两者各用一份不含库的单文件 HTML5 canvas 完成含真实物理的三幕动画,分别是 Galton 板、两方块撞墙和混沌三摆。

正文

New Google Gemma 4 12B claims near-26B performance - we tested both!

We ran both models locally on one RTX 4090 and gave each the same task: write a self-contained HTML5 canvas animation with real physics in one file without libraries. Three scenes - a Galton board, two blocks colliding off a wall, and a chaotic triple pendulum

Outputs:

Gemma 4 26B-A4B: 15 GB VRAM usage, 6.9k tokens, 138 tok/s

Gemma 4 12B: 9 GB VRAM usage, 8.9k tokens, 80 tok/s

Same Gemma 4 family, but the 26B-A4B won every scene and ran ~1.7x faster - on just 4B active params. The 12B stayed very close though, on almost half the VRAM - which makes it the ideal model for a 16 GB laptop

Video

来源:@atomic_chat_hq · x.com