[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-115120":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":10,"pushedAt":29,"updatedAt":30,"readmeContent":31,"aiSummary":32,"trendingCount":15,"starSnapshotCount":15,"syncStatus":14,"lastSyncTime":33,"discoverSource":34},115120,"EvolvingInfra","mit-han-lab\u002FEvolvingInfra","mit-han-lab","An inference framework that adapt to diverse and dynamic agent workloads","https:\u002F\u002Finference-rsi.com\u002F",null,"Python",183,15,2,0,5,124,18,83.61,"Other",false,"main",true,[25,26,27,28],"distributed-systems","llm","llm-agents","system","2026-11-23 10:55:45","2026-11-23 17:40:26","\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fassets\u002Flogo.png\" width=\"120\" alt=\"Evolving Infra logo\">\n\u003C\u002Fp>\n\n\u003Ch1 align=\"center\">Evolving Infra: Agent-Adaptive LLM Serving at Scale\u003C\u002Fh1>\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fassets\u002Faffiliations.svg\" width=\"860\" alt=\"Georgia Institute of Technology, University of Illinois Urbana-Champaign, University of California, Berkeley, NVIDIA, OpenAI, Massachusetts Institute of Technology\">\n  \u003Cbr>\u003Csub>Corresponding author: \u003Ca href=\"mailto:hao.kang.sys@gmail.com\">hao.kang.sys@gmail.com\u003C\u002Fa>\u003C\u002Fsub>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n| \u003Ca href=\"https:\u002F\u002Finference-rsi.com\u002F\">\u003Cb>Website\u003C\u002Fb>\u003C\u002Fa> | \u003Ca href=\"https:\u002F\u002Farxiv.org\u002Fabs\u002F2611.12304\">\u003Cb>Paper\u003C\u002Fb>\u003C\u002Fa> | \u003Ca href=\"https:\u002F\u002Fdeepwiki.com\u002Fmit-han-lab\u002FEvolvingInfra\">\u003Cb>Wiki\u003C\u002Fb>\u003C\u002Fa> |\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"AGENTS.md\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FAgent--native-AGENTS.md-0F766E.svg\" alt=\"Agent-native repository\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Finference-rsi.com\u002F\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FWebsite-inference--rsi.com-2A78D6.svg\" alt=\"Website\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Farxiv.org\u002Fabs\u002F2611.12304\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FarXiv-2611.12304-b31b1b.svg\" alt=\"Paper on arXiv\">\u003C\u002Fa>\n  \u003Ca href=\"docs\u002FREADME.md\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FDocs-evolving--infra-6f42c1.svg\" alt=\"Documentation\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fdeepwiki.com\u002Fmit-han-lab\u002FEvolvingInfra\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FWiki-DeepWiki-1F6FEB.svg\" alt=\"Wiki on DeepWiki\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fhuggingface.co\u002Fdatasets\u002Fcrmsndu\u002Fevolving-infra-traces\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FTraces-Hugging_Face-FFD21E.svg?logo=huggingface&logoColor=FFD21E\" alt=\"Agent traces on Hugging Face\">\u003C\u002Fa>\n  \u003Ca href=\"LICENSE\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLicense-MIT-green.svg\" alt=\"License\">\u003C\u002Fa>\n\u003C\u002Fp>\n\n> [!TIP]\n> **This is an agent-native repository.** Use your coding agent (Claude Code, Codex, ...) to\n> understand, deploy, benchmark and develop Evolving Infra. It reads [`AGENTS.md`](AGENTS.md) for\n> the rules and the map of the code, and follows a [skill](skills\u002FREADME.md) for each task.\n\n---\n\nhttps:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002F1e97febe-fc77-41a2-8489-5ec518034fc9\n\nEvolving Infra is an LLM serving system that adapts itself to the agent workload **purely online**,\nwith **no offline profiling**. Serving coding, math and computer-use agents with GLM-5.2 and Kimi K2.6\non up to 256 GB300 GPUs, it reduces mean end-to-end latency by up to **4.1×** and P95 time to\nfirst token by up to **14×** compared with [NVIDIA Dynamo](https:\u002F\u002Fgithub.com\u002Fai-dynamo\u002Fdynamo),\nwith up to **2.7×** its throughput.\n\n\u003Cp align=\"center\">\n  \u003Cimg alt=\"Lost KV reuse, mean end-to-end latency and P95 time to first token of Dynamo and Evolving Infra on Putnam (GLM-5.2), Claude Code (GLM-5.2) and OSWorld (Kimi K2.6), at three concurrency levels each\" src=\"docs\u002Fassets\u002Fmain-results.png\" width=90%>\n  \u003Cbr>\u003Csub>Math (Putnam), coding (Claude Code) and computer-use (OSWorld) agents, three concurrency levels each. Lower is better.\u003C\u002Fsub>\n\u003C\u002Fp>\n\n## About\n\nEvolving Infra adapts online through three designs:\n\n1. **Decouple** compute allocation from KV cache management, so online adaptation is cheap: a node\n   switches between prefill and decode **in seconds, without a restart**, and its KV cache stays in\n   a host-memory pool that every node can read.\n2. **Predict** the prefill and decode load of agents with a **cost model** that covers\n   **sub-agents and context management**. The planner uses it to match the prefill\u002Fdecode split to\n   the workload, and the router to place each request.\n3. **Manage KV** with an **agent-aware distributed KV manager**: signals from agent context\n   management drive KV transfer and eviction, so it **evicts** the KV that no agent branch needs,\n   such as histories replaced by compaction and the context of finished sub-agents, and **keeps**\n   the KV that agents will reuse.\n\n### Overview\n\n\u003Cp align=\"center\">\n  \u003Cimg alt=\"Evolving Infra architecture\" src=\"docs\u002Fassets\u002Farchitecture.png\" width=80%>\n\u003C\u002Fp>\n\nThe router sends each request to a prefill node and a decode node. The planner moves nodes\nbetween the two groups (dashed arrow). KV stays in shared host memory while an agent branch still\nuses it. [Architecture](docs\u002Farchitecture.md) describes the request path.\n\n## Getting Started\n\nEvolving Infra is set up and run by your coding agent (Claude Code, Codex, ...): each task below\nis a [skill](skills\u002FREADME.md) that the agent follows step by step, checking each step and\nreporting what it ran. Every component is in the runtime image, built for x86_64 (H200, B300)\nand aarch64 (GB300): `docker.io\u002Fweili0234\u002Fevolving-infra:v0.1.0`.\n\n### Serve an agent with a model\n\n1. **Deploy the model.** Ask your agent: \"Deploy `\u003Cmodel>` on `\u003Chosts>` with Evolving Infra,\n   following `skills\u002Fdeploy-stack\u002FSKILL.md`.\" Give it the model directory, the hosts and how\n   commands reach them (a shell on each, or a scheduler). It inspects the machines, writes a\n   config when the model or GPU has no example, starts the stack and checks that it answers. For\n   a coding-agent harness, have it use the config of [`examples\u002Fagents`](examples\u002Fagents\u002FREADME.md)\n   for your model, which adds the tool-call parsers.\n2. **Connect the agent.** Ask your agent:\n   - **Pi, Claude Code or Codex**: \"Run `\u003Charness>` on our Evolving Infra stack at\n     `\u003Crouter url>`, following `skills\u002Fconnect-harness\u002FSKILL.md`.\" Each has a launch script; the\n     harness's own settings do not change.\n   - **Any other harness** (OpenCode, Aider, an in-house CLI, ...): \"Add a launch script for\n     `\u003Charness>`, following `skills\u002Fadd-harness\u002FSKILL.md`.\" It finds which API the harness\n     sends, writes `examples\u002Fagents\u002F\u003Charness>.sh` and checks it with one prompt and one tool call.\n   - **Your own agent's code**: \"Connect our agent to Evolving Infra, following\n     `skills\u002Fconnect-agent\u002FSKILL.md`.\" Its requests then carry agent identities, so the KV cache\n     of its live branches is kept.\n\n### Reproduce the paper\n\nAsk your agent: \"Reproduce the paper's Claude Code result on our Slurm cluster, following\n`skills\u002Frun-benchmark\u002FSKILL.md`.\" Give it the workload (Claude Code, Putnam or OSWorld), the\nSlurm account and partition, the image, the model directory and a directory every node sees. A\nrun holds nine GPU nodes for about two hours. The workloads and the paper's results are in\n[benchmarks\u002F](benchmarks\u002FREADME.md).\n\nWhen a run does not start, fails a request or scores below the reference, ask it to follow\n`skills\u002Fdiagnose-run\u002FSKILL.md`.\n\n## Repository layout\n\n| Directory | What it contains |\n|---|---|\n| [`evolving_infra\u002Fengine\u002F`](evolving_infra\u002Fengine\u002FREADME.md) | Serving engine, derived from SGLang (`decoupled_engine`); [what we changed](evolving_infra\u002Fengine\u002FCHANGES.md) |\n| [`evolving_infra\u002Frouter\u002Fcore\u002F`](evolving_infra\u002Frouter\u002Fcore\u002FREADME.md) | Rust router (`sgl-router`) |\n| [`evolving_infra\u002Frouter\u002Ffrontend\u002F`](evolving_infra\u002Frouter\u002Ffrontend\u002FREADME.md), [`evolving_infra\u002Frouter\u002Findexer\u002F`](evolving_infra\u002Frouter\u002Findexer\u002FREADME.md), [`evolving_infra\u002Frouter\u002Fclient\u002F`](evolving_infra\u002Frouter\u002Fclient\u002F__init__.py) | Tokenizer service, KV directory, Python client |\n| [`evolving_infra\u002Fplanner\u002F`](evolving_infra\u002Fplanner\u002FREADME.md) | Planner |\n| [`evolving_infra\u002Flaunch\u002F`](evolving_infra\u002Flaunch\u002F__main__.py), [`examples\u002F`](examples\u002FREADME.md) | `evolving-infra serve`; a config per hardware and model, and how to run one under Slurm or on Modal |\n| [`AGENTS.md`](AGENTS.md), [`skills\u002F`](skills\u002F) | Instructions and skills for coding agents |\n| [`benchmarks\u002F`](benchmarks\u002FREADME.md) | Agent trace replay, run checks, reference results |\n| [`docker\u002F`](docker\u002FREADME.md) | Runtime image |\n\n## Contributing\n\n\u003Cp align=\"center\">\u003Cimg src=\"docs\u002Fassets\u002Fcommunity-meme.jpg\" alt=\"inferenceRSI\" width=\"720\">\u003C\u002Fp>\n\nWe welcome contributions, and we recommend making them with a coding agent:\n\n- Use Claude Opus 5.5, GPT-6 Astra or a stronger model.\n- Point the agent at [`AGENTS.md`](AGENTS.md): the contribution rules, the repository map and\n  the commands to build and test.\n- Before opening a pull request, have the agent run the\n  [`check-pr`](skills\u002Fcheck-pr\u002FSKILL.md) skill. It checks the change and fills\n  the pull request template: claims, the evidence for each, and the root cause of a fix.\n- Attach the agent's session transcript to your pull request, so\n  reviewers can see how the change was made and checked. Scrub it first:\n  `python tools\u002Fscrub_transcript.py \u003Csession file>` replaces tokens, e-mail addresses, home\n  directories and the names you give it, and reports any string that still looks like a secret.\n- For a larger change, open an issue first.\n\n### Community\n\nJoin the InferenceRSI community to discuss the project, on [Discord](https:\u002F\u002Fdiscord.gg\u002FUEffTj99N) or in the WeChat group:\n\n\u003Cp align=\"center\">\u003Ca href=\"https:\u002F\u002Fdiscord.gg\u002FUEffTj99N\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FDiscord-Inference--RSI-5865F2.svg?logo=discord&logoColor=white\" alt=\"Join the Inference-RSI Discord\">\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Cp align=\"center\">\u003Cimg src=\"docs\u002Fassets\u002Fwechat-group.jpg\" alt=\"InferenceRSI WeChat group QR code (valid until 11\u002F23)\" width=\"240\">\u003C\u002Fp>\n\n## Citation\n\nIf you use Evolving Infra, please cite the [paper](https:\u002F\u002Farxiv.org\u002Fabs\u002F2611.12304):\n\n```bibtex\n@misc{kang2026evolvinginfraagentadaptivellm,\n  title={Evolving Infra: Agent-Adaptive LLM Serving at Scale},\n  author={Hao Kang and Weili Xu and Ziyang Li and Zheng Du and Hanchen Li and Tian Xia and Song Bian and Tushar Krishna and Huizi Mao and Ion Stoica and Song Han},\n  year={2026},\n  eprint={2611.12304},\n  archivePrefix={arXiv},\n  primaryClass={cs.DC},\n  url={https:\u002F\u002Farxiv.org\u002Fabs\u002F2611.12304},\n}\n```\n\n## License\n\nMIT ([LICENSE](LICENSE)). The engine (`evolving_infra\u002Fengine\u002F`) and the router core\n(`evolving_infra\u002Frouter\u002Fcore\u002F`) are derived from SGLang at upstream commit `9a489f8d2f` and, with\nTrie (`benchmarks\u002Ftrie\u002F`), stay under the Apache License 2.0 in their own LICENSE files;\n[NOTICE](NOTICE) lists every included third-party work.\n","Evolving Infra 是一个面向大语言模型智能体（LLM agents）的自适应推理服务框架，专为动态、异构的 agent 工作负载设计。其核心能力包括纯在线（no offline profiling）的实时调度优化、KV缓存重用自适应、多agent任务类型（如编程、数学推理、操作系统交互）的差异化服务策略，并支持大规模GPU集群（最高256卡）部署。技术上融合分布式系统调度与LLM推理优化，显著降低端到端延迟（最高4.1×）和首token延迟（最高14×），提升吞吐量。适用于需要高并发、低延迟响应且工作负载随agent行为频繁变化的LLM服务场景，如智能体平台、自动化工作流引擎和交互式AI应用后端。","2026-11-24 04:50:26","CREATED_QUERY"]