Skip to content

CollectiveX: record per-rank GPU clocks in every result / CollectiveX:在每个结果中记录各 rank 的 GPU 时钟 - #4100

Merged
Oseltamivir merged 2 commits into
mainfrom
cx-gpu-clocks
Oct 15, 2026
Merged

Oseltamivir merged 2 commits into
mainfrom
cx-gpu-clocks

Conversation

@Oseltamivir

@Oseltamivir Oseltamivir commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

A clamped or throttled GPU looks exactly like a slow library, and nothing in a result said which clock its GPUs ran at. Each case now records runtime.gpu_clocks over its timed passes, through NVML on NVIDIA and amdsmi on AMD:

  • Per rank: the SM clock read right after each point's timed bursts and after each chain (min, p50, max, sample count), the clock and power limits, the peak temperature, and on NVIDIA the clock-event reasons other than idle.
  • throttle_fraction: the share of the timed passes the clock was held down, by cause. NVIDIA reports NVML's violation counters (power, thermal, sync boost, board limit, reliability); AMD reports amdsmi's residency accumulators (power, thermal, HBM and VR thermal, PROCHOT).
  • sm_clock_ratio_min: the slowest rank's median clock over the fastest rank's. It is null unless every rank reported.
  • slow_gpu: true when that ratio is below 0.95, when a rank reports a hardware, thermal or power-brake slowdown, or when a rank spent at least 5% of the timed passes throttled by any cause but sync boost. The last two catch a tray clamped as a whole, which leaves the ratio at 1. AMD reports no clock-event reasons, so there only the throttle residency can. The busiest prefill cases measured spent 0.01-0.02% power-capped. The run log and summarize.py list flagged cases.

NVML is bound by ctypes to the driver's own libnvidia-ml.so.1, so no package is added. AMD uses the amdsmi package that ROCm torch already imports, and finds each rank's GPU by PCI address. Reads happen only between bursts, never inside a window. A probe that cannot start records unavailable_reason: the writing rank's own failure, or the ranks whose probe did not start. The case proceeds without it.

Validation

I ran run.sh by hand from a diagnostic branch (this PR plus the graphed-tails change, 3a29b420). Every row passed correctness, and no case was flagged.

Pool Shards Clocks over the case
h200-dgxc nccl-ep LL, nccl-ep normal, deepep-v2 normal (EP8) NVML: all 8 GPUs at 1980 MHz (the limit), 2600 reads per rank, no throttle time, 35-45 °C
gb200 (aarch64) flashinfer-ep (EP8, 2x4) NVML: 2062 MHz (the limit), no throttle time
mi325x mori (EP8) amdsmi: 2085-2101 MHz against 2100, 1000 W cap, power throttle 0.02% of the prefill case
mi300x mori (EP8) amdsmi: 2086-2111 MHz against 2100, 750 W cap, power throttle 0.01% of the prefill case
b200-nscale deepep-v2 normal (EP16, 2x8) NVML: all 16 GPUs at 1965 MHz (the limit), no throttle time, 40-44 °C
  • Read placement: a read right after a burst still shows the burst's clock. On MI325X, a 300 ms power-bound bf16 matmul ran at about 1.5 GHz; the clock held there for the first millisecond after the burst and climbed to 2.1 GHz over the next 0.5 s.
  • Tests: python3 -m unittest discover -s collectivex/tests passes (177, 8 skipped). The new tests cover the NVML binding through a fake library, the amdsmi path through a fake module, the summary, and the read placement inside the sweep. One test checks that per-rank entries carry no UUID, serial or bus ID.
AI model disclosure
  • Claude Opus 5.5 (claude-opus-5-5, run through Claude Code): implementation, tests, the hardware runs and this description.
中文

摘要

被限频或降频的 GPU 看起来与慢的库完全一样,而结果中此前没有记录 GPU 运行时的时钟。现在每个用例在计时阶段记录 runtime.gpu_clocks,NVIDIA 通过 NVML 读取,AMD 通过 amdsmi 读取:

  • 每个 rank: 在每个点的计时批次和每条链之后立即读取的 SM 时钟(最小值、p50、最大值、样本数)、时钟与功耗上限、最高温度;NVIDIA 另记录除 idle 以外的 clock-event 原因。
  • throttle_fraction: 计时阶段中时钟被压低的时间占比,按原因区分。NVIDIA 使用 NVML 的 violation 计数器(功耗、温度、sync boost、板卡上限、可靠性);AMD 使用 amdsmi 的 residency 累加器(功耗、温度、HBM 与 VR 温度、PROCHOT)。
  • sm_clock_ratio_min: 最慢 rank 的时钟中位数与最快 rank 之比;只有每个 rank 都有读数时才给出。
  • slow_gpu: 该比值低于 0.95、某个 rank 报告硬件、温度或功耗制动降频,或某个 rank 在计时阶段因 sync boost 以外的原因降频的时间达到 5% 时为真。后两种情况可以发现整个托盘一起被限频、比值仍为 1 的情况;AMD 不报告 clock-event 原因,只能靠降频驻留时间判断。实测最繁忙的 prefill 用例功耗受限时间为 0.01-0.02%。运行日志和 summarize.py 会列出这些用例。

NVML 通过 ctypes 绑定驱动自带的 libnvidia-ml.so.1,不新增依赖;AMD 使用 ROCm 版 torch 已经导入的 amdsmi 包,并按 PCI 地址找到每个 rank 的 GPU。读取只发生在计时批次之间,绝不在计时窗口内;探针无法启动时记录 unavailable_reason:写结果的 rank 自己的失败原因,或探针未启动的 rank;用例照常运行。

验证

从诊断分支(本 PR 加 graph 尾部改动,3a29b420)手动运行 run.sh,所有行都通过正确性检查,没有用例被标记。

资源池 分片 用例期间的时钟
h200-dgxc nccl-ep LL、nccl-ep normal、deepep-v2 normal(EP8) NVML:8 块 GPU 都在 1980 MHz(上限),每个 rank 2600 次读数,无降频时间,35-45 °C
gb200(aarch64) flashinfer-ep(EP8,2x4) NVML:2062 MHz(上限),无降频时间
mi325x mori(EP8) amdsmi:2085-2101 MHz(上限 2100),功耗上限 1000 W,prefill 用例中功耗降频占 0.02%
mi300x mori(EP8) amdsmi:2086-2111 MHz(上限 2100),功耗上限 750 W,prefill 用例中功耗降频占 0.01%
b200-nscale deepep-v2 normal(EP16,2x8) NVML:16 块 GPU 都在 1965 MHz(上限),无降频时间,40-44 °C
  • 读取位置: 批次结束后立即读取,仍能看到该批次运行时的时钟。在 MI325X 上,一段 300 ms 受功耗限制的 bf16 matmul 运行在约 1.5 GHz;批次结束后的第一毫秒内时钟仍保持在该值,随后 0.5 s 内回升到 2.1 GHz。
  • 测试: python3 -m unittest discover -s collectivex/tests 通过(177 个,跳过 8 个)。新测试用模拟库覆盖 NVML 绑定、用模拟模块覆盖 amdsmi 路径,并覆盖汇总逻辑和 sweep 中的读取位置;另有一个测试确认每个 rank 的条目不含 UUID、序列号或总线 ID。

A clamped or throttled GPU looks exactly like a slow library, and nothing in a result said which
clock its GPUs ran at. Each case now records runtime.gpu_clocks over its timed passes: per rank,
the SM clock read right after each point's bursts and each chain, the clock and power limits, the
peak temperature, and the share of the time the clock was held down by cause (NVML violation
counters on NVIDIA, amdsmi residency accumulators on AMD), plus the clock-event reasons on NVIDIA.
sm_clock_ratio_min compares the slowest rank's median clock with the fastest's, and slow_gpu flags
a ratio below 0.95 or a hardware, thermal or power-brake slowdown; the run log and summarize.py
call those cases out. NVML is bound by ctypes to the driver's own library, so no package is added.
Reads land only between bursts, and a probe that cannot start records why without failing the case.

中文:为每个结果记录各 rank 的 GPU 时钟。

被限频或降频的 GPU 看起来与慢的库完全一样,而结果中此前没有记录 GPU 运行时的时钟。现在每个用例在计时阶段
记录 runtime.gpu_clocks:每个 rank 在每个点的计时批次和每条链之后立即读取的 SM 时钟、时钟与功耗上限、最高
温度,以及按原因统计的时钟被压低的时间占比(NVIDIA 用 NVML violation 计数器,AMD 用 amdsmi residency
累加器),NVIDIA 另记录 clock-event 原因。sm_clock_ratio_min 比较最慢与最快 rank 的时钟中位数;比值低于
0.95,或出现硬件、温度、功耗制动降频时,slow_gpu 为真,运行日志和 summarize.py 会列出这些用例。NVML 通过
ctypes 绑定驱动自带的库,不新增依赖。读取只发生在计时批次之间;探针无法启动时记录原因,不会使用例失败。

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beyond the inline findings, I also checked whether a probe read failing mid-sweep (e.g. a GPU dropping off the bus after ClockMonitor.start() already succeeded) could crash the case rather than just lose telemetry: NVML reads go through _Nvml._read() and amdsmi reads through _AmdSmi._call(), both of which turn a failed call into None instead of raising, so a later fault stays silent per the documented "never fails the case" behavior rather than being an unaddressed crash path.

Extended reasoning...

The diff adds a ~300-line GPU clock telemetry module (NVML via ctypes, amdsmi) wired into the collectivex EP benchmark harness and summary/report output; it touches no auth/crypto/permission surface, only benchmark instrumentation. Two confirmed bugs are already queued as inline comments: AMD's slow_gpu never fires for a whole-tray uniform throttle because _AmdSmi.reasons() always returns None, and a non-rank-0 probe-start failure is reported with unavailable_reason: null in the written doc since only the writing rank's local reason is used. Given these affect the correctness of the feature's core promise, a human look is warranted beyond the automated findings.

Findings marked 🟡 are optional suggestions and need no follow-up push.

Comment on lines +294 to +300
def _problems(ratio, per_rank) -> list:
problems = []
if ratio is not None and ratio < SLOW_GPU_RATIO:
problems.append(f"the slowest rank's GPU ran at {ratio:.0%} of the fastest rank's SM clock")
slowed = sorted({(rank["rank"], reason) for rank in per_rank
for reason in rank["clock_event_reasons"] if reason in ABNORMAL_REASONS})
if slowed:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 On AMD, slow_gpu never fires for a whole tray throttled together, even though docs and the PR description promise it does. _problems() (gpu_clocks.py:294-300) only flags a slowdown via ratio < 0.95 or a rank's clock_event_reasons, but _AmdSmi.reasons() (gpu_clocks.py:146) always returns None, so AMD ranks never populate clock_event_reasons. The computed throttle_fraction/throttle_fraction_max (power, thermal, hbm_thermal, vr_thermal, prochot residency, summarize() line ~287) is never consulted by _problems, so a tray-wide amdsmi throttle event (ratio stays ~1) is silently missed. Fix: have _problems/slow_gpu also trigger when any rank's throttle_fraction exceeds a meaningful threshold, covering both the NVML-reasons path and the amdsmi-residency path.

Why this was flagged

Trigger: every rank in a case on an AMD GPU (MI300X/MI325X) is uniformly power- or thermal-throttled for a large share of the timed passes (amdsmi residency accumulators in throttle_fraction), so sm_clock_ratio_min stays near 1.0 since all ranks slow down together. _problems() at gpu_clocks.py:294-302 only checks ratio < SLOW_GPU_RATIO and clock_event_reasons; _AmdSmi.reasons() at gpu_clocks.py:146 is hardcoded to return None, so clock_event_reasons is always empty on AMD. slow_gpu (gpu_clocks.py:289) is therefore computed as False even though throttle_fraction_max (gpu_clocks.py:287) shows real throttling. The methodology.md addition and PR description explicitly claim slow_gpu catches 'a tray clamped as a whole... even at a ratio of 1' for both vendors, but on AMD it does not: operators get a clean, unflagged result for a throttled run that NVIDIA hardware with the same throttle profile (via NVML clock-event reasons) would flag.

Verification: On AMD, slow_gpu cannot fire for a whole tray throttled together. _AmdSmi.reasons() (gpu_clocks.py:146-147) returns None unconditionally, so clock_event_reasons stays empty for AMD ranks. _problems() (gpu_clocks.py:294-302) flags a slowdown only via ratio < 0.95 or clock_event_reasons, never reading throttle_fraction/throttle_fraction_max, though AMD residency accumulators populate those fields.

self._check_graph_replay()
self._sample_chain()
self.clocks.finish()
self.gpu_clocks = gpu_clocks.summarize(self.reduce.rows(self.clocks.vector()), self.clocks.reason)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 (optional) When a rank other than rank 0 fails to start its GPU-clock probe, the written result shows unavailable_reason: null even though that rank's clock data is entirely missing, hiding why from anyone reading the case document. ep_harness.py:389 always passes self.clocks.reason -- the writing rank's (rank 0) own local failure text -- into gpu_clocks.summarize, but gpu_clocks.py:285 uses that same argument whenever any rank's source is null. If rank 0's own probe succeeded, its .reason is None, so the field is reported null for a real per-rank failure. Fix: gather each rank's reason string (or sentinel) alongside vector() so unavailable_reason reflects whichever rank actually failed, not only rank 0.

Why this was flagged

Trigger: rank 0's NVML/amdsmi probe starts fine but another rank's _Nvml.__init__/_AmdSmi.__init__ raises (e.g. a per-GPU UUID or PCI-BDF lookup failure), setting that rank's ClockMonitor.reason only in that rank's own process memory; it is never sent to other ranks. ep_harness.py:389 calls gpu_clocks.summarize(self.reduce.rows(self.clocks.vector()), self.clocks.reason), passing only rank 0's own .reason. gpu_clocks.py:285 sets unavailable_reason from that argument whenever None in sources, so the document gets unavailable_reason: null and source: "mixed" with a per_rank entry whose fields are all null and no explanation. This differs from the base, where no such field existed to be silently wrong, and from the documented contract in collectivex/docs/methodology.md ("A probe that cannot start leaves the values null and records unavailable_reason"), which this only satisfies when the failing rank happens to be rank 0 -- the only tested case (test_gpu_clocks.py test_an_unavailable_probe_says_why uses a single rank).

Verification: nit. The mechanism is real and reachable. ep_harness.py:389 calls gpu_clocks.summarize(self.reduce.rows(self.clocks.vector()), self.clocks.reason) passing only rank 0's local reason. _Collectives.rows() (ep_harness.py:239-242) all-gathers just the numeric float64 vector(); the reason string is never gathered, living only in each rank's own process memory.

…clock probe did not start

amdsmi reports no clock-event reasons, so slow_gpu could not fire on AMD for a tray throttled as
a whole (the ratio stays at 1). It now also fires when a rank spent at least 5% of the timed passes
throttled by any cause but sync boost. A probe that failed on a rank other than the writing one
published unavailable_reason: null; the summary now names that rank.

中文:amdsmi 不报告 clock-event 原因,因此 AMD 上整个托盘一起降频时(比值保持为 1)slow_gpu 无法
触发。现在当某个 rank 在计时阶段因 sync boost 以外的原因降频的时间达到 5% 时,也会触发。若探针在
写结果的 rank 之外的 rank 上启动失败,此前 unavailable_reason 会发布为 null;现在汇总会写明是哪个
rank。
@Oseltamivir
Oseltamivir merged commit 411253a into main Oct 15, 2026
4 checks passed
@Oseltamivir
Oseltamivir deleted the cx-gpu-clocks branch October 15, 2026 11:33
Oseltamivir added a commit that referenced this pull request Oct 15, 2026
…un / CollectiveX:在手动重跑前清理无用代码、测试与过时文档 (#4114)

* CollectiveX: trim dead CI-era code from the shell layer

Removes shell code that the CI sweep's removal (#4054) left unreachable
or unread. Nothing that runs changes: no command line, Slurm flag, env
export, retry or staging step is touched.

- collx_load_operator_config: drop the early return for a "host-utility
  step (no SKU)". Its only caller is collx_launcher_prologue, and every
  launcher exits on an unknown SKU before calling it, so COLLX_RUNNER is
  never empty there.
- Launchers: stop passing "$RUNNER" to collx_launcher_prologue, which
  never reads its arguments. The only consumer was the CI-only
  collx_prepare_stage_dir, removed in #4054.
- launch_single-slurm.sh: drop PRODUCT. Nothing reads it, here or in the
  runtime it sources, and it is not exported; with the file-wide SC2034
  disable lifted, shellcheck -x reports it as the only unused variable
  in the three launchers.
- Drop comment text that still described the sweep workflow and Actions.

Checked: bash -n on every touched script; the unit tests are unchanged
(264 run, 14 skipped); shellcheck reports no new findings; and HEAD's
and this collx_load_operator_config export the same variables for all
nine SKUs when no operator document exists.

中文:
移除 CI sweep 删除(#4054)后遗留的、不可达或无人读取的 shell 代码。
实际执行的内容均未改变:没有触及任何命令行、Slurm 参数、环境变量导出、
重试或暂存步骤。

- collx_load_operator_config:删除针对"host-utility step(无 SKU)"的
  提前返回。它唯一的调用者是 collx_launcher_prologue,而每个 launcher
  在调用它之前都会因未知 SKU 退出,因此此处 COLLX_RUNNER 永远非空。
- Launchers:不再向从不读取参数的 collx_launcher_prologue 传递
  "$RUNNER"。唯一的使用者是仅用于 CI 的 collx_prepare_stage_dir,
  已在 #4054 中删除。
- launch_single-slurm.sh:删除 PRODUCT。无论是此文件还是它 source 的
  runtime 都不读取它,它也未被导出;解除文件级 SC2034 禁用后,
  shellcheck -x 报告它是三个 launcher 中唯一未使用的变量。
- 删除仍在描述 sweep workflow 和 Actions 的注释文字。

验证:所有改动的脚本通过 bash -n;单元测试结果不变(运行 264 个,
跳过 14 个);shellcheck 没有新增告警;在不存在 operator 文档时,
HEAD 与本次修改后的 collx_load_operator_config 为全部九个 SKU
导出相同的变量。

* CollectiveX: trim dead code and stale comments from the Python layer

Remove code that nothing reaches and comments that describe removed
mechanisms or old row generations. No backend runs, measures or publishes
anything differently.

Code:
- EagerTiming.missed_samples only called super(); the base method serves
  both timing regimes.
- EPBackend no longer stores local_rank, which nothing reads. The
  constructor keeps the argument.
- routing.decode_source_ids drops its unused seed parameter, and its one
  caller (ep_oracle) is updated.
- MoRIBackend.stage loses a trailing `return None`.
- runtime/stage.py: SPECS entries carried an optional nargs slot that no
  subcommand used. The slot, the conditional that read it, and a default
  that never applies to a required positional are gone. Parsing, errors
  and help output are unchanged.

Comments: drop the history of earlier kernel_generation series (nccl-ep,
uccl-ep, deepep-v2, the legacy LL suffixes, the harness alignment suffix),
references to the deleted CI sweep, the durable store and operator
secrets, pointers to the removed StageContract and DeepEP pin-drift
tests, and a duplicate of the _MODE_SLUG comment at its use site.

The ten comment-only files have identical docstring-stripped ASTs. Unit
tests: 264 run, OK, 14 skipped, before and after.

中文:
删除没有任何代码路径会执行到的代码,以及描述已移除机制或旧数据行世代的注释。
任何后端运行、测量或发布的内容均不改变。

代码:
- EagerTiming.missed_samples 只调用 super();两种计时模式都直接使用基类方法。
- EPBackend 不再保存没有任何代码读取的 local_rank。构造函数仍保留该参数。
- routing.decode_source_ids 删除未使用的 seed 参数,并同步更新其唯一调用方
  (ep_oracle)。
- 删除 MoRIBackend.stage 末尾多余的 `return None`。
- runtime/stage.py:SPECS 条目中可选的 nargs 位从未被任何子命令使用。删除该位、
  读取它的条件分支,以及对必填位置参数永远不会生效的默认值。参数解析、报错和
  帮助输出均不变。

注释:删除早期 kernel_generation 系列的历史说明(nccl-ep、uccl-ep、deepep-v2、
legacy LL 后缀以及 harness 的对齐后缀),对已删除的 CI sweep、持久化存储和
operator 密钥的引用,指向已删除的 StageContract 测试和 DeepEP 版本漂移测试的
说明,以及 _MODE_SLUG 注释在使用处的重复副本。

十个仅改动注释的文件在去除 docstring 后 AST 完全相同。单元测试前后一致:
运行 264 个,通过,跳过 14 个。

* CollectiveX: trim the test suite to the repository's test-quality rules

Apply AGENTS.md's test-quality rules to collectivex/tests: delete tests that
inspect code or pin checked-in config instead of exercising behavior, merge
tests that reach the same branch, and remove dead fakes. 264 tests become 243
with no loss of behavioral coverage.

- Config and constant pins: runner labels, the flashinfer and nccl-ep matrix
  SKU and precision sets, run_ep backend names, _FP8_BLOCK, ll_recv_hook, the
  class-level kernel_generation, and the UCCL build flags and cache generation.
- Introspection and test-infrastructure checks: fake signatures, CPython
  byref, setUp and premise self-checks, import smoke.
- Reimplementations: DeepEP scale and epilogue reference specs, an in-test
  dequant copy (now a plumbing check on the real receive path), and probe
  marker regexes copied from common.sh (now exact output lines).
- Tautologies: the base implementation_details() == {}, the reloaded
  fp8_consume default, and a bandwidth expectation derived from the
  implementation (now 375 GB/s worked by hand).
- Duplicates folded into one test or a subTest table: alignment rows, chain
  host counts, runner filtering, chain output verdicts, budget gates,
  prepare_cache, mode and precision validation, nccl reduction selection,
  deepep-v2 capacity rounding, and nccl tests the contract file covers.

The clamped-ladder test now clamps a ladder and asserts the recorded values;
swap and codec tests use controlled platforms and profiles; two torch-free
checks no longer skip without torch; fakes lose the members a trace of the
suite never reached.

中文:
按 AGENTS.md 的测试质量规则清理 collectivex/tests:删除检查代码或固定已提交配置、
而非运行实际行为的测试,合并到达同一分支的测试,并移除无用的测试替身。测试数从
264 个减为 243 个,对真实行为的覆盖没有减少。

- 固定配置与常量:runner 标签、flashinfer 与 nccl-ep 矩阵的 SKU 与精度集合、
  run_ep 的后端名称、_FP8_BLOCK、ll_recv_hook、类级 kernel_generation,以及 UCCL
  的构建标志和缓存代号。
- 自省与测试基础设施检查:假对象的签名、CPython 的 byref、setUp 与前提自检、
  导入冒烟测试。
- 重新实现被测代码:DeepEP 的缩放与收尾参考实现、测试内的反量化副本(改为检查
  真实接收路径的衔接),以及从 common.sh 复制的探针标记正则(改为断言精确的输出行)。
- 同义反复:基类 implementation_details() == {}、重新加载后的 fp8_consume 默认值,
  以及由实现推导出的带宽期望值(改为手算的 375 GB/s)。
- 合并为单个测试或 subTest 表的重复测试:对齐行、链路的主机计数、runner 过滤、
  链路输出判定、预算门限、prepare_cache、模式与精度校验、nccl 归约选择、deepep-v2
  容量取整,以及契约文件已覆盖的 nccl 测试。

截断 ladder 的测试现在真正截断一个 ladder,并断言记录下的值;swap 与编解码测试改用
受控的平台与配置;两个不依赖 torch 的检查在没有 torch 时不再被跳过;测试替身中删除了
追踪整个测试套件时从未执行到的成员。

* CollectiveX: make the docs match main and drop superseded history

Bring README.md and docs/{methodology,methodology-summary,nccl-ep,swap-blocks}.md in line with
the code on main after the hand-run switch (#4054) and the GPU-clock, timing-window and
engine-contract merges (#4100, #4101, #4105). Every published row will be re-measured from main,
so notes that only told older row generations apart are removed; the evidence behind each
current rule stays.

- README holds usage and the coverage tables: what runs where per backend and mode, the
  cases.json counts (195 requested, 181 runnable, 14 unsupported), the variables that change a
  row without changing its case_id, the operator document format, and which pools need a stage
  directory (h100-dgxc, b300, gb300 and the AMD pools).
- methodology.md drops the store-generation discriminators, the skip-version-2 rule, the old
  kernel_generation names, the -cudagraph-in-graph-ar and unaligned eager families, the
  chain_regime_passed rename and the legacy-schema note. Per-backend evidence, including the
  README's DeepEP V2 pin, EFA and MoRI heap notes, moves into one Backends section, and a
  kernel_generation table lists the current families.
- Stale statements fixed: the bash -n check only read its first file; uccl-ep and MoRI
  low-latency also stop at 256 tokens; three host-gate limits were two; the default-route
  socket fallback contradicted Execution Isolation and now lists h100-dgxc; stage_dir
  permissions are not checked; no image-provided DeepEP path exists; DeepEP V2 low-latency on
  B300 is absent from the matrix, not an unsupported row; the MI300X/MI325X EP16 reason no
  longer names the retired tw pools; the MoRI heap guard covers scale-out only; GB/s is derived
  by bandwidth.py, not emitted; graphed FP8 rows report stage unavailable; the registry network
  block wins over an operator document.
- operatorx/CI.md no longer says CollectiveX stages b300 in the passwd home, and shared/README
  no longer says CollectiveX depends on inferencex-e2e helpers.
- From review: a hand run outside the account that owns the registry squash_dir needs its own
  squash_dir or storage_roots (the README example now uses storage_roots); nccl-ep.md explains
  -static; Execution Isolation says every shard clears inherited selectors, documents
  single_node_rdma_devices and DeepEP's EP_OVERRIDE_RDMA_SL; UCCL-EP's FP8 is e4m3fnuz on gfx942;
  the MoRI SDMA citation now says the FP4 recipes set it on prefill roles only, and the recipes'
  AUTO launch mode is noted; the FP8 per-call charge is credited to the measured graph cell only;
  imports are once per node where squash dirs are node-local; the unsupported 2-6% drift figure
  is gone; bandwidth.py's comment no longer says graphed rows publish p50 only.

中文:
在改为手动运行(#4054)以及合并 GPU 时钟、计时窗口和引擎约定(#4100、#4101、#4105)之后,使
README.md 和 docs/{methodology,methodology-summary,nccl-ep,swap-blocks}.md 与 main 上的代码一致。
所有公开的结果行都会基于 main 重新测量,因此只用于区分旧版结果行的说明被删除;每条现行规则背后的
证据予以保留。

- README 只保留用法和覆盖表:每个后端在各模式下的运行范围、cases.json 的数量(共 195 个请求、
  181 个可运行、14 个不支持)、会改变结果行但不改变 case_id 的环境变量、operator 文档格式,以及
  哪些资源池需要 stage 目录(h100-dgxc、b300、gb300 和 AMD 资源池)。
- methodology.md 删除了存储代际区分字段、跳过版本 2 的规则、旧的 kernel_generation 名称、
  -cudagraph-in-graph-ar 与未对齐的 eager 系列、chain_regime_passed 改名记录以及旧 schema 说明。
  各后端的证据(包括 README 中 DeepEP V2 的版本固定、EFA 和 MoRI 堆模式说明)集中到新的 Backends
  一节,并新增一张列出当前 kernel_generation 系列的表。
- 修正的过时说法:bash -n 检查只读取第一个文件;uccl-ep 和 MoRI 的低延迟模式同样止于 256 个
  token;主机门控的局限是两条而不是三条;默认路由的 socket 回退与 Execution Isolation 的描述
  矛盾,现已补上 h100-dgxc;stage_dir 的权限并不会被检查;不存在使用镜像自带 DeepEP 的路径;
  B300 上的 DeepEP V2 低延迟行不在矩阵中,而不是不支持行;MI300X/MI325X 的 EP16 原因不再引用已
  下线的 tw 资源池;MoRI 的堆模式保护只针对 scale-out;GB/s 由 bandwidth.py 推导而非结果中直接
  给出;graph 化的 FP8 行将 stage 报告为不可用;注册表的 network 块优先于 operator 文档。
- operatorx/CI.md 不再声称 CollectiveX 将 b300 的 stage 放在 passwd 主目录中,shared/README 不再
  声称 CollectiveX 依赖 inferencex-e2e 的辅助代码。
- 根据评审修正:以非 registry squash_dir 所属账户手动运行时,需要自己的 squash_dir 或
  storage_roots(README 示例改用 storage_roots);nccl-ep.md 解释 -static;Execution Isolation
  说明每个分片都会清除继承的选择器,并记录 single_node_rdma_devices 与 DeepEP 的
  EP_OVERRIDE_RDMA_SL;UCCL-EP 的 FP8 在 gfx942 上为 e4m3fnuz;MoRI SDMA 的引用改为说明 FP4 配方
  只在 prefill 角色上开启它,并注明配方使用 AUTO 启动模式;FP8 每次调用开销只归于实测的 graph
  用例;squash 目录为节点本地时按节点导入镜像;删除无依据的 2-6% 漂移数字;bandwidth.py 的注释
  不再声称 graph 行只公开 p50。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant