Reproduce “ScaleLLM: A Resource-Frugal LLM Serving Framework by Optimizing End-to-End Efficiency” 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

Yuhang Yao, Han Jin, Alay Dilipbhai Shah, Shanshan Han, Zijian Hu, Yide Ran, Dimitris Stripelis, Zhaozhuo Xu and 2 more

ScaleLLM, developed by TensorOpera Inc., is a resource-frugal framework for serving Large Language Models that optimizes end-to-end efficiency by concurrently improving both the LLM inference engine and the replica router. It achieves significantly higher throughput and lower latency at high concurrency by leveraging a Rust-based gateway and gRPC protocol.

Key insights

  • At low concurrency, the LLM inference engine is the primary bottleneck, but at high concurrency, the gateway/router becomes the predominant bottleneck for overall end-to-end latency.
  • Migrating the gateway from a Python-based framework to a Rust-based one and switching from HTTP/1.1 to gRPC protocol is crucial for overcoming performance limitations at high concurrency.
  • For Mixture-of-Experts (MoE) models like Mixtral 8x7B, a hybrid parallelism configuration (e.g., MOE Expert Parallelism 2 with Tensor Parallelism 4) consistently outperforms other methods across the concurrency spectrum.

Summary by alphaXiv.

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