arXiv Science⌕ Search

arXiv · 2611.00967

RTP-LLM: Building an Evolvable and Reliable LLM Inference Engine at Alibaba Scale

Abstract

Large language models and inference techniques evolve rapidly, making model enablement a recurring production task rather than a one-time integration effort. At Alibaba, a shared inference infrastructure must keep pace with new models and serving capabilities while remaining reliable across heterogeneous production environments. To reconcile rapid evolution with production reliability, we present RTP-LLM, an open-source production inference engine developed and deployed at Alibaba. Its architecture separates model-specific execution from shared request processing, state management, and resource coordination. Explicit interfaces localize compatible model changes while allowing models and deployment configurations to reuse common serving mechanisms. RTP-LLM has evolved from an exploratory system into a shared production engine that supports $\sim$100 models and processes hundreds of trillions of tokens per day. We describe how its architecture and production practices accommodate model evolution and contain the impact of failures, and share lessons for building evolvable and reliable inference engines at enterprise scale.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Jiarui Guo, Zhi Zhang, Boyu Tan, Zongwei Lv, Haobo Sun, Na He, Ziqing Wang, Xinfei Shi, Wei Zhang, Xi Yang, Haosheng Hu, Wending Bao, Zetao Hu, Dong Cao, Yong Li, Lining Wang, Chengjun Yang, Tianpeng Wang, Huanbing Lu, Yidan Wang, Hengyi Bao, Yaxin Yu, Hanyun Guo, Huidong Zhang, Haiyu Zhou, Zefeng Liu, Weixiang Huang, Ziyi Wang, Chenyi Song, Ruixuan Zhang, Zhengkai Ao, Haocheng Luo, Zhichen Xue, Jialin Zhang, Chi Zhang, Lingjun Zhu, Silu Zhou, Zongyuan Wu, Yinghao Yu, Yi Zheng, Miao Sun, Yuxing Yuan, Juncheng Yin, Guoding Li, Nan Wang, Xiyu Wang, Lin Yang, Zechao Zhang, Jianning Zhang, Bo Cai, Xiaolin Wang, Tao Lan, Tong Yang, Kan Liu, Lu Chen. 2026-10-31. RTP-LLM: Building an Evolvable and Reliable LLM Inference Engine at Alibaba Scale. https://arxiv.org/abs/2611.00967

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related papers

UMLoad: Fast On-Demand Model Loading on Unified Memory Architecture

On-demand model loading dominates response latency for interactive on-device AI, yet unified memory architectures (UMAs), now common on edge devices, should make it cheap by placing weights in memory the GPU already sees. However, frameworks still use the loading flow built for discrete GPUs, leaving significant inefficiencies. This paper presents UMLoad, a system-level model-loading accelerator that decouples a framework's logical allocations from their physical page backing. UMLoad uses on-demand reconstruction to eliminate the weight copy while preserving copy independence, and GPU-assisted page zeroing to accelerate runtime allocation while preserving its security guarantee. Implemented on Intel, AMD, and NVIDIA UMA platforms and evaluated with llama.cpp, PyTorch, and vLLM across six models, UMLoad reduces average loading time by 36.6%-71.9% over vanilla and 19.9%-62.7% over pipelined loaders, and cuts mean LLM-routing time to first token (TTFT) by 51.3%-59.3% and model-backed tool completion latency by 10.2%-31.6%.

cs.OS↗

ToolSched: Resource-Efficient Tool Scheduling for Shared-Host LLM Agents

Local LLM agents often work on shared hosts. Unlike multi-tenant cloud clusters, these hosts often have tightly bounded memory, CPU, and I/O resources. Concurrent agents frequently suffer from resource contention, leading to failures such as OOM and reduced resource efficiency. Considering that agents' resource demands are bursty and shell command delay is imperceptible to agents, there is a huge scheduling opportunity to arrange when and in what order commands are actually executed. Thus, we present ToolSched, a Shell MCP Server for shared local hosts that serves multiple agents and schedules their operations. ToolSched embeds a resource model into the MCP interface: agents estimate resource demands along with command requests. These hints, together with real-time host resource conditions, determine when commands are actually executed. Internally, ToolSched applies a scheduling algorithm to stagger commands, reducing contention and improving resource utilization. Prediction correction and checkpoint-based recovery mitigate estimation bias and resource errors. Our evaluation on Terminal Bench shows that, compared with unscheduled execution, ToolSched improves resource utilization by 148.4% and end-to-end command throughput by 29.4%, demonstrating its effectiveness and practicality.

cs.OS↗

High-Throughput Private Information Retrieval with on-CPU Accelerators

Private information retrieval (PIR) hides which record a client retrieves by scanning the entire database, and batching is an effective technique to improve throughput by sharing this scan across queries. However, existing CPU-based solutions gain little from batching because each query still requires its own multiplications, and vector instructions perform only a few at a time. GPUs and other discrete accelerators can accelerate these computations, but require extra hardware and can constrain database size due to their limited memory capacity. In this paper, we present AltoPIR, the first PIR system that leverages on-CPU matrix accelerators such as Intel AMX. AltoPIR keeps the accelerator fed from the CPU caches, reading each database byte from memory once for all queries in a batch and never writing intermediate products to memory. This enables high-performance PIR through efficient batching without requiring discrete accelerators. Our evaluation shows that AltoPIR achieves up to 50.1x higher throughput than existing CPU-based solutions and serves databases larger than a GPU's memory.

cs.OS↗