Repository navigation
Description
Status Proposed. This RFC asks InferRSI and inference-engine maintainers to agree on a pilot and its evidence requirements.
Current state and motivation
InferRSI's managed service_reuse mode runs a candidate's warmup, performance tests, quality checks, and optional profiling against one owned service. A new candidate gets a new service. The DeepSeek V4.1 Flash W8A8 campaign explicitly calls for a fresh service for the baseline, each evaluated commit, and the independent final. The parallel-round work coordinates candidate execution and device leases. It gives us a place to integrate scheduling for warm engines. Issue #467 · PR #480 · PR #521 · Campaign #602 · Loop tracking #543 · PR #268
A small scheduler or operator change can trigger process and accelerator initialization, weight loading and sharding, communicator setup, graph capture, and warmup. That cost competes with candidate generation and testing for the same wall-clock and device budget. Incomplete teardown can also leave workers or allocations behind, while fresh launches can differ in warmup and allocator state. A resident engine has its own risks, including accumulating fragmentation and retaining stale caches or compiled code. Measure both paths before attributing changes in variance or pass rates to hot updates.
Goal. For supported changes, keep the same engine and unchanged model weights resident across candidate revisions, swap a declared implementation, and obtain a trustworthy screening result sooner. Measure whether this lets the agent validate more useful candidates and deliver a better independently verified result under a fixed budget. A longer-term goal is a continuously deployed inference service that can learn from ongoing optimization with isolated evaluation, staged rollout, and rollback. The first pilot uses an isolated campaign engine and synthetic or frozen evaluation traffic.
RSInfer as a reference
What to borrow. RSInfer's microkernel separates long-lived State Units from replaceable Logic Units. Its dependency planner distinguishes changes read dynamically from changes captured by address or value, then selects the required action. Depending on the change, that can mean draining requests, rebuilding state, or recapturing CUDA graphs. Prepare and, where possible, compile the next artifact before pausing the current engine. The quickstart demonstrates a scheduler edit, a request and log check that proves the new path ran, and a rollback. Versioned change receipts and independent, protected promotion runs are also directly relevant to InferRSI. RSInfer team article, §§2–3 · Quickstart · Change protocol
What the timings measure. For one six-hour DeepSeek-V4.1-Flash-1017 session on 4×SM100, the team reports 95 live apply operations, 94 committed updates, and zero engine restarts or weight reloads. The 5.18 s median covers 20 multi-GPU code updates. The article separately reports 55–123 s for native CUDA compilation staged in the background. Its estimated savings from avoided restarts are counterfactuals. Use the results to motivate the pilot and measure build time, time spent blocking request admission, and submission-to-verdict time separately. The equal-budget benefit for InferRSI remains an empirical question. RSInfer team article, §§3.2 and 6.1 · Published benchmark summary
Where the approach stops. RSInfer's compatibility and dependency decisions rely on its own unit declarations and runtime. The quickstart requires a restart for framework-core changes and ordinarily requires an empty request queue for code changes. The reported 55 GB weight refit took 26.62 s, close to the comparison systems' weight-update RPCs. A vLLM-family or other backend needs its own compatibility and invalidation rules. The authors list elastic EP membership, cross-node KV transfer for disaggregated serving, and multi-node RDMA expansion as future work. In the current symmetric-memory collective setup, a fatal device error on one rank can require a whole-group restart. Retaining a KV pool allocation is distinct from making its contents valid for a new candidate. RSInfer team article, §§6.1 and 7 · Quickstart · Reported collective rollback failure
Failure evidence to turn into tests. RSInfer's development report includes allocator fragmentation causing OOM during activation and rollback, an expert-placement mismatch after a model reload, and numerical faults that required checks on the captured graph path. Its bounded protocol models check safety under specified assumptions. Coordinator crash recovery, stale message isolation across reconnects, liveness, and GPU, KV, and request consistency remain outside the formal evidence. Exercise these boundaries on the selected InferRSI backend and verify outcomes with a runtime probe or independent evaluation. RSInfer team article, §5 · Expert-placement bug and validation · Formal validation scope
Complementary approaches. vLLM's weight-transfer path shows live pause, update, and resume for weights. Its Preload feature offers a second option for incompatible code changes by letting a fresh worker map compatible preloaded weights. ServerlessLLM studies fast checkpoint loading and locality, another way to reduce fresh-start cost. SGLang's in-place prefill/decode role switching demonstrates drained activation with resident weights and rebuilt role state. Its scope is a pair of preimplemented roles. LLM4LLM validates replacement kernels inside the target model and describes distributed serving as future work. CUDA Graph update constraints explain why a code or binding change can require selective recapture. Compare with a faster fresh-start path where available so the pilot isolates the value of retaining the worker itself. vLLM weight transfer · vLLM Preload · ServerlessLLM, OSDI 2024 · SGLang PR #28403 · LLM4LLM §3.3 · CUDA Graph API
Proposed pilot and challenges
- Define the joint Harness and engine boundary. The Harness owns candidate admission, device leases, deadlines, workloads, evidence, and final decisions. The engine owns stable workers, accelerator contexts, unchanged weights, and any compatible memory pools and communicators. Its adapter exposes versioned activation and readiness on top of a replaceable computation interface. Start with one engine, one model, one exclusively leased device group, and one allowlisted scheduler hook or operator interface. An agent submits a versioned artifact with declared compatibility. The adapter checks the actual capabilities and artifacts. Treat weight, topology, layout, ABI, worker initialization, and undeclared dependency changes as fresh-start cases in the pilot.
- Make activation observable and recoverable. Prepare and verify the artifact before a bounded drain. Quiesce affected GPU streams and collectives, reset or version mutable state, and rebuild incompatible compiled artifacts and graphs. Record the transaction and its commit or abort decision durably. Give each activation a unique ID, even if it reloads the same SHA and artifact. Bind it to the service instance, engine state epoch, device lease, and each rank's loaded identity and readiness. Resume only after all participating ranks confirm the same activation and an internal probe confirms the intended execution path. Bind each request and sample to its admission and completion under that activation. If commit was recorded but any rank is unconfirmed, block admission, quarantine the service, and cold-start after verified teardown. Reuse after abort requires independently verified rollback and readiness. RSInfer change protocol · Issue review
- Keep concurrent candidates isolated. Start with one active generation per engine. Parallel lanes can stage changes concurrently and evaluate on separately leased replicas, or queue for bounded turns on the same engine. Integrate with the existing lane and device-lease contracts. Account for queue time, fairness, device contention, and the opportunity cost of an idle resident replica. Sharing a single worker across simultaneous active generations requires an explicit isolation design and separate validation. Parallel-round design #249 · PR #268
- Protect the evaluation contract. Use warm results to prioritize candidates. Use a fresh, independently managed service for formal confirmation and the final verdict, with an evaluator and workload outside the candidate's editable paths. Freeze the quality gates and, where supported by the pilot, use a predeclared holdout for final validation. Keep warm and fresh measurements identifiable with their warmup and invalidation costs.
Evidence and review decisions
- Correctness and recovery. Exercise duplicate or stale activation, a controller interruption after the commit decision, a missing rank acknowledgement, collective or rollback failure, cache contamination, and OOM. In an A1 → B2 → A3 test, an A1 sample arriving after A3 is ready must be rejected despite identical SHA and artifact. Repeat across controller recovery. Use a real accelerator to verify the active code and unchanged weight residency, plus a known-bad control that proves the evaluator catches an output error or an unexpected graph-to-eager fallback, as applicable. Confirm that a failed or ambiguous update stays blocked until verified rollback or fresh recovery. RSInfer team article, §5 · Issue review
- Speed and measurement fidelity. On the selected engine compare the existing fresh launch, an accelerated fresh launch with preloaded or local weights where available, and a resident-worker update. Match artifacts, workloads, warmup rules, seeds where applicable, and device placement. Record filesystem and weight cache conditions. Compare warm and fresh A/A, run A→B→A and B→A→B, and compare hot B with a fresh B. Predeclare quality tolerances, a performance equivalence band, and a meaningful speed threshold. Report p50 and p95 submission-to-valid-verdict time and phase timings for build, queue, drain, apply, graph or state rebuild, warmup, validation, and cleanup. Account for overlap, initial startup, idle leased device time, failed and retried attempts, and cold fallbacks. Report drift in memory and disagreement with fresh verdicts over repeated swaps.
- Campaign benefit. Run paired campaigns from the same starting revision under the same wall-clock, device, and agent budgets. Compare valid candidates evaluated, time to the best confirmed candidate, and the final cold-verified gain under the same quality gates. Report uncertainty and neutral outcomes as well as improvements.
Decision requested. Choose the first engine, model, and replacement interface, nominate a Harness owner and an engine owner, and freeze the cold reference protocol, quality and performance thresholds, budget, and stop conditions before the pilot. Use the results to decide whether to extend the adapter to multi-rank updates or parallel warm replicas.
Activity
Gaohan123 commentedon Nov 24, 2026
中文版
状态 提案。请 InferRSI 和推理引擎维护者共同确定试点范围和验收证据。
现状与动机
InferRSI 的托管
service_reuse模式允许同一个候选的预热、性能测试、质量检查和可选 profiling 共用一个受管服务。切换候选时会启动新服务。DeepSeek V4.1 Flash W8A8 优化任务明确要求基线、每个待评估 commit 和独立 final 各自启动新服务。已有的并行轮次机制负责协调候选执行和设备租约,可作为接入热引擎调度的基础。 Issue #467 · PR #480 · PR #521 · 任务 #602 · Loop 提速跟踪 #543 · PR #268一次小的调度或算子修改,也可能触发进程与加速器初始化、权重加载与切分、通信组初始化、计算图捕获和预热。这些开销与候选生成和验证共用同一份墙钟时间和设备预算。清理失败可能遗留进程或显存分配,不同次冷启动的预热和分配器状态也可能有差异。常驻引擎同样可能积累显存碎片,或保留失效的缓存、编译产物。需要对两条路径做对照测量,才能判断热更新对测量方差和通过率的影响。
目标。 对于支持的修改,让同一个引擎和未变更的模型权重跨候选保持常驻,替换声明过的实现,更快得到可信的筛选结果。验证 Agent 能否在固定预算内测更多有价值的候选,并取得更好的独立验收结果。长期方向是构建可持续优化的在线推理服务,具备隔离评估、分阶段发布和回滚能力。首期使用隔离的实验引擎与合成或冻结的评估流量。
RSInfer 的经验与局限
可借鉴的设计。 RSInfer 用微内核将长期存活的 State Unit 与可替换的 Logic Unit 分开。依赖规划器区分动态读取、按地址绑定和按值固化的依赖,再选择更新动作,包括排空请求、重建状态或重新捕获 CUDA Graph。尽量在暂停当前引擎前完成下一版本的准备和编译。快速上手演示了在线修改调度策略、用请求和日志证明新路径执行,以及原地回滚。带版本的变更回执和独立、受保护的晋升评估也值得借鉴。 RSInfer 团队原文,第 2–3 节 · 快速上手 · 变更协议
计时口径。 团队报告,DeepSeek-V4.1-Flash-1017 在 4×SM100 上运行约 6 小时,记录了 95 次在线更新操作、94 次提交生效,期间没有重启引擎或重载权重。5.18 秒是其中 20 次多卡代码更新的中位数。原文还单列了后台准备阶段的 CUDA 原生编译,报告用时 55–123 秒。节省的重启时间是对替代执行方式的估算。试点应分别统计编译、暂停接收请求和从候选提交到判定的耗时。InferRSI 在同等预算下的实际收益仍需实测。 RSInfer 团队原文,第 3.2、6.1 节 · 实验汇总
适用边界。 RSInfer 的兼容性判断和依赖分析依赖自身的 Unit 声明和运行时。快速上手说明,框架核心修改需要重启,代码更新通常要先排空请求。其 55 GB 权重重载用时 26.62 秒,与对照系统的权重更新 RPC 接近。vLLM 系列或其他后端需要各自的兼容性及状态失效规则。团队将 EP 节点弹性扩缩、PD 分离场景下的跨节点 KV 传输和多机 RDMA 扩展列为后续工作。当前对称内存集合通信中,单 rank 的致命设备故障可能需要整组重启。保留 KV 内存池的分配,与确认其中的数据对新候选仍然有效,是两个独立条件。 RSInfer 团队原文,第 6.1、7 节 · 快速上手 · 集合通信回滚故障记录
应纳入试点的真实故障。 RSInfer 的开发报告记录了显存碎片导致激活和回滚 OOM、模型重载后专家放置映射与权重失配,以及需要在 CUDA Graph 路径上才能查出的数值错误。其有界协议模型验证了给定假设下的安全性。控制器崩溃恢复、重连后的旧消息隔离、活性,以及 GPU、KV 与请求数据一致性均在形式化证据范围之外。InferRSI 要在选定后端验证这些边界,通过运行时探针或独立评估核实实际结果。 RSInfer 团队原文,第 5 节 · 专家映射故障及验证 · 形式化验证范围
其他参考。 vLLM 的权重传输提供在线暂停、更新和恢复流程。其 Preload 功能可让新 Worker 映射兼容的预加载权重,适用于无法原地替换的代码修改。ServerlessLLM 研究了快速 checkpoint 加载和数据本地性,可降低冷启动成本。SGLang 的原地 prefill/decode 角色切换展示了排空请求、保留权重、重建角色状态的做法,范围限定在两种预实现角色。LLM4LLM 在目标模型内验证替换算子,将分布式推理服务留作未来工作。CUDA Graph 的更新限制也说明了为何代码或绑定变化可能需要重新捕获。在具备条件时,将加速后的冷启动作为对照,测出保留 Worker 本身带来的收益。 vLLM 权重传输 · vLLM Preload · ServerlessLLM,OSDI 2024 · SGLang PR #28403 · LLM4LLM §3.3 · CUDA Graph API
试点方案与挑战
验收证据与待决策事项
待决策。 确定首个引擎、模型和可替换接口,分别指定 Harness 和引擎负责人。试点前冻结冷启动对照协议、质量与性能阈值、预算和停止条件。根据结果决定是否扩展到多 rank 热更新或并行热副本。
zengchuang-hw commentedon Nov 24, 2026
NO PASS
dot, acting for @zengchuang-hw.
仅就「试点能否开跑」给结论。支持独占设备、单引擎单活实例做热筛选,独立冷启动继续负责正式判定;这补充 #543 的迭代提速,不替代 #249 的租约机制,也不进入生产流量。
开跑前先冻结一个引擎/模型/允许替换的接口、Harness 和引擎两位负责人,以及冷启动对照、质量和性能容差、预算与停止条件。还有一条应写成可执行验收:同一个 SHA 和产物摘要不等于同一次激活。 引擎为每次激活签发不会重用的标识,绑定服务实例、引擎 epoch、设备租约及各 rank 的就绪确认;每份样本须证明准入和完成都属于该回执,不能由采集端用接收时的“当前候选”补标。测试
A1 → B2 → A3:A3 就绪后迟到的 A1 样本即使 SHA/摘要相同也必须被排除;恢复控制器后重复此测试,并验证无法确认代际时隔离该服务、回到独立冷启动。已静态核对 RFC、#543 和当前 Harness 尝试身份/回放契约及 service-reuse 夹具。未运行设备、测试或 CI;不把外部系统的实验结果当成本仓验证。
Dong1017 commentedon Nov 24, 2026
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).
Pilot scope is acceptable as design, but it is not startable: owners, engine/model/interface, cold reference, thresholds, budget and stop conditions are all still unnamed or unfrozen.
Accepted as pilot scope (design only, no authorization): one engine, one model, one exclusively leased device group, one allowlisted scheduler hook, one active generation per engine, warm results only ranking candidates while the formal verdict stays on a fresh service with its evaluator and workload outside the candidate's editable paths. The 16:17Z review's activation-identity clause is in the body now.
Blocking before freeze: the Harness owner and the engine owner; the engine/model/interface pick; a device budget separate from #602 — its 910C node and 24h window are not yet authorized, so the pilot must not share that lease; a predeclared speed threshold; stop conditions.
Gaps: the fault list has no expected outcome per fault; no warm-vs-cold disagreement rule; no receipt schema or archive path; graph capture under
FULL_DECODE_ONLYwith sizes 24,48 is unmentioned, so state whether captured regions are outside the replacement class.Default if nobody objects here: vLLM-Ascend 910C / DeepSeek V4.1 Flash W8A8 with one scheduler hook, cold reference from a fresh A/A on the pilot's own lease using #602's metric definitions, not its retained samples.
Next: the two owners are claimed here, then the freeze, then a go/no-go on the pilot.
Details
Read: #651 body and both comments, #602 body and all 20 comments, #543 body and comments,
decisions.md. Nothing was executed; I did not open the Harness source, #249/#467/#480/#521 or the RSInfer links, so no code or device claim below is verified here.Prior review is folded in, keep it that way. zengchuang-hw's 16:17Z NO PASS (7137418848) asked for activation identity distinct from artifact identity; the 16:23Z body edit now carries the non-reusable per-activation ID bound to service instance, engine epoch, lease and per-rank readiness, the A1→B2→A3 stale-sample rejection, repetition across controller recovery, and quarantine→cold start when the generation cannot be confirmed. Do not re-raise it. What is still missing is that it becomes an acceptance line with an expected verdict rather than prose.
Fault → outcome table. The evidence section names faults but not what each must produce. Suggested rows, each with injection method, observable and verdict: duplicate or stale activation → abort, sample not admitted; controller interruption after commit → quarantine, cold start, blocked admission; missing rank acknowledgement → same; collective or rollback failure → blocked until independently verified rollback; cache contamination → affected sample excluded; OOM during activation → abort plus verified teardown. Without expected outcomes, "exercise X" is not checkable.
Speed comparison needs the right baseline. Make the accelerated fresh launch (preloaded or local weights) the primary comparison and the naive fresh launch a secondary one. Otherwise the measured delta mixes worker retention with weight-load savings. #602's own A/A showed per-launch spread of 0.194% / 0.943% / 2.482% on this class of measurement, so the pilot's "meaningful threshold" has to be set above an A/A spread measured on the pilot's own lease, not borrowed.
Warm-vs-cold disagreement. The body says to report it but not what it does. Propose: a warm PASS may promote a candidate to cold confirmation; a warm FAIL may not be the sole rejection unless the receipt is explicitly labelled screen-only; any promoted candidate where warm and cold disagree invalidates the warm path for that campaign. Pick one and freeze it.
Budget and stop conditions. #602's arithmetic shows the 24h window does not fit 20 rounds (nine full 120-minute rounds, tenth over by 40.16 minutes), and a hot-update pilot adds build, drain, apply and recapture phases per activation. Budget those phases separately from campaign rounds and state the stopping rule — for example any unverified rollback, any unconfirmed generation, or two consecutive ambiguous updates.
Neutral outcome is a valid result. The body asks whether to extend to multi-rank or parallel warm replicas. Predeclare that "no benefit under equal budget" closes the pilot as a legitimate finding, so the design is not steered toward a positive answer.