[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-112685":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":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":10,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":10,"pushedAt":24,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":15,"starSnapshotCount":15,"syncStatus":28,"lastSyncTime":29,"discoverSource":30},112685,"InfraRSI","TokenRhythm\u002FInfraRSI","TokenRhythm","InfraRSI: Harnessing Recursive Self-Improvement for Training Infrastructure","https:\u002F\u002Finfrarsi.github.io",null,"Python",105,4,57,0,23,43,5,54.9,false,"main",true,[],"2026-11-12 07:27:50","2026-11-22 14:56:52","\u003Cp align=\"center\">\n  \u003Cem>Command Once, and Self-Evolve: Your Personal Infra Agent for All Environments.\u003C\u002Fem>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fassets\u002Flogo_banner.jpg\" alt=\"InfraRSI Logo Banner\" width=\"760\" height=\"180\"\u002F>\n\u003C\u002Fp>\n\n\u003Ch3 align=\"center\">\n  InfraRSI: Harnessing Recursive Self-Improvement for Training Infrastructure\n\u003C\u002Fh3>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Farxiv.org\u002Fabs\u002F2611.11558\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FarXiv-2611.11558-b31b1b.svg?style=flat-square&logo=arxiv&logoColor=white\" alt=\"arXiv:2611.11558\"\u002F>\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Finfrarsi.github.io\u002F\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FBlog_%26_Docs-infrarsi.github.io-0284c7.svg?style=flat-square\" alt=\"Official Blog and Docs\"\u002F>\u003C\u002Fa>\n  \u003Ca href=\"pyproject.toml\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fpython-3.10%2B-3776ab.svg?style=flat-square&logo=python&logoColor=white\" alt=\"Python 3.10+\"\u002F>\u003C\u002Fa>\n  \u003Ca href=\"#-getting-started\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLLMs-Claude%20Code%20%7C%20Codex%20%7C%20DeepSeek%20%7C%20APIs-10b981.svg?style=flat-square\" alt=\"LLM Backends\"\u002F>\u003C\u002Fa>\n  \u003Ca href=\"README_ZH.md\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F语言-简体中文-f59e0b.svg?style=flat-square\" alt=\"简体中文\"\u002F>\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cb>English\u003C\u002Fb> | \u003Cb>\u003Ca href=\"README_ZH.md\">简体中文\u003C\u002Fa>\u003C\u002Fb> | \u003Cb>\u003Ca href=\"https:\u002F\u002Farxiv.org\u002Fpdf\u002F2611.11558\">📄 Paper (PDF)\u003C\u002Fa>\u003C\u002Fb> | \u003Cb>\u003Ca href=\"https:\u002F\u002Finfrarsi.github.io\u002F\">🌐 Blog, documentation &amp; navigation\u003C\u002Fa>\u003C\u002Fb>\n\u003C\u002Fp>\n\nInfraRSI improves the training infrastructure around your existing codebase. Give it a working launch script, Python entry point, or repository; it searches for faster configurations and code changes, checks them against your original job, and saves verified experience for future runs.\n\n## 📊 Benchmark Demo\n\nAcross four dense and MoE workloads on H100 and H200, the [blog's reported results](https:\u002F\u002Finfrarsi.github.io\u002F#results) show **1.83× geometric-mean speedup**, up to **2.75×**, with mean Model FLOPs Utilization (MFU) rising from **17.4% to 30.0%**. The comparison uses the same task contracts for InfraRSI, RE-Bench, Auto-Research, and OptiCo; failed and audit-excluded attempts still count toward token consumption.\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Finfrarsi.github.io\u002F#results\">\u003Cimg src=\"docs\u002Fassets\u002Fresults_overview.svg\" alt=\"Blog benchmark: speedup versus tokens, final geometric-mean speedup, and MFU across four workloads\" width=\"100%\"\u002F>\u003C\u002Fa>\n\u003C\u002Fp>\n\n| Workload | Hardware | InfraRSI speedup | MFU: baseline → optimized |\n| :--- | :--- | ---: | ---: |\n| Qwen3.5-9B | 8×H100 | 1.73× | 25.3% → 43.8% |\n| Gemma-4-26B-A4B MoE | 8×H200 | 2.75× | 6.4% → 17.6% |\n| Qwen3.8-27B | 8×H200 | 1.55× | 29.3% → 45.4% |\n| Qwen3.5-35B-A3B MoE | 16×H100, 2 nodes | 1.51× | 8.7% → 13.2% |\n| **Geomean speedup \u002F mean MFU** | | **1.83×** | **17.4% → 30.0%** |\n\nThe figure is reused from the blog. See [full results and per-workload trajectories](https:\u002F\u002Finfrarsi.github.io\u002F#results) for the comparisons and measurement details.\n\n## ✨ Features\n\n- 🚀 **Optimize parameters and code together.** B-Comp searches launch flags, environment variables, configuration keys, and allowed code patches—combining memory savings with faster kernels, compilation, and communication settings.\n- 🧩 **Use your stack and model service.** Supports Megatron-Core, FSDP2\u002FTorchTitan, DeepSpeed, HF Trainer\u002FTRL, and native PyTorch DDP, on one or multiple nodes. Choose Claude Code, Codex, DeepSeek, Anthropic\u002FOpenAI APIs, an OpenAI-compatible endpoint, or self-hosted vLLM.\n- 🔁 **Carry experience to the next job.** Verified results become reusable experience. In the blog's cross-hardware study, experience from other GPU types improved Qwen3.5-9B on 8×H100 from **1.70× to 1.82×**, reaching 90% of the peak log-speedup in 9 trials.\n- ✨ **Start with one command.** `infrarsi optimize .\u002Ftrain.sh` handles `init → doctor → run → report → apply` and writes `infrarsi_optimized.sh` for the verified result.\n- 🛡️ **Check before adopting.** The harness checks workload, data, optimizer steps, and numerical tolerance, then tests the winner in fresh re-runs. Add natural-language requirements or optional second-model review; the report identifies checks your project does not yet support.\n\nSee the [blog highlights](https:\u002F\u002Finfrarsi.github.io\u002F#highlights) for examples and the [verification guide](https:\u002F\u002Finfrarsi.github.io\u002F#verification) for the checks.\n\n## ⚡ Getting Started\n\n### 1. Install\n\nRequires Python 3.10+.\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002FTokenRhythm\u002FInfraRSI.git\ncd InfraRSI\npip install -e .\ninfrarsi --version\n```\n\n### 2. Use the LLM you already have\n\n⚠️ **Start with a codebase or launch command that already runs successfully.** Run the original job once, then choose one of these four paths. Replace `.\u002Ftrain.sh` with your project's launch script.\n\n| Path | Setup | InfraRSI backend |\n| :--- | :--- | :--- |\n| Claude Code | Installed and signed in | `claude-cli` |\n| Codex | Installed and signed in | `codex-cli` |\n| DeepSeek API | `DEEPSEEK_API_KEY` | `deepseek:deepseek-chat` |\n| OpenAI-compatible API \u002F gateway | Provider key and endpoint | `openai-compat:MODEL` |\n\n```bash\n# Claude Code\ninfrarsi optimize .\u002Ftrain.sh --llm claude-cli --screens 16\n\n# Codex, with an optional token cap\ninfrarsi optimize .\u002Ftrain.sh --llm codex-cli --screens 16 --token-budget 500k\n\n# DeepSeek, with an optional API spend cap\nexport DEEPSEEK_API_KEY=\"your-key\"\ninfrarsi optimize .\u002Ftrain.sh --llm deepseek:deepseek-chat --screens 16 --budget-usd 10\n\n# OpenAI-compatible endpoint (OpenRouter example)\nexport OPENROUTER_API_KEY=\"your-key\"\ninfrarsi optimize .\u002Ftrain.sh --llm openai-compat:anthropic\u002Fclaude-sonnet-4 --api-base https:\u002F\u002Fopenrouter.ai\u002Fapi\u002Fv1 --api-key-env OPENROUTER_API_KEY\n```\n\n`infrarsi .\u002Ftrain.sh` is shorthand for `infrarsi optimize .\u002Ftrain.sh`. Python entries and repository paths work too. The [blog quick start](https:\u002F\u002Finfrarsi.github.io\u002F#quickstart) includes SiliconFlow, self-hosted vLLM, and manifest examples.\n\n### 3. Inspect or run each stage separately\n\nFrom your training repository:\n\n```bash\ninfrarsi init\ninfrarsi doctor\ninfrarsi run --strategy bcomp --llm codex-cli\ninfrarsi report\ninfrarsi apply --write\n```\n\nSee the [five-stage workflow](https:\u002F\u002Finfrarsi.github.io\u002F#workflow) and [CLI reference](https:\u002F\u002Finfrarsi.github.io\u002F#cli) for details.\n\n### 4. Or let a Claude Code \u002F Codex session drive it\n\nInstall the `infrarsi-optimize` skill, open a session in your training repository and ask it to make the job faster:\n\n```bash\npython agent_skill\u002Finstall_skill.py\n```\n\nThe session adapts the project and talks to you; the same engine runs, checks and reports; each question the search asks is answered by a fresh sub-agent of the session's own model, so no API key is needed. See [agent_skill\u002FREADME.md](agent_skill\u002FREADME.md).\n\n## 🧭 Before and During a Run\n\n- **Checklist:** Review six settings; **Enter starts**, a number edits, `more` opens advanced options, and `q` quits. `--yes` skips prompts and disables live chat.\n- **Requirements:** Use `--requirements \"do not change the optimizer\"`. Add `--second-llm claude-cli` for optional second-model review; it is off by default.\n- **Budget:** New projects default to **16 full runs**. Time, token, GPU-hour, and dollar caps are optional; existing limits remain in force. Baseline checks, diagnosis, and final verification are separate from the search budget. See [targets and budgets](https:\u002F\u002Finfrarsi.github.io\u002F#stopping).\n- **Launch fails:** Choose `r` to retry, `m` to edit the command, or `d` for model diagnosis. Diagnosis shows a separate allowance; a proposed command needs your confirmation before retrying.\n- **Live chat:** On a POSIX terminal, **Ctrl-G** opens the panel. Use `\u002Fstatus`, `\u002Fpause`, `\u002Fresume`, `\u002Fstop`, or `\u002Fnote your guidance`. Replies and control changes wait for trial boundaries; confirmation pairs finish together. Chat uses the search budget, and paused time still counts.\n- **Stop:** Ctrl-C stops search and re-verifies the best result; a second Ctrl-C exits immediately. After a killed or disconnected run, `infrarsi finish RUN_DIR` can complete verification.\n\n💾 **Resume B-Comp (`bcomp`)** from the project directory:\n\n```bash\ninfrarsi run --resume latest --screens 32\n```\n\nYou can replace `latest` with a run directory; for a custom output root, add `--out \u002Fpath\u002Fto\u002Fruns`. Budgets are totals **including work already done**, so raise any exhausted caps. This resumes the optimization search, not the training job's own checkpoint.\n\n## 📝 Citation\n\nIf InfraRSI supports your work, please cite our [paper](https:\u002F\u002Farxiv.org\u002Fabs\u002F2611.11558) ([PDF](https:\u002F\u002Farxiv.org\u002Fpdf\u002F2611.11558)):\n\n```bibtex\n@misc{infrarsiteam2026infrarsiharnessingrecursiveselfimprovement,\n      title={InfraRSI: Harnessing Recursive Self-Improvement for Training Infrastructure},\n      author={{InfraRSI Team} and Yuchuan Tian and Haocheng Mei and Ye Yuan and Chao Xu and Boxun Li and Guohao Dai and Kai Han and Allen Chen and Yunhe Wang and Yu Wang},\n      year={2026},\n      eprint={2611.11558},\n      archivePrefix={arXiv},\n      primaryClass={cs.AI},\n      url={https:\u002F\u002Farxiv.org\u002Fabs\u002F2611.11558},\n}\n```\n\n📖 The full navigation, usage guide, and experiment write-up are on the [**InfraRSI blog**](https:\u002F\u002Finfrarsi.github.io\u002F).\n","InfraRSI 是一个面向大模型训练基础设施的自动化优化工具，通过递归式自改进机制持续提升分布式训练作业的执行效率。它以用户现有启动脚本、Python 入口或代码仓库为输入，自动搜索更优的配置参数（如并行策略、通信调度、内存分配）和代码级变更，并基于实际运行结果验证有效性，将成功经验沉淀为可复用的优化知识。项目支持多LLM后端（Claude Code、Codex、DeepSeek等）协同决策，已在H100\u002FH200集群上实现最高2.75倍加速与MFU显著提升。适用于AI研发团队在训练框架（如PyTorch\u002FFSDP）下对LLM、MoE等密集模型进行性能调优的场景。",2,"2026-11-24 04:43:50","CREATED_QUERY"]