Reproduce “Layer-first Prefix KV Cache Loading for Low-latency Inference on Huawei CloudMatrix” 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

Ruozhuo Gan, Yuedong Xu

The system reduces warm-start time to first token for requests with a cached prefix in host memory by loading key–value data one transformer layer at a time, allowing computation to begin before later layers arrive. It uses Ascend NPU AIV load/store and batches small transfers. On one eight-NPU Qwen3-32B setup, P50 latency fell 12.90% versus layer-wise SDMA at 6,912 tokens.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.