RoofLang 语言让 AI 优化 LLM 推理系统架构
RoofLang: Enabling AI-Driven Architecting of LLM Inference Systems
这个 RoofLang 工具能帮你优化 LLM 推理架构,让 DeepSeek V4 模型跑得更快,比其他模型快很多。
RoofLang 是一种专门用于 LLM 推理系统架构设计的领域特定语言。它通过通用工作负载表示、可验证的突变空间和与实现无关的评估器,实现了 AI 驱动的 LLM 推理系统架构设计循环。在评估中,RoofLang 发现 DeepSeek V4 系列模型在 NVIDIA B300 上可达到其他代表性模型 3.5-39.5 倍的峰值解码吞吐量。一个持续优化器代理进一步发现新架构,使 DeepSeek V4 Pro 的吞吐量和交互性提升 6.23-50.1%。
RoofLang: Enabling AI-Driven Architecting of LLM Inference Systems
AI is beginning to make substantive contributions to LLM inference optimization. Existing AI optimizations are predominantly profiling-based. Profiling-bound feedback confines the search to the capabilities and performance of an existing software stack, preventing a fundamentally better architecture of LLM inference systems from being identified. To enable the AI-driven LLM inference system architecting loop, we argue that a general workload representation, a verifiable mutation space, and an implementation-independent evaluator are required. We present the RoofLang domain-specific language (DSL) that provides these features. In our evaluation, RoofLang reveals that DeepSeek V4-series models could achieve 3.5-39.5$\times$ higher peak decode throughput than other representative models. This gap is disproportionate to their total parameter counts and arises largely from compact KV-cache designs that support larger batches and reduce memory traffic. A persistent optimizer agent further discovered several new architectures that improved both throughput and interactivity of DeepSeek V4 Pro on NVIDIA B300 by 6.23-50.1%.
- 宝玉09-12 18:10原文