Repository navigation
Commit f8eceff
authored
Fix infx bugs and speed up matrix tooling / 修复 infx 缺陷并加速矩阵工具 (#4438)
* fix(agentic): publish the Dynamo frontend cache hit rate as the overall rate
The Dynamo-vLLM adapter fills the overall cache hit rate when vLLM prefix metrics are absent, but it wrote only the discarded flat field, so the published nested value stayed null. It also chose with `or`, which replaced a measured 0% frontend hit rate with the router gauge. Dynamo-vLLM runs without vLLM prefix-cache metrics now publish the frontend rate, including 0.0, and fall back to the router shared rate only when the frontend counters are missing.
中文:当缺少 vLLM 前缀缓存指标时,Dynamo-vLLM 适配器会补填整体缓存命中率,但它只写入了被丢弃的扁平字段,因此发布的嵌套值始终为 null。它还用 `or` 选择取值,导致实测为 0% 的前端命中率被路由器指标替换。现在,缺少 vLLM 前缀缓存指标的 Dynamo-vLLM 运行会发布前端命中率(包括 0.0),只有在前端计数器缺失时才回退到路由器共享命中率。
* fix(agentic): exclude warmup and failed requests from the workload summary
The workload distribution summary read every row of profile_export.jsonl, while the AgentX aggregate drops warmup rows and errored requests. A run with warmup or failed requests therefore reported a larger request count and different ISL and OSL statistics than its aggregate. The summary now uses the aggregate's loader, so only runs that contain warmup or errored rows change, and their percentile definition is unchanged.
中文:工作负载分布摘要会读取 profile_export.jsonl 中的每一行,而 AgentX 聚合结果会丢弃预热行和出错的请求。因此,包含预热或失败请求的运行所报告的请求数以及 ISL 和 OSL 统计值会与其聚合结果不一致。现在摘要改用聚合结果的加载函数,只有包含预热行或出错行的运行会发生变化,百分位数的定义保持不变。
* fix(agentic): report non-object profile JSON as invalid power artifacts
The AgentX power window builder maps unreadable profile artifacts to `profile_artifacts_invalid`, but a top-level JSON aggregate that is not an object, or a JSONL row that is not an object, raised AttributeError instead. The `--write-multinode-window completed` command then crashed with exit 1 even when power was optional. Only those malformed artifacts change behavior, and they now return the invalid-artifacts reason like other unreadable profiles.
中文:AgentX 功耗窗口构建器会把无法读取的性能剖析产物映射为 `profile_artifacts_invalid`,但当顶层 JSON 聚合结果不是对象,或 JSONL 中某一行不是对象时,它会抛出 AttributeError。这样,即使功耗是可选项,`--write-multinode-window completed` 命令也会崩溃并以退出码 1 结束。只有这类格式错误的产物行为会改变,现在它们会像其他无法读取的剖析产物一样返回无效产物原因。
* fix(power): record a non-object aggregate as unwritable instead of crashing
Multinode power validation catches ValueError from patching the aggregate and records `aggregate_result_unwritable` in the sidecar, but a JSON list or scalar aggregate raised TypeError or AttributeError. The traceback escaped before the validation sidecar was written, and the run failed even when power was optional. Only non-object aggregates change behavior, and they now raise ValueError, leave the file untouched and produce an invalid sidecar. The existing non-object test pinned the old TypeError and AttributeError types, so it now expects ValueError while still checking that the file is not overwritten.
中文:多节点功耗校验会捕获修补聚合结果时抛出的 ValueError,并在旁车文件中记录 `aggregate_result_unwritable`,但当聚合结果是 JSON 列表或标量时会抛出 TypeError 或 AttributeError。该回溯在写入校验旁车文件之前就已抛出,即使功耗是可选项,运行也会失败。只有非对象的聚合结果行为会改变,现在它们会抛出 ValueError,保持文件不变,并生成无效的旁车文件。原有的非对象测试固定了旧的 TypeError 和 AttributeError 类型,因此现在改为期望 ValueError,同时仍检查文件未被覆盖。
* fix(results): ignore raw agentic dirs of superseded run attempts
When an agentic point was rerun at a later run attempt, the earlier attempt's point file was dropped as superseded but its raw agentic_ artifact directory still downloaded. Reusable sweep validation then reported that directory as unexpected and failed. Raw directories whose point results were all superseded by a later attempt are now ignored, and every other raw directory check is unchanged.
中文:当某个 agentic 测试点在后续的 run attempt 中重跑时,较早 attempt 的结果文件会被视为已被取代而丢弃,但它的原始 agentic_ 产物目录仍会被下载。可复用 sweep 校验因此把该目录报告为意外目录并失败。现在,若某原始目录对应的测试点结果全部被后续 attempt 取代,则忽略该目录,其他原始目录的检查保持不变。
* perf(results): parse job event times once when reconciling records
Reconciling job event records with the run's job listing parsed the event start and the job start and end timestamps again for every event and job pair. A sweep with 1500 jobs and 1500 records that lack a job id made about 3.4 million timestamp parses and now makes 6000. The matching rule is unchanged and the written records are byte-identical.
中文:在将作业事件记录与运行的作业列表进行对账时,原代码会对每一对事件与作业重复解析事件开始时间以及作业的开始和结束时间。对于包含 1500 个作业和 1500 条缺少 job id 的记录的 sweep,时间戳解析次数从约 340 万次降至 6000 次。匹配规则保持不变,写出的记录逐字节一致。
* fix(results): compare eval framework and precision case-insensitively
The eval collector lowercases framework and precision in aggregate rows, but the eval identity built from a raw meta_env.json kept their original case. A raw eval whose metadata said FP4 or VLLM was then reported both as missing from and unexpected in the aggregate. The identity now lowercases string framework and precision values, so only mixed-case inputs change.
中文:评测收集器会把聚合行中的 framework 和 precision 转为小写,但根据原始 meta_env.json 构建的评测标识保留了原始大小写。因此,元数据写为 FP4 或 VLLM 的原始评测会同时被报告为聚合结果中缺失和多余。现在该标识会把字符串类型的 framework 和 precision 转为小写,只有含大写字母的输入行为发生变化。
* fix(results): include spec decoding in single-node agentic identities
The single-node agentic identity left out spec_decoding and disagg, while the multinode identity and the fixed-sequence identity include them. Two single-node points that differ only in speculative decoding therefore collided, so a later run attempt of one dropped the other as superseded and validation could report false duplicates. Single-node agentic identities now carry both fields, which changes only points that differ in them.
中文:单节点 agentic 标识遗漏了 spec_decoding 和 disagg,而多节点标识和固定序列标识都包含这两个字段。因此,仅在推测解码上不同的两个单节点测试点会发生标识冲突,其中一个的后续 run attempt 会把另一个当作已被取代而丢弃,校验也可能报告虚假的重复项。现在单节点 agentic 标识包含这两个字段,只有在这两个字段上不同的测试点行为发生变化。
* fix(evals): fail non-finite and boolean eval scores
validate_scores compared each score with `val < min_score`, which is false for NaN, so a result file with a NaN score printed PASS and exited 0. Infinite and boolean values also passed. Scores that are NaN, infinite or a JSON boolean now print a FAIL line and fail the run, while finite numeric scores are thresholded as before.
中文:validate_scores 用 `val < min_score` 比较分数,而 NaN 的比较结果为假,因此分数为 NaN 的结果文件会打印 PASS 并以 0 退出。无穷大和布尔值同样会通过。现在 NaN、无穷大或 JSON 布尔值分数会打印 FAIL 行并使运行失败,有限数值分数仍按原有阈值检查。
* fix(evals): fail validation when the thresholds file cannot be loaded
When the thresholds file was missing, unreadable or invalid, validate_scores printed a WARN and kept going with no configured thresholds. Every task then used the 0.85 --min-score fallback instead of its stricter configured minimum, so a gsm8k score of 0.87 passed. A thresholds load failure now prints a FAIL line and exits 1. Runs with a loadable thresholds file, or with no thresholds file at all, behave as before.
中文:当阈值文件缺失、不可读或无效时,validate_scores 只打印 WARN 并在没有任何阈值配置的情况下继续执行。于是每个任务都使用 0.85 的 --min-score 兜底值,而不是更严格的配置最小值,导致 0.87 的 gsm8k 分数也能通过。现在阈值加载失败会打印 FAIL 行并以 1 退出。阈值文件可正常加载或根本不存在阈值文件的运行,行为保持不变。
* fix(evals): treat empty threshold sections as empty and reject non-mappings
A thresholds YAML with an empty `models:` or `default:` key loads that key as None, and validate_scores then crashed with a TypeError or AttributeError traceback instead of validating. An empty section is now treated as an empty mapping, so the other section still applies. A section that is neither empty nor a mapping, such as a list, is reported as a FAIL thresholds load error.
中文:阈值 YAML 中若 `models:` 或 `default:` 键为空,加载结果为 None,validate_scores 随后会抛出 TypeError 或 AttributeError 回溯而不是进行校验。现在空的配置段被视为空映射,另一个配置段仍然生效。既非空也不是映射的配置段(例如列表)会被报告为 FAIL 的阈值加载错误。
* fix(evals): report malformed result files as failures and keep checking
A truncated results*.json, a top-level value that is not an object, or a null "results" field made validate_scores crash with a traceback. The crash printed no FAIL line and skipped every remaining result file. Each such file now gets a FAIL line naming it, the run exits 1, and the remaining files are still thresholded. Well-formed result files are unaffected.
中文:截断的 results*.json、顶层不是对象的值,或值为 null 的 "results" 字段,都会让 validate_scores 抛出回溯而崩溃。崩溃时不会打印 FAIL 行,并跳过其余所有结果文件。现在每个此类文件都会得到一条注明文件名的 FAIL 行,运行以 1 退出,其余文件仍会进行阈值检查。格式正确的结果文件不受影响。
* fix(evals): fail each result file that contributes no checked metric
validate_scores counted thresholded metrics with one global counter. In a batched eval, a concurrency whose result file had no matching score metric was silently ignored as long as another file contributed one. Every result file that yields no checked metric now gets a FAIL line naming it, and the run exits 1. Runs where every file contributes at least one checked metric are unchanged.
中文:validate_scores 用一个全局计数器统计已做阈值检查的指标。在批量评测中,只要另一个文件提供了匹配指标,某个并发度的结果文件即使没有任何匹配的分数指标也会被静默忽略。现在凡是没有产生任何已检查指标的结果文件,都会得到一条注明文件名的 FAIL 行,运行以 1 退出。每个文件都至少贡献一个已检查指标的运行保持不变。
* fix(evals): split MiniMax native results on newlines only
The pinned MiniMax verifier writes results.jsonl rows with ensure_ascii=False, so model text containing U+2028, U+2029 or U+0085 lands in the file unescaped. str.splitlines() treats those characters as line breaks, so a valid 102-row full run, or the one-row smoke run, was rejected as having the wrong row count. Rows are now split on "\n" only. Files without those characters produce the same rows as before.
中文:固定版本的 MiniMax 验证器以 ensure_ascii=False 写入 results.jsonl 的各行,因此包含 U+2028、U+2029 或 U+0085 的模型文本会以未转义形式写入文件。str.splitlines() 会把这些字符当作换行,导致有效的 102 行完整运行或单行冒烟运行因行数不符而被拒绝。现在只按 "\n" 拆分行。不含这些字符的文件得到的行与之前相同。
* fix(evals): retry a MiniMax source download whose SHA256 does not match
_fetch_source retried network errors, but it checked the pinned SHA256 only after leaving the retry loop. http.client returns a short body without raising when a sized read loses its connection, so a truncated download failed the run on the first attempt. The digest check now runs inside the retry loop. A mismatched download is retried like any other transient failure, and a persistent mismatch fails with the existing "after N attempts" error.
中文:_fetch_source 会对网络错误进行重试,但它只在离开重试循环之后才校验固定的 SHA256。带长度的读取在连接中断时,http.client 会返回不完整的内容而不抛异常,因此一次被截断的下载会在第一次尝试时就让运行失败。现在摘要校验在重试循环内进行。哈希不匹配的下载会像其他瞬时故障一样重试,持续不匹配则以现有的 "after N attempts" 错误失败。
* fix(evals): retry a Kimi verifier archive download that was cut short
The archive download loop retried HTTP and connection errors, but it compared the SHA256 only after the loop. A body that ended early without an error, which http.client allows for sized reads, failed the run on the first attempt. A chunked body that ended early raised IncompleteRead, which also skipped the retry. A digest mismatch and IncompleteRead are now retried within the existing three attempts. A mismatch on the last attempt still fails with the existing SHA256 mismatch error.
中文:归档下载循环会对 HTTP 和连接错误进行重试,但只在循环结束后才比较 SHA256。若响应体在没有报错的情况下提前结束(http.client 对带长度的读取允许这种情况),运行会在第一次尝试时就失败。提前结束的分块响应会抛出 IncompleteRead,同样跳过了重试。现在摘要不匹配和 IncompleteRead 都会在现有的三次尝试内重试。最后一次尝试仍不匹配时,依旧以现有的 SHA256 不匹配错误失败。
* fix(evals): compare the Kimi archive SHA256 case-insensitively
The archive fetcher accepts an expected SHA256 in upper or lower case, but it compared that value with the lowercase hexdigest. An uppercase pin therefore always failed as a mismatch, even for the correct archive. The expected digest is now lowercased after validation. Lowercase pins, including the current vendor pin, behave as before.
中文:归档获取脚本接受大写或小写的预期 SHA256,却把它与小写的 hexdigest 比较。因此大写的固定值即使对应正确的归档也总会被判为不匹配。现在预期摘要在校验后统一转为小写。小写固定值(包括当前的 vendor 固定值)行为不变。
* fix(evals): reject non-numeric score thresholds
load_config accepted any threshold value. A NaN minimum made `val < min_score` false for every score, so every task passed. A string minimum or an empty per-model section crashed validate_scores with a TypeError traceback. Each threshold must now be a finite number that is not a boolean, otherwise the run prints a FAIL thresholds load error and exits 1. An empty per-model section is treated as empty, so the default thresholds apply to that model.
中文:load_config 此前接受任意阈值。NaN 最小值会使 `val < min_score` 对所有分数都为假,因而所有任务都会通过。字符串最小值或空的单模型配置段会让 validate_scores 抛出 TypeError 回溯而崩溃。现在每个阈值都必须是有限且非布尔值的数字,否则运行会打印 FAIL 阈值加载错误并以 1 退出。空的单模型配置段被视为空,该模型因此使用默认阈值。
* fix(workflows): keep same-named checks from different workflows apart in merge gating
wait_for_checks deduplicated check runs by name only, so a failed job named like a passing job in another workflow was dropped and the merge went ahead. Check runs from GitHub Actions are now keyed on name, workflow and triggering event, matching gh pr checks, so re-runs of one workflow still supersede each other. Only commits whose check runs share a name across different workflows or events change behavior.
中文:wait_for_checks 过去只按名称对 check run 去重,因此当另一个工作流中存在同名且已通过的作业时,失败的作业会被丢弃,合并照常进行。现在来自 GitHub Actions 的 check run 按名称、工作流和触发事件区分,与 gh pr checks 一致,同一工作流的重跑仍会覆盖旧结果。只有不同工作流或事件之间存在同名 check run 的提交行为会改变。
* fix(workflows): drop only main's new entries when resolving changelog conflicts
resolve_conflict_bytes skipped any PR entry whose content matched an entry anywhere in main, so a PR that repeats a historical entry's keys and description lost its entry or failed with "no changelog contribution remaining". It now compares PR entries only with the entries main appended after the merge base. Only PR entries that duplicate a pre-merge-base entry change behavior, and they are now kept.
中文:resolve_conflict_bytes 过去会跳过与 main 中任意条目内容相同的 PR 条目,因此当 PR 重复某个历史条目的 config-keys 和描述时,该条目会丢失,或报错 "no changelog contribution remaining"。现在只与 main 在合并基点之后追加的条目比较。只有与合并基点之前条目重复的 PR 条目行为会改变,它们现在会被保留。
* fix(github): read the HTTP status when gh prints a hint after it
APIError only recognised "(HTTP nnn)" at the very end of gh's stderr, but gh prints scope and SSO hints on the following lines, so status became None and status-based fallbacks such as the 404 handling in signoff_publish re-raised instead. The status is now taken from the end of any stderr line. Only gh failures with trailing hint lines change behavior, and their status is now set.
中文:APIError 过去只识别 gh stderr 最末尾的 "(HTTP nnn)",但 gh 会在其后的行打印权限范围或 SSO 提示,导致 status 为 None,signoff_publish 中针对 404 的回退等基于状态码的处理会直接重新抛出异常。现在从 stderr 任意一行的行尾读取状态码。只有带尾随提示行的 gh 失败行为会改变,它们的 status 现在会被正确设置。
* fix(workflows): stop retrying permission-denied 403s while waiting for checks
Check polling treated every HTTP 403 as a transient rate limit, so a plain permission denial was retried until the check timeout, 900 seconds by default, instead of failing at once. A 403 is now retried only when PyGithub classifies it as a rate-limit response. Only non-rate-limit 403 errors during check polling change behavior, and they now raise immediately.
中文:检查轮询过去把所有 HTTP 403 都当作暂时性限流,因此单纯的权限拒绝会一直重试到检查超时(默认 900 秒),而不是立即失败。现在只有 PyGithub 判定为限流响应的 403 才会重试。只有检查轮询期间的非限流 403 错误行为会改变,现在会立即抛出。
* fix(workflows): treat a queued check re-run as newer than the run it replaces
Check polling ordered re-runs by started_at with a missing value sorting first, so a queued re-run that had not started yet lost to the completed run it replaced and an old failure ended the merge. Both wait_for_check and wait_for_checks now rank a run without started_at as the newest and break ties by check run id. Only checks that have a queued, unstarted re-run change behavior, and they are now awaited.
中文:检查轮询过去按 started_at 排序重跑,缺失值排在最前,因此尚未开始的排队重跑会输给它所替代的已完成运行,旧的失败结果会终止合并。现在 wait_for_check 和 wait_for_checks 都把没有 started_at 的运行视为最新,并以 check run id 作为并列时的判定依据。只有存在排队且未开始重跑的检查行为会改变,现在会等待其完成。
* perf(yaml): parse repository YAML with libyaml
Every plan, generate and validation run parsed the master configs and
hundreds of srt recipes with PyYAML's pure-Python loader, which was 90% of
infx.matrix.plan's time. infx.yamlio parses with PyYAML's bundled libyaml
loader and returns the same objects. Documents where libyaml and PyYAML
disagree go to PyYAML: directives, tabs, byte order marks, line breaks
other than "\n", comments glued to block scalar headers, tags, '?' inside
flow plain scalars, nesting deeper than 50 collection tokens and
characters PyYAML's reader refuses, as do all documents libyaml rejects,
so errors and their marks are unchanged. lab/yaml_parity.py found no
difference over every YAML blob in git history plus 420,525 seeded
mutations, for SafeLoader and both duplicate-key loaders. INFX_PURE_YAML=1
restores the pure loader. Plan for f817514: 472.7M to about 46M bytecode
instructions.
中文:plan、generate 和校验每次都用 PyYAML 的纯 Python 加载器解析主配置和数百个 srt
配方,占 infx.matrix.plan 90% 的时间。infx.yamlio 改用 PyYAML 自带的 libyaml 加载器
解析,返回相同的对象。libyaml 与 PyYAML 结果可能不同的文档(指令、制表符、字节序标记、
"\n" 以外的换行符、紧贴块标量头的注释、标签、流式普通标量中的 '?'、超过 50 层集合标记的
嵌套、PyYAML 读取器拒绝的字符)以及 libyaml 拒绝的文档都交给 PyYAML 解析,因此错误及
其位置保持不变。lab/yaml_parity.py 在 git 历史中的全部 YAML 内容和 420,525 个随机变体上,
对 SafeLoader 和两个拒绝重复键的加载器均未发现差异。设置 INFX_PURE_YAML=1 可恢复纯
Python 加载器。f817514d3 的 plan 字节码指令数从 4.727 亿降至约 4600 万。
* fix(datasets): clear stale stage outputs before rebuilding a weka dataset
Re-running build_weka_hf_dataset in an existing --work-dir kept every session file from earlier runs in proxy/, per_trace/, per_trace_isl/ and per_trace_256k/. Those leftovers were then concatenated into traces.jsonl, counted in the stats and uploaded with the new build. Each stage now empties its own directory under the work dir before writing. Builds in a fresh work dir and runs that reuse cached stages with --skip-sample or --skip-convert are unchanged.
中文:在已有的 --work-dir 中重新运行 build_weka_hf_dataset 时,proxy/、per_trace/、per_trace_isl/ 和 per_trace_256k/ 中保留了之前运行的所有会话文件。这些残留文件随后被合并进 traces.jsonl、计入统计并随新构建一起上传。现在每个阶段在写入前会先清空它在工作目录下自己的目录。在全新工作目录中构建,以及通过 --skip-sample 或 --skip-convert 复用缓存阶段的运行,行为不变。
* fix(datasets): stop echoing the proxy DB URL in the build log
build_weka_hf_dataset appended --db-url to the sampler command line, and the build prints every command before running it, so the Postgres password reached stdout, CI logs and the process list. main already exports the URL as AGENTIC_PROXY_DB_URL, which the sampler reads, so the command-line copy is dropped. Only runs that pass --db-url change, and the sampler still connects to the same database.
中文:build_weka_hf_dataset 会把 --db-url 附加到采样器命令行上,而构建脚本会在运行前打印每条命令,因此 Postgres 密码会出现在标准输出、CI 日志和进程列表中。main 已经把该 URL 导出为采样器读取的 AGENTIC_PROXY_DB_URL,所以去掉了命令行中的这份副本。只有传入 --db-url 的运行受影响,采样器仍然连接同一个数据库。
* fix(datasets): let weka dataset builds use random sampling
build_weka_hf_dataset offered --sampling random but had no way to pass the seed that the sampler requires in that mode, so every random build exited with "--sampling random requires --seed". The build now accepts --seed and forwards it to the sampler and to the README's source command. Builds without --seed send the same sampler arguments as before.
中文:build_weka_hf_dataset 提供了 --sampling random 选项,却无法传入采样器在该模式下必需的种子,因此所有随机采样构建都会以 "--sampling random requires --seed" 退出。现在构建脚本接受 --seed,并将其转发给采样器以及 README 中的源命令。不带 --seed 的构建传给采样器的参数与之前相同。
* fix(datasets): make --limit pick the same sessions on every run
The proxy sampler sorted candidates only by request count (top) or last activity (recent), and the candidate query has no ORDER BY. When sessions tied at the cut-off, which of them fell inside --limit depended on the order Postgres happened to return. Ties are now broken by session id, so the same filters always select the same sessions. Only runs whose limit boundary falls inside a tie, and the dump order of tied sessions, change.
中文:代理采样器只按请求数(top)或最后活动时间(recent)对候选会话排序,而候选查询没有 ORDER BY。当多个会话在截断位置并列时,哪些会话落入 --limit 取决于 Postgres 恰好返回的顺序。现在并列时按会话 ID 排序,因此相同的筛选条件总会选出相同的会话。只有截断边界落在并列区间内的运行,以及并列会话的导出顺序会改变。
* fix(datasets): reject a non-positive sampler --limit
The proxy sampler sliced its sorted candidates with rows[:limit], so --limit -1 silently dropped the last session instead of capping the count, and --limit 0 dumped nothing. parse_args now rejects any --limit below 1 with a usage error. Positive limits and runs without --limit are unchanged.
中文:代理采样器用 rows[:limit] 截取排序后的候选会话,因此 --limit -1 会悄悄丢掉最后一个会话而不是限制数量,--limit 0 则什么都不导出。现在 parse_args 会以用法错误拒绝任何小于 1 的 --limit。正数限制以及不带 --limit 的运行不受影响。
* fix(datasets): keep log histograms valid for tiny or single-valued metrics
The dataset plot scripts floored the lowest log bin edge at 1e-3, so a metric whose values were all below a millisecond produced decreasing bin edges. A metric with a single distinct value made np.geomspace round to non-monotonic edges. Both cases crashed the plot with "bins must increase monotonically", and the build then published a dataset card without plots. The floor now applies only when the largest value is above it, and a single value gets a range centred on it. Metrics with spread above 1e-3 keep the same bins.
中文:数据集绘图脚本把对数直方图最低的分箱边界下限设为 1e-3,因此当某个指标的所有值都小于一毫秒时,分箱边界会递减。只有一个不同取值的指标会让 np.geomspace 舍入出非单调的边界。这两种情况都会使绘图以 "bins must increase monotonically" 崩溃,构建随后发布的数据集卡片就没有图。现在只有在最大值高于该下限时才应用下限,单一取值则使用以它为中心的范围。取值分布在 1e-3 以上的指标分箱不变。
* fix(srt-slurm): record no golden AL when vLLM verification is adaptive
build_overrides leaves vLLM roles with enable_adaptive_verification on real verification, but acceptance_length still looked up and returned the golden curve value. The launcher then recorded that unused value as golden_acceptance_length, and a draft length without a curve cell failed the submission even though nothing would be simulated. acceptance_length now returns None when every speculative vLLM role uses adaptive verification. Recipes where any speculative role still gets synthetic acceptance are unchanged.
中文:build_overrides 会让启用 enable_adaptive_verification 的 vLLM 角色保持真实验证,但 acceptance_length 仍然查找并返回黄金曲线的值。启动器随后把这个未被使用的值记录为 golden_acceptance_length;如果草稿长度在曲线中没有对应条目,即使不会进行任何模拟,提交也会失败。现在当所有投机 vLLM 角色都使用自适应验证时,acceptance_length 返回 None。只要还有投机角色使用合成接受,相应方案的行为就不变。
* fix(srt-slurm): report a variant with a missing field instead of aborting selection
select_recipe collected only ValueError from binding and validating each variant. A variant missing a field read by key, such as an SGLang role without tensor-parallel-size or a vLLM speculative-config without method, raised a bare KeyError that aborted the whole bundle and printed only the field name. Such variants are now collected like other mismatches with the variant name in the message. Bundles where every variant is well formed select the same recipe as before.
中文:select_recipe 在绑定和校验每个变体时只收集 ValueError。如果某个变体缺少按键读取的字段,例如 SGLang 角色没有 tensor-parallel-size,或 vLLM 的 speculative-config 没有 method,就会抛出裸 KeyError,导致整个 bundle 的选择中止,并且只打印字段名。现在这类变体会像其他不匹配一样被收集,错误信息中带有变体名称。所有变体都格式正确的 bundle 选出的方案与之前相同。
* fix(srt-slurm): refuse a prepare output that would overwrite the bound recipe
single_node prepare writes the bound recipe as recipe.yaml next to its output file and then writes the NUL-separated srtctl arguments to the output. When the output itself was named recipe.yaml, the arguments replaced the bound recipe and srtctl was pointed at a file that was no longer YAML. prepare now exits with a usage error for that name before writing anything. Every other output name behaves as before.
中文:single_node prepare 会把绑定后的方案写成输出文件旁边的 recipe.yaml,然后把以 NUL 分隔的 srtctl 参数写入输出文件。当输出文件本身也叫 recipe.yaml 时,参数会覆盖绑定后的方案,srtctl 读到的文件也就不再是 YAML。现在对这个文件名,prepare 会在写入任何内容之前以用法错误退出。其他输出文件名的行为不变。
* fix(golden-al): reject curve names that leave the golden directory
load_curve joined the requested name onto the golden directory without checking it, so "python -m infx.golden_al_distribution show ../x" read and printed any YAML file outside that directory. curve_name already restricted curve identities to lowercase letters, digits, dot, dash and underscore. load_curve now applies the same check. Every committed curve name already passes it.
中文:load_curve 在把请求的名称拼接到黄金曲线目录上时没有做检查,因此 "python -m infx.golden_al_distribution show ../x" 会读取并打印该目录之外的任意 YAML 文件。curve_name 本来就把曲线标识限制为小写字母、数字、点、连字符和下划线。现在 load_curve 也使用同样的检查。所有已提交的曲线名称都能通过该检查。
* fix(matrix): compare rows without a recipe fingerprint one by one
When infx.matrix.changed could not fingerprint a row, it keyed every such point as (None, conc), so two unbindable rows of one config key at the same concurrency overwrote each other. A change to those rows between base and head then went unreported. Unfingerprintable rows are now keyed by their row fingerprint, so each one is counted and compared on its own. Rows with a recipe fingerprint keep their current keys.
中文:infx.matrix.changed 无法为某行计算指纹时,会把这些点统一记为 (None, conc),因此同一 config key 下并发数相同的两个无法绑定的行会相互覆盖,base 与 head 之间这些行的变化也就无法被报告。现在无法计算指纹的行改用行指纹作为键,每一行都会被单独计数和比较。已有 recipe 指纹的行键值保持不变。
* fix(matrix): stop --model-prefix from selecting longer model prefixes
full-sweep --model-prefix kept every config key that merely started with the given text, so --model-prefix dsv4 also swept the dsv41flash keys. Config keys begin with the model prefix followed by a dash, so the filter now requires that dash. Only keys whose model prefix extends the requested one drop out of the selection.
中文:full-sweep --model-prefix 会保留所有仅以给定文本开头的 config key,因此 --model-prefix dsv4 也会扫到 dsv41flash 的 key。config key 以模型前缀加一个短横线开头,所以过滤条件现在要求带上这个短横线。只有模型前缀是所请求前缀加长版本的 key 会被移出选择范围。
* fix(matrix): reject repeated concurrencies in conc-list
Master config validation only checked that conc-list values were positive, so a list such as [4, 8, 4] passed. A multi-node row then carried the repeated value into CONC_LIST, which the srt-slurm launcher rejects on the cluster, and a single-node entry emitted two identical rows with the same result file. Validation now rejects any conc-list with a repeated value. No current master config repeats a concurrency.
中文:master config 校验只检查 conc-list 的值是否为正数,所以像 [4, 8, 4] 这样的列表也能通过。多节点行会把重复值带进 CONC_LIST,而 srt-slurm 启动器会在集群上拒绝它;单节点条目则会生成两行完全相同、结果文件也相同的行。现在校验会拒绝任何含重复值的 conc-list。当前所有 master config 都没有重复的并发数。
* fix(matrix): reject a lone conc-start or conc-end next to conc-list
The check that forbids mixing conc-list with a range only fired when both conc-start and conc-end were set. An entry with conc-list plus only one bound passed validation, and the generator silently ignored that bound. Validation now rejects conc-list together with either bound. Entries that set both bounds, or a list alone, behave as before.
中文:禁止同时使用 conc-list 和范围的检查只在 conc-start 与 conc-end 都存在时才会触发。一个条目如果同时写了 conc-list 和其中一个边界,就能通过校验,而生成器会悄悄忽略这个边界。现在只要 conc-list 与任一边界同时出现,校验就会拒绝。只写两个边界或只写列表的条目行为不变。
* fix(matrix): require a positive tensor parallel size in master configs
Search-space entries and worker blocks accepted tp: 0 or a negative tp. A multi-node agentic DRAM-offload entry with tp: 0 then crashed plan generation with a ZeroDivisionError when it sized workers per node, and other entries produced rows that cannot be served. Validation now requires tp to be greater than 0 in single-node, agentic, aggregate and prefill or decode worker entries. Configs with a positive tp are unaffected.
中文:search-space 条目和 worker 块之前接受 tp: 0 或负数 tp。多节点 agentic DRAM offload 条目若 tp 为 0,在按节点计算 worker 规模时会以 ZeroDivisionError 中断计划生成,其他条目则会生成无法部署的行。现在单节点、agentic、聚合以及 prefill 或 decode worker 条目的校验都要求 tp 大于 0。tp 为正数的配置不受影响。
* fix(matrix): count recipe nodes when recipe sections are null
recipe_node_count crashed with AttributeError or TypeError when a recipe set services, infra, frontend, benchmark or a service placement to YAML null, when a role or its nodes was null, or when the recipe file was empty. Plan generation then aborted with a bare traceback that did not name the recipe. Null sections now count as absent, as the srt-slurm binder already treats them, and a null role, null nodes or an empty file raise a ValueError naming the recipe. Recipes without null values get the same node count as before.
中文:当 recipe 把 services、infra、frontend、benchmark 或某个 service 的 placement 设为 YAML null,或某个 role 及其 nodes 为 null,或 recipe 文件为空时,recipe_node_count 会抛出 AttributeError 或 TypeError,计划生成随之以不包含 recipe 名称的裸 traceback 中断。现在 null 的段落按缺省处理,与 srt-slurm binder 的现有做法一致;null 的 role、null 的 nodes 或空文件会抛出带有 recipe 名称的 ValueError。不含 null 值的 recipe 计算出的节点数与之前相同。
* fix(matrix): report a failing git diff when reading changelog additions
get_added_lines ran git diff with check=False and never looked at the exit status. When the diff failed, its empty output surfaced as "No additions found in the changelog file." and git's own error was dropped. A non-zero git diff exit now raises a RuntimeError that carries git's stderr. Successful diffs are parsed as before.
中文:get_added_lines 以 check=False 运行 git diff,且从不检查退出码。diff 失败时,空输出会显示为 "No additions found in the changelog file.",git 自身的错误信息则被丢弃。现在 git diff 以非零状态退出时会抛出包含 git stderr 的 RuntimeError。成功的 diff 仍按原方式解析。
* fix(matrix): parse changelog diff headers only before the first hunk
get_added_lines skipped every diff line that started with --- or +++, treating it as a file header. Deleting a changelog line that itself starts with -- (for example a YAML --- separator) therefore bypassed the append-only check, and an added line starting with ++ was dropped. Header lines are now skipped only before the first @@ hunk marker, so such deletions are rejected and such additions are kept. Diffs without lines like these parse as before.
中文:get_added_lines 会跳过所有以 --- 或 +++ 开头的 diff 行,把它们当成文件头。因此删除一行本身以 -- 开头的 changelog 内容(例如 YAML 的 --- 分隔符)可以绕过只允许追加的检查,而以 ++ 开头的新增行会被丢弃。现在只在第一个 @@ hunk 标记之前跳过文件头,这类删除会被拒绝,这类新增会被保留。不含此类行的 diff 解析结果不变。
* fix(klaud): skip unreadable ownership records instead of aborting recovery
Recovery read every owner's planner run and ownership artifact outside the per-candidate error handling. A family claim whose planner run was deleted, or an ownership artifact that failed to download or parse, raised out of recover and stopped reconciliation of every other candidate, the abandoned-work sweep and the blocked-families output. Such a family claim now keeps its family blocked and is reported as needing inspection, and such an artifact is skipped with a warning. Passes where every owner reads cleanly behave as before.
中文:恢复流程在逐个候选的错误处理之外读取每个所有者的规划运行和所有权构件。若某个配置族声明对应的规划运行已被删除,或某个所有权构件下载或解析失败,异常会直接抛出 recover,导致其他候选的收尾、遗弃工作清理以及被阻塞配置族的输出全部中止。现在这类配置族声明会继续阻塞其配置族并标记为需要检查,这类构件则被跳过并给出警告。所有所有者都能正常读取时,行为保持不变。
* fix(klaud): name baseline request-error notes by their concurrency row
The PR-body baseline table labels rows by bare concurrency when every point shares one shape, and its result and retirement notes then say c4. The request-error note appended the bare label instead, so it read "4: 2 request errors." under a table whose row is 4. Only baselines with the concurrency layout and a point with request errors change, and their note now reads "c4: 2 request errors." like the attempt tables do.
中文:当所有点形状相同时,PR 正文中的基线表按纯并发数标注各行,其结果和退役说明写作 c4。请求错误说明却直接使用了裸标签,于是显示为“4: 2 request errors.”。只有采用并发布局且存在请求错误的基线会变化,其说明现在与尝试表一致,写作“c4: 2 request errors.”。
* fix(klaud): fail source reads of a directory with a verification error
The contents API returns a list when the requested path is a directory, and file_at called .get on it. The resulting AttributeError escaped every Klaud error handler, so a candidate head whose recipe reference names a directory aborted the whole recovery pass and printed a traceback from check-final. file_at now raises its fixed "Source data unavailable or too large" error for any non-file response. File reads are unchanged.
中文:当请求路径是目录时,contents API 返回的是列表,而 file_at 直接对其调用 .get。由此产生的 AttributeError 会越过 Klaud 的所有错误处理,因此若候选提交中的 recipe 引用指向目录,整个恢复流程会中止,check-final 也会打印回溯信息。现在对任何非文件响应,file_at 都会抛出固定的“Source data unavailable or too large”错误。文件读取不受影响。
* fix(klaud): report a missing candidate PR instead of crashing
The report and check-final commands indexed the session's PR list directly. Run before the candidate PR exists, they raised an IndexError that no Klaud handler catches, so the agent saw a traceback instead of the fixed error line every other failure prints. Both now fail with "Candidate PR not found" and exit 1. Sessions with a PR are unchanged.
中文:report 和 check-final 命令直接按下标读取会话的 PR 列表。若在候选 PR 创建之前运行,它们会抛出 Klaud 任何处理器都不捕获的 IndexError,代理看到的是回溯信息,而不是其他失败都会输出的固定错误行。现在两者都会以“Candidate PR not found”失败并返回 1。已有 PR 的会话不受影响。
* fix(klaud): let finish continue when a run ends before its cancel
Finishing a failed or deferred candidate cancels each owned run that was still running when listed. A run that ended in between makes GitHub refuse the cancel, and that error failed the whole finish with "State unavailable" even though nothing was left to stop. When a cancel request fails, finish now reads the run again and continues only if it has ended. A cancel that fails while the run is still active still fails finish.
中文:结束失败或延期的候选时,会取消列出时仍在运行的每个自有运行。若某个运行在此期间已结束,GitHub 会拒绝取消请求,这个错误会让整个 finish 以“State unavailable”失败,尽管已无需停止任何内容。现在取消请求失败时,finish 会重新读取该运行,仅在其已结束时继续。若运行仍在进行而取消失败,finish 仍会失败。
* perf(klaud): reuse session listings until the next write or ownership check
A recovering or finishing session listed the same PRs, resume runs, owned runs, comments, branch refs and candidate jobs again on nearly every step. Each Session now keeps these listings until any GitHub write or its next ownership check, which still reads the parent run and resume runs fresh before every write. One candidate recovered through cleanup and finish in the test fakes went from 85 to 67 GitHub reads, with the same writes and summary. Nothing a write or ownership check would observe changes.
中文:恢复或结束中的会话几乎每一步都会重新列出相同的 PR、恢复运行、自有运行、评论、分支引用和候选作业。现在每个 Session 会保留这些列表,直到发生任何 GitHub 写入或下一次所有权检查,而该检查在每次写入前仍会重新读取父运行和恢复运行。在测试桩中,一个候选经过清理和结束的完整恢复流程,GitHub 读取次数从 85 次降至 67 次,写入和摘要保持不变。写入或所有权检查所能观察到的内容均未改变。
* perf(klaud): rule out failed jobs before reading timeout annotations
Deciding whether a cancelled final sweep was preempted read the annotations of each cancelled job, in job order, until it reached a failed one. A fail-fast sweep cancels every other job when one fails, so recovery made one annotations request per cancelled job before finding the failure. Failed and timed-out jobs are now checked first, and annotations are read only when none exist. A cancelled attempt with 50 cancelled jobs and one failure went from 50 annotation requests to 0, with the same verdict.
中文:判断已取消的最终 sweep 是否被抢占时,会按作业顺序读取每个已取消作业的注释,直到遇到失败的作业。fail-fast sweep 在某个作业失败后会取消其余所有作业,因此恢复流程在找到失败作业之前,会为每个已取消的作业发出一次注释请求。现在会先检查失败和超时的作业,仅在没有此类作业时才读取注释。一个包含 50 个已取消作业和 1 个失败作业的尝试,注释请求从 50 次降为 0 次,判定结果不变。
* perf(klaud): generate each candidate's base matrix once during selection
Selection built a candidate's canonical family matrix at its base inside resolve_baseline and then again to check for missing baseline points. Each build reads the repository tree, both config files, every referenced recipe and the shared recipe blocks through the contents API. select now builds it once and passes it to resolve_baseline, which drops one of the two builds per candidate, 10 GitHub reads for the test fixture family. Selections, preflights and deferral reasons are unchanged.
中文:选择阶段会在 resolve_baseline 中为候选在其基准提交上构建一次规范配置族矩阵,随后为检查缺失的基线点又构建一次。每次构建都会通过 contents API 读取仓库树、两个配置文件、所有引用的 recipe 以及共享 recipe 块。现在 select 只构建一次并将其传给 resolve_baseline,每个候选少一次构建,对测试夹具配置族而言即少 10 次 GitHub 读取。选择结果、预检记录和延期原因均保持不变。
* perf(klaud): project each producer's points once while resolving a baseline
resolve_baseline recomputed every historical point's public identity for each public row, and for each matched row it rescanned the whole current family to decide which historical points to add. Both results depend only on the producer head, so they are now computed once per head, the additions on the first matched row as before. A synthetic 80-row baseline went from 9,760 public_point calls to 280, and the frozen baseline JSON is byte-identical.
中文:resolve_baseline 对每一行公开数据都会重新计算所有历史点的公开标识,且对每个匹配行都会重新扫描整个当前配置族,以决定要加入哪些历史点。这两个结果只取决于生产者提交,因此现在每个提交只计算一次,新增点仍在首个匹配行时计算。一个包含 80 行的合成基线,public_point 调用从 9,760 次降至 280 次,冻结的基线 JSON 逐字节相同。
* perf(klaud): resolve the frozen baseline once per attempt report
Publishing a chunked attempt report looked up the frozen baseline again for the summary and for every 20-point chunk. Each lookup refreshes the PR and lists its comments when the baseline is not in the PR body. publish now looks it up once and reuses it, while every comment write still refreshes the PR first. A 45-point attempt in the test fakes went from 10 PR refreshes and 10 comment listings to 6 of each, with byte-identical comment bodies.
中文:发布分块的尝试报告时,摘要和每个 20 点分块都会重新查找冻结的基线。每次查找都会刷新 PR,且当基线不在 PR 正文中时还会列出其评论。现在 publish 只查找一次并复用结果,而每次写入评论前仍会先刷新 PR。在测试桩中,一个 45 点的尝试从 10 次 PR 刷新和 10 次评论列表降为各 6 次,评论正文逐字节相同。
* fix(klaud): keep sweeping abandoned work past a claim whose planner run is gone
The abandoned-work sweep read the planner run of every family claim, and a claim whose run was deleted raised out of the sweep. That skipped the remaining lease, PR and branch cleanup on every recovery pass and left the blocked-family list unfiltered. Such a claim is now kept and its candidate treated as possibly live, so its family stays blocked while the rest of the sweep runs. The recovery test's second candidate now gets an id derived from its family, as real candidate ids are, because its family is filtered by that prefix once the sweep runs.
中文:遗弃工作清理会读取每个配置族声明对应的规划运行,而若某个声明的运行已被删除,异常会直接抛出清理流程。这样每次恢复都会跳过剩余的租约、PR 和分支清理,被阻塞配置族列表也得不到过滤。现在这类声明会被保留,其候选视为可能仍在运行,因此其配置族保持阻塞,清理的其余部分照常进行。恢复测试中的第二个候选现在像真实候选一样使用由其配置族派生的 ID,因为清理运行后会按该前缀过滤其配置族。
* fix(launch): retry a failing squeue before treating a Slurm job as gone
A squeue that exits non-zero, such as a slurmctld socket timeout, read the same as a job squeue no longer lists. Cancelling then skipped scancel and left an srtctl-submitted job running, and log followers stopped early. squeue is now retried twice before a failure reads as gone, and cancel still scancels a job when squeue keeps failing. Only launches that see squeue exit non-zero change behavior.
中文:squeue 以非零状态退出(例如 slurmctld 套接字超时)时,会被当作作业已不在队列中。此时取消操作会跳过 scancel,导致 srtctl 提交的作业继续运行,日志跟踪也会提前结束。现在 squeue 失败后会重试两次才视为作业已结束;若 squeue 持续失败,取消操作仍会执行 scancel。只有遇到 squeue 非零退出的启动行为会改变。
* fix(launch): require INFERENCEX_RESULTS_PYTHON before an srt power point runs
An AgentX single-node point, or a multi-node point on an AgentX or adapter power lane, read INFERENCEX_RESULTS_PYTHON only after the benchmark finished. A missing value therefore wasted the whole GPU run and failed in collection. The launch now names the missing variable in the prepare stage, before any checkout or submission. Only non-eval-only launches on those paths without INFERENCEX_RESULTS_PYTHON change behavior.
中文:AgentX 单节点测试点,以及运行在 AgentX 或 adapter 功耗通道上的多节点测试点,只有在基准测试结束后才读取 INFERENCEX_RESULTS_PYTHON。若该变量缺失,整个 GPU 运行会被浪费,并在结果收集阶段失败。现在启动会在准备阶段、任何检出或提交之前指出缺失的变量。只有这些路径上未设置 INFERENCEX_RESULTS_PYTHON 的非仅评测启动行为会改变。
* fix(launch): keep a shared squash when this host cannot validate it
A submit-host import validates squashes with unsquashfs on the launching host. Without unsquashfs every squash read as invalid, so the import deleted a good shared squash and then failed to validate its own re-import, leaving no squash at all. The import now fails at once with a non-retriable error naming unsquashfs and leaves the existing file alone. Only submit-host imports on a host without unsquashfs change behavior.
中文:submit-host 导入会在启动主机上用 unsquashfs 校验 squash 文件。若主机没有 unsquashfs,所有 squash 都会被判为无效,导入会删除一个完好的共享 squash,随后又无法校验自己重新导入的文件,最终一个 squash 都不剩。现在导入会立即以不可重试的错误失败,错误信息指明 unsquashfs,并保留现有文件。只有在缺少 unsquashfs 的主机上进行的 submit-host 导入行为会改变。
* fix(launch): fail the uv install when its download fails
The uv installer ran as `curl ... | sh` without pipefail, so a failed download fed sh empty input and the step exited 0. The launch then ran a uv that did not exist and died with a FileNotFoundError traceback. The pipeline now runs under bash with pipefail, so a failed curl reports "installing uv failed". Only launches on hosts without uv whose installer download fails change behavior.
中文:uv 安装脚本以 `curl ... | sh` 方式运行且未启用 pipefail,下载失败时 sh 收到空输入并以 0 退出。随后启动会运行一个不存在的 uv,并以 FileNotFoundError 堆栈退出。现在该管道在启用 pipefail 的 bash 中运行,curl 失败会报告 "installing uv failed"。只有在没有 uv 且安装脚本下载失败的主机上的启动行为会改变。
* fix(launch): mark image staging configuration failures as not retriable
A missing or invalid pre-staged shared squash raised a plain ImageError, which is retriable, while the node-local check for the same condition raised a permanent error. So did an import that needs a job allocation but was given none. Job records therefore marked failures that no retry can fix as retriable. These cases now raise the permanent image error, and only their retriable flag and recorded error type change.
中文:缺失或无效的预置共享 squash 会抛出普通 ImageError(可重试),而节点本地路径在相同情况下抛出的是永久错误。需要作业分配却未提供分配的导入也是如此。因此作业记录把重试也无法修复的失败标记为可重试。现在这些情况会抛出永久镜像错误,只有其可重试标志和记录的错误类型发生变化。
* fix(launch): stop waiting on Slurm jobs that never leave the queue in cleanup
The workflow cleanup cancelled the runner's jobs by name and then polled squeue with no deadline. A job stuck in the queue, such as one left COMPLETING on a hung node, kept the cleanup step running until the workflow timed out. Cleanup now gives up after 300 seconds with a warning naming the jobs. Only cleanups whose cancelled jobs stay listed that long change behavior.
中文:工作流清理会按名称取消该 runner 的作业,然后无限期轮询 squeue。若作业卡在队列中(例如在挂起节点上一直处于 COMPLETING),清理步骤会一直运行到工作流超时。现在清理会在 300 秒后放弃等待,并输出列出这些作业的警告。只有被取消的作业在队列中停留超过该时长的清理行为会改变。
* fix(launch): cancel a queued salloc request when the launch is interrupted
The allocation's job id is known only after salloc reports a grant, so a signal while the request was still queued killed the salloc client and registered no cancel. The pending request then stayed in the queue and could start and hold a node until the next workflow's cleanup. The launch now cancels the runner's jobs by name if salloc never returned. Only launches interrupted while salloc is waiting change behavior.
中文:分配的作业 ID 只有在 salloc 报告获批后才能得知,因此请求仍在排队时收到信号会杀死 salloc 客户端,且没有注册任何取消操作。挂起的请求会留在队列中,可能随后启动并占用节点,直到下一个工作流的清理步骤。现在如果 salloc 未返回,启动会按名称取消该 runner 的作业。只有在 salloc 等待期间被中断的启动行为会改变。
* fix(launch): accept a batch log created just before its job left the queue
wait_for_log checked for the log, then asked squeue whether the job was still listed. A job that created its log and ended between those two checks was reported as having ended before creating it, and the launch failed. The log is now checked again before that error is raised. Only jobs that create their log and leave the queue inside one polling interval change behavior.
中文:wait_for_log 先检查日志文件,再询问 squeue 作业是否仍在队列中。如果作业在这两次检查之间创建了日志并结束,会被报告为在创建日志之前就已结束,导致启动失败。现在在报出该错误之前会再次检查日志。只有在一个轮询间隔内创建日志并离开队列的作业行为会改变。
* fix(launch): reject an OUT_YAML that climbs out of the container workspace
script_outputs joined OUT_YAML onto the container workspace without normalising it, so a path such as /workspace/../etc/reference.yaml passed the "lies outside the container workspace" check. The collector then wrote its reference outside the workspace and the launch reported success. The joined path is now normalised before the check, so such paths fail before any Slurm call. Only OUT_YAML values containing .. that leave the workspace change behavior.
中文:script_outputs 将 OUT_YAML 拼接到容器工作区路径上时没有做规范化,因此 /workspace/../etc/reference.yaml 这样的路径能通过"位于容器工作区之外"的检查。采集脚本随后把参考文件写到工作区之外,而启动仍报告成功。现在拼接后的路径会先规范化再检查,这类路径会在任何 Slurm 调用之前失败。只有包含 .. 且离开工作区的 OUT_YAML 值行为会改变。
* fix(launch): report a runner config failure in run as one error line
`infx.launch run` caught only RequestError around resolving the runner's cluster, so an unlisted runner, a missing or malformed runners.yaml, or a record that fails validation escaped as a traceback. `cleanup` already handled the same errors cleanly. run now prints one ERROR line, records it in the job event and exits 1. Only runs whose cluster cannot be resolved change behavior, and their exit code stays 1.
中文:`infx.launch run` 在解析 runner 所属集群时只捕获 RequestError,因此 runner 未登记、runners.yaml 缺失或格式错误、或记录校验失败时,会以堆栈跟踪的形式退出。`cleanup` 已能妥善处理这些错误。现在 run 会输出一行 ERROR、将其记录到作业事件中并以 1 退出。只有无法解析集群的运行行为会改变,其退出码仍为 1。
* fix(launch): ignore additional settings that are not a JSON list
point_settings parsed PREFILL_ADDITIONAL_SETTINGS and DECODE_ADDITIONAL_SETTINGS as JSON and iterated the result. A scalar such as 5 or true raised a TypeError that crashed the launch, and a JSON object contributed its keys as setting names. Only a JSON list now contributes names, as with malformed JSON. Only launches whose additional settings decode to something other than a list change behavior.
中文:point_settings 会把 PREFILL_ADDITIONAL_SETTINGS 和 DECODE_ADDITIONAL_SETTINGS 当作 JSON 解析并遍历结果。像 5 或 true 这样的标量会引发 TypeError 并使启动崩溃,而 JSON 对象会把它的键当作设置名。现在与格式错误的 JSON 一样,只有 JSON 列表会提供设置名。只有附加设置解码结果不是列表的启动行为会改变。
* fix(launch): report a non-object srtctl manifest as a launch error
When srtctl wrote a --json manifest that was valid JSON but not an object, such as a list, reading the submitted job raised AttributeError. That error was not among the ones turned into LaunchError, so the launch died with a traceback, and the exit cleanup that recovers the job from the manifest raised it again. Such manifests now fail with "srtctl did not report one submitted job". Only manifests that decode to something other than an object change behavior.
中文:当 srtctl 写出的 --json 清单是合法 JSON 但不是对象(例如列表)时,读取已提交作业会抛出 AttributeError。该错误不在会被转换为 LaunchError 的异常之列,因此启动会以堆栈跟踪退出,而从清单恢复作业的退出清理也会再次抛出它。现在这类清单会以 "srtctl did not report one submitted job" 失败。只有解码结果不是对象的清单行为会改变。
* fix(launch): mark a container step on a lost allocation as retriable
A failed container step was always recorded as a non-retriable JobFailed, because its status replaces the allocation's accounting state with the srun exit code. A step killed by a node failure or preemption was therefore never treated as lost to the cluster, unlike sbatch jobs in the same states. The allocation's state is now checked, and BOOT_FAIL, CANCELLED, NODE_FAIL or PREEMPTED is recorded as a retriable Job<State> failure. Only failed steps whose allocation accounting shows one of those states change behavior.
中文:失败的容器步骤总是被记录为不可重试的 JobFailed,因为其状态会用 srun 退出码取代分配的记账状态。因此,因节点故障或抢占而被杀死的步骤从不会被视为被集群丢失,这与处于相同状态的 sbatch 作业不同。现在会检查分配的状态,BOOT_FAIL、CANCELLED、NODE_FAIL 或 PREEMPTED 会被记录为可重试的 Job<State> 失败。只有分配记账显示上述状态之一的失败步骤行为会改变。
* fix(launch): mask secrets from the container env in the echoed srun step
The Slurm backend echoed the container step's srun command without its environment, so echo could mask only secrets that were also in the launcher's own environment. A *_TOKEN or *_SECRET value set only through the container env, such as one from a cluster record's env, printed in clear inside --export. The echo now receives the container env and masks those values. Only the printed command changes, and only when the container env carries such a value.
中文:Slurm 后端回显容器步骤的 srun 命令时没有传入其环境变量,因此只能屏蔽同时存在于启动器自身环境中的密钥。仅通过容器环境设置的 *_TOKEN 或 *_SECRET 值(例如来自集群记录 env 的值)会在 --export 中以明文打印。现在回显会接收容器环境并屏蔽这些值。只有打印出的命令发生变化,且仅在容器环境包含此类值时。
* fix(matrix): reject duplicate keys in master configs and changelog additions
PyYAML keeps the last of two equal mapping keys, so a master config key or
field defined twice silently replaced the earlier definition in every plan,
generate and changed run, and a changelog entry with a repeated field passed
the sweep gate with only its last value. Master configs and the changelog
lines a PR adds now load with infx.yamlio.UniqueKeySafeLoader: SafeLoader,
merge keys included, that rejects a key repeated within one mapping. The
changelog tools' stricter UniqueKeyLoader moves to infx.yamlio unchanged.
Only files with a repeated key in one mapping change behavior; none of
today's configs or recipes have one.
中文:PyYAML 遇到重复的映射键时保留最后一个,因此主配置中重复定义的键或字段会在每次
plan、generate 和 changed 运行中静默覆盖先前的定义;带有重复字段的 changelog 条目
也会只以最后一个值通过扫描检查。现在主配置和 PR 新增的 changelog 行改用
infx.yamlio.UniqueKeySafeLoader 加载:它与 SafeLoader 行为一致(包括合并键),但会拒绝
同一映射中重复出现的键。changelog 工具使用的更严格的 UniqueKeyLoader 原样移至
infx.yamlio。只有在同一映射中存在重复键的文件行为会改变;当前的配置和配方都没有这种情况。
* fix(bench): fall back to retokenizing when a stream reports no usage
calculate_metrics only retokenized the generated text when output_tokens was None, but RequestFuncOutput defaults it to 0. A successful request whose stream carried no usage chunk, or whose usage reported a null completion_tokens, therefore counted 0 output tokens, which lowered total_output_tokens, the throughput figures and TPOT. Only successful requests without a positive reported token count change behavior. They are now retokenized, as upstream vLLM does.
中文:calculate_metrics 仅在 output_tokens 为 None 时才对生成文本重新分词,但 RequestFuncOutput 的默认值是 0。因此,若成功请求的流中没有 usage 块,或 usage …1 parent 126bce2 commit f8eceff
218 files changed
Lines changed: 5681 additions & 1169 deletions
File tree
- .github/workflows
- inferencex-e2e
- benchmarks
- multi_node/srt-slurm-recipes
- dsv4/vllm/gb200-fp4/agentx
- glm5.2/trtllm/gb300-fp4/agentx
- kimik3/vllm
- b200-fp4/agentx
- gb200-fp4/agentx
- h200-fp4/agentx
- minimaxm3/trtllm/gb200-fp4/agentx
- single_node
- speedbench
- srt-slurm-recipes
- dsv41flash/atom/mi355x-fp4-mtp
- minimaxm3/vllm/h100-fp8-mtp
- qwen3.5/sglang
- h100-fp8-mtp
- h100-fp8
- qwen3.8next/sglang/gb300-fp4-mtp
- configs
- docs
- infx
- bench_serving
- bench
- agentic
- eval
- clusters
- datasets
- evals
- patches
- golden_al_distribution
- klaud
- launch
- backends
- slurm
- drivers
- srt
- matrix
- results
- agentic
- backends
- power
- srt_slurm
- tests
- bench_serving
- bench
- datasets
- evals
- golden_al_distribution
- klaud
- launch
- matrix
- results
- agentic
- power
- srt_slurm
- workflows
- workflows
- utils/runner_setup
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | 76 | | |
78 | 77 | | |
79 | 78 | | |
| |||
114 | 113 | | |
115 | 114 | | |
116 | 115 | | |
117 | | - | |
118 | | - | |
119 | 116 | | |
120 | 117 | | |
121 | | - | |
122 | 118 | | |
123 | 119 | | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | 120 | | |
129 | 121 | | |
130 | 122 | | |
| |||
153 | 145 | | |
154 | 146 | | |
155 | 147 | | |
156 | | - | |
157 | 148 | | |
158 | | - | |
159 | 149 | | |
160 | 150 | | |
161 | 151 | | |
| |||
218 | 208 | | |
219 | 209 | | |
220 | 210 | | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | 211 | | |
225 | 212 | | |
226 | 213 | | |
| |||
245 | 232 | | |
246 | 233 | | |
247 | 234 | | |
248 | | - | |
249 | | - | |
250 | 235 | | |
251 | 236 | | |
252 | 237 | | |
| |||
271 | 256 | | |
272 | 257 | | |
273 | 258 | | |
274 | | - | |
275 | 259 | | |
276 | 260 | | |
277 | 261 | | |
| |||
320 | 304 | | |
321 | 305 | | |
322 | 306 | | |
323 | | - | |
324 | 307 | | |
325 | 308 | | |
326 | 309 | | |
327 | 310 | | |
328 | 311 | | |
329 | 312 | | |
330 | 313 | | |
331 | | - | |
332 | 314 | | |
333 | 315 | | |
334 | 316 | | |
| |||
338 | 320 | | |
339 | 321 | | |
340 | 322 | | |
341 | | - | |
342 | 323 | | |
343 | 324 | | |
344 | 325 | | |
| |||
347 | 328 | | |
348 | 329 | | |
349 | 330 | | |
350 | | - | |
351 | 331 | | |
352 | 332 | | |
353 | 333 | | |
| |||
361 | 341 | | |
362 | 342 | | |
363 | 343 | | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | 344 | | |
368 | 345 | | |
369 | 346 | | |
| |||
390 | 367 | | |
391 | 368 | | |
392 | 369 | | |
393 | | - | |
394 | | - | |
395 | 370 | | |
396 | 371 | | |
397 | 372 | | |
| |||
455 | 430 | | |
456 | 431 | | |
457 | 432 | | |
458 | | - | |
459 | 433 | | |
460 | 434 | | |
461 | 435 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
| |||
95 | 94 | | |
96 | 95 | | |
97 | 96 | | |
98 | | - | |
99 | | - | |
100 | 97 | | |
101 | 98 | | |
102 | | - | |
103 | 99 | | |
104 | 100 | | |
105 | 101 | | |
| |||
130 | 126 | | |
131 | 127 | | |
132 | 128 | | |
133 | | - | |
134 | 129 | | |
135 | | - | |
136 | 130 | | |
137 | 131 | | |
138 | 132 | | |
| |||
206 | 200 | | |
207 | 201 | | |
208 | 202 | | |
209 | | - | |
210 | | - | |
211 | 203 | | |
212 | 204 | | |
213 | 205 | | |
| |||
232 | 224 | | |
233 | 225 | | |
234 | 226 | | |
235 | | - | |
236 | 227 | | |
237 | 228 | | |
238 | 229 | | |
| |||
272 | 263 | | |
273 | 264 | | |
274 | 265 | | |
275 | | - | |
276 | | - | |
277 | 266 | | |
278 | 267 | | |
279 | 268 | | |
| |||
284 | 273 | | |
285 | 274 | | |
286 | 275 | | |
287 | | - | |
288 | 276 | | |
289 | 277 | | |
290 | 278 | | |
291 | 279 | | |
292 | 280 | | |
293 | 281 | | |
294 | 282 | | |
295 | | - | |
296 | 283 | | |
297 | 284 | | |
298 | 285 | | |
| |||
339 | 326 | | |
340 | 327 | | |
341 | 328 | | |
342 | | - | |
343 | 329 | | |
344 | 330 | | |
345 | 331 | | |
| |||
467 | 453 | | |
468 | 454 | | |
469 | 455 | | |
470 | | - | |
471 | 456 | | |
472 | 457 | | |
473 | 458 | | |
| |||
584 | 569 | | |
585 | 570 | | |
586 | 571 | | |
587 | | - | |
588 | 572 | | |
589 | 573 | | |
590 | 574 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | 73 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| |||
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
45 | | - | |
46 | 44 | | |
47 | 45 | | |
48 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | 42 | | |
45 | 43 | | |
46 | 44 | | |
| |||
103 | 101 | | |
104 | 102 | | |
105 | 103 | | |
106 | | - | |
107 | 104 | | |
108 | 105 | | |
109 | 106 | | |
| |||
124 | 121 | | |
125 | 122 | | |
126 | 123 | | |
127 | | - | |
128 | 124 | | |
129 | 125 | | |
130 | 126 | | |
131 | 127 | | |
132 | 128 | | |
133 | | - | |
134 | 129 | | |
135 | 130 | | |
136 | 131 | | |
| |||
141 | 136 | | |
142 | 137 | | |
143 | 138 | | |
144 | | - | |
145 | | - | |
146 | 139 | | |
147 | 140 | | |
148 | 141 | | |
| |||
153 | 146 | | |
154 | 147 | | |
155 | 148 | | |
156 | | - | |
157 | | - | |
158 | 149 | | |
159 | 150 | | |
160 | 151 | | |
| |||
214 | 205 | | |
215 | 206 | | |
216 | 207 | | |
217 | | - | |
218 | 208 | | |
219 | 209 | | |
220 | 210 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
| |||
0 commit comments