Reproduce “FastTPS: An Optimized Method for LLM Token Phase for AI accelerators” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Wenzong Yang, Danyang Zhang, Kun Cao, Tejus Siddagangaiah, Rajeev Patwari, Zhanxing Pu, Siyin Kong, Zijiang Yang and 12 more
An optimized method, FastTPS, enhances Large Language Model inference speed during the token generation phase on AI accelerators, delivering up to a 6x speedup and 86% average resource utilization with minimal accuracy loss. This approach addresses low parallelism and memory bottlenecks through global KV cache management, fused attention tiling, and multi-op fusion within the MLP block.
Key insights
- Directly managing the KV cache on-accelerator without `Concat` operations significantly reduces bandwidth pressure and CPU overhead.
- Fusing multiple operations in attention and MLP blocks, alongside hierarchical tiling, substantially increases operational intensity and on-chip data reuse, maximizing hardware utilization.
- High numerical precision can be maintained during LLM token phase acceleration through careful dataflow optimization, avoiding compromises common in other speedup techniques.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.