ZICQ
中 Log in / Sign up
Newsroom LLMs & Foundation Models #Hugging Face #GLM-5.3 #Remote KV Cache #Long-Context LLM #MLA Architecture

Hugging Face Optimizes GLM-5.3 Remote KV Cache for Enhanced Long-Context LLM Inference

Avatar of Mr.Xu

By Mr.Xu Compiled & Reviewed by Editorial

Published:

中文阅读 (Chinese) English Version

Summary:Hugging Face has introduced an optimized remote KV cache mechanism for the GLM-5.3 model to enhance long-context LLM inference. By sharding the MLA KV store, implementing asynchronous loading, and fixing client bugs, the team reduced the p99 latency for high-cache-hit-rate requests from 83.32 seconds to 0.67 seconds while increasing prefill throughput by 14%. The solution also leverages a theoretical model to optimize remote cache bandwidth utilization, providing a more efficient deployment stra


Background and Challenges

In the inference process of long-context Large Language Models (LLMs), reusing the attention KV cache is a standard method to reduce prefill costs. However, as model sizes and request volumes grow, the performance bottlenecks of remote KV caches become more pronounced. Hugging Face's research team addressed this issue by optimizing the remote KV cache for the GLM-5.3 model, an FP8-based mixture-of-experts model with multi-head latent attention (MLA).

Key Optimizations

  1. MLA KV Store Sharding: The team sharded the MLA KV store across PCP (Prefill Context Parallelism) ranks and proved that the existing minimum-over-ranks lookup method returns the longest cached prefix. They also designed a load protocol that prevents desynchronization of collective operations.

  2. Remote Tier Partitioning: By partitioning the remote tier by rank, with one server instance per rank and no coordination, the GET bandwidth was increased by 6.3x, reaching 10.76 GB/s.

  3. Asynchronous Loading: Asynchronous loading was introduced into the sharded store to further improve the efficiency of high-cache-hit-rate requests.

  4. Client Bug Fixes: Three client bugs causing unbounded stalls were fixed to ensure system stability.

Experimental Results

For request streams with high cache hit rates, the 99th percentile latency was reduced from 83.32 seconds to 0.67 seconds, and the prefill throughput was increased by 14%. Combined with an upstream kernel fix, the overall throughput was boosted by 34%. These improvements demonstrate that optimizing the remote KV cache mechanism can significantly enhance the inference performance of long-context LLMs.

Engineering Trade-offs and Future Directions

  • Bandwidth vs. Latency: While asynchronous loading and sharding improve bandwidth utilization, they increase system complexity, requiring a trade-off between latency and throughput.
  • Impact of Cache Hit Rate: For short prompts, the advantages of remote caching are less pronounced. Future work could further optimize caching strategies to accommodate different prompt lengths.
  • Challenges in Multi-node Deployment: In multi-node deployment scenarios, balancing load and ensuring data consistency remain challenges that need further research.

Conclusion

Hugging Face's research provides new insights into optimizing remote KV caches for long-context LLMs. Through theoretically guided engineering optimizations, the team significantly improved the overall system performance, laying the foundation for the deployment and application of large-scale LLMs.


Source: Hugging Face Daily Papers (2026-10-15)

— END —

Tags: #Hugging Face #GLM-5.3 #Remote KV Cache #Long-Context LLM #MLA Architecture

Editorial & Fact-Checking Note: This article is compiled from primary research, official release documentation, and source papers by the ZICQ Newsroom pipeline with automated entity verification and human editorial review. If you notice any technical inaccuracy, please submit a correction via our corrections policy or email our editorial desk directly.

Community Comments

Loading live comments and annotations…