TensorSharp 解码吞吐达 llama.cpp 两倍,GLM-5.3-Flash 实测
fuzhongkai · reddit · 2026-08-29
作者在 GLM-5.3-Flash(unsloth GGUF UD-Q2KXL,101GiB,双 GPU)上对比 TensorSharp 与 llama.cpp(PR #27754,CUDA 12.8):
- Prefill 两者几乎持平:pp2048 约 2070 t/s vs 2014 t/s,pp32768 为 1483 vs 1446。
- Decode 快一倍:tg64 达 73.5 t/s vs 36.6 t/s(2.01×);长上下文下依然坚挺,17.7K prompt 后 40.9 t/s,36K 后 28.2 t/s。
- 权重 17 秒从热缓存加载,CPU-MoE 卸载(前 10 层专家驻留内存)可解码 35–40 t/s。
解码翻倍的原因:TensorSharp 用形状为键的 LRU graph cache 复用已 CUDA 捕获的计算图,避免逐 token 重建;GLM 的 34 层 KDA 加超连接使逐 token 图又深又碎,恰好是重建开销最痛的场景。Prefill 是 GEMM bound,无此优化空间,因此两边接近。
「Infra」频道最新
- 用户晒 Google Colab 免费提供 G4 Blackwell GPU — MickeySteamboat · 2026-11-30
- 19家GitHub Actions runner横评:速度与成本每周更新 — DanielLockyer · 2026-11-30
- 《Learn Inference》上线:交互式学大模型推理工程 — attentionmech · 2026-11-30
- open-daytona:在 Slurm 集群免 root 跑 1536 个并发 Agent RL 沙箱 — victor_explore · 2026-11-30
- Hellerstein 回顾 Postgres:从 Stonebraker 设计理念到开源社区的意外成功 — sh_reya · 2026-11-30
- NRDC 承认 BAAJA 并非「数据中心大礼包」,要求数据中心为电网成本买单 — zacharynado · 2026-11-30