Skip to content

[Feature] refresh the PowerX tutorial: run config for default multi-node power, AMD multi-node and CPU power, plus a views guide / [Feature] 更新 PowerX 教程:运行配置支持默认多节点功耗、AMD 多节点与 CPU 功耗,并新增视图导览 - #1942

Open
edwingao28 wants to merge 2 commits into
mainfrom
powerx-run-config-refresh

Conversation

@edwingao28

@edwingao28 edwingao28 commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

What changed

The run-config widget on /pwx/tutorial was pinned to InferenceX e1356ab and had fallen behind the matrix. It still said multi-node AMD power was not collected, it emitted fields the current schema rejects (num-nodes, single-node rows without gpus-per-worker), and most of the entries it named have since been retired. It now mirrors InferenceX 5b9b8564:

  • Each snippet is a real matrix entry, cut to its first search-space row: one each for HGX, NVL72 and AMD, single-node and multi-node, fixed sequence and AgentX.
  • Multi-node power is measured by default on every cluster with a GPU exporter, so AMD multi-node (cluster:mi355x-amds, device-metrics-exporter) can now be selected.
  • Strictness has three options:
    • Best effort: no field; a failed window keeps the result.
    • Require GPU power: power: true.
    • Require GPU + CPU power: power: true plus cpu-power: true, available on NVL72 (ACPI) and AMD (RAPL).
    • On a single-node fixed-sequence row, cpu-power: true stands alone.
  • Options the matrix or clusters reject are disabled, with the reason shown on click:
    • single-node power
    • cpu-power on HGX
    • cpu-power on single-node AgentX
    • NVL72 single-node fixed sequence, which has no entry
  • Old #rc= links are moved to the nearest valid pick (normalizeRunConfig), so links such as #rc=amd_single_fixed_best-effort still open.
  • The code bar names the entry, and the notes match the launcher's power policy (decide_power).
  • The tutorial paragraph above the widget (EN and ZH) and docs/powerx-tutorial.md are updated to match.

Views guide

The tutorial only named GPU Role and Compare At. A new views widget, at the end of Explore PowerX, lists the four dashboard views in tab order. Each row says what the view reads, which controls it adds, and has an Open link. Show As % of TDP sits under Power Draw and names its three panels: Headroom by Interactivity, Draw vs Rating and Sizing to Measured Power.

  • Links come from guideHref (src/lib/powerx/views-guide.ts), which calls the tab's own selectPowerXView, so each opens what clicking the tab would, on /pwx or /zh/pwx.
  • Control names reuse POWERX_VOCAB where Chart Config does.
  • The measured-power note now says AMD MI300X, MI325X and MI355X clusters record CPU package power through RAPL that PowerX does not read yet, so the AMD CPU stays modeled.
  • The "Open PowerX" link and the measured-vs-modeled widget's link go to /pwx instead of the /infx/inference redirect.

Verification

  • Every one of the 22 reachable snippets was merged into its real entry and passed InferenceX's validate_master_config and expand_full_sweep at 5b9b8564. The planner rows carry exactly the chosen power / cpu-power fields.
  • The blocked cases were checked against the same validator: single-node power: true and single-node AgentX cpu-power: true are both rejected.
  • Unit tests: new run-config.test.ts covers:
    • every selection builds a snippet, and none is blocked after normalizing
    • AMD multi-node with each strictness
    • field placement ahead of the worker blocks
    • single-node rules
    • block reasons and fallback
    • hash round trip and old links
  • Widths inspected: 1280 px and 393 px in next dev; before (production) and after screenshots were compared.
  • Views guide: views-guide.test.ts checks that every link round-trips through powerXViewFor to its tab, that % of TDP opens the headroom panels, and that ZH links stay on /zh/pwx; views-widget.test.tsx checks row order, links and the nested % of TDP row. Each Open link was also clicked through in next dev and landed on the right tab and toggles. The section was screenshotted at 1280 px and 390 px, EN and ZH.
  • Checks run locally: tsc, oxlint, oxfmt --check, check:typography, and the app unit suite.

Not verified

  • Cypress was not run locally.
AI model disclosure

Written with Claude Opus 5.5.

中文

改动内容

/pwx/tutorial 上的运行配置组件此前固定在 InferenceX e1356ab,已经落后于当前 matrix:它仍说多节点 AMD 功耗未采集,输出的字段(num-nodes、缺少 gpus-per-worker 的单节点条目)会被当前 schema 拒绝,引用的大多数条目也已退役。现在改为对应 InferenceX 5b9b8564:

  • 每个片段都是真实的 matrix 条目,只保留第一行 search-space:HGX、NVL72、AMD 各一组,分单节点和多节点、固定序列和 AgentX。
  • 多节点功耗在所有带 GPU exporter 的集群上默认采集,因此可以选择 AMD 多节点(cluster:mi355x-amds,device-metrics-exporter)。
  • 严格程度分为三档:
    • 尽力而为:不加字段,窗口无效时保留结果。
    • 要求 GPU 功耗有效:power: true。
    • 要求 GPU + CPU 功耗有效:power: true 加 cpu-power: true,适用于 NVL72(ACPI)和 AMD(RAPL)。
    • 单节点固定序列条目上,cpu-power: true 可以单独使用。
  • matrix 或集群不接受的选项会被禁用,点击时显示原因:
    • 单节点 power
    • HGX 上的 cpu-power
    • 单节点 AgentX 上的 cpu-power
    • 没有对应条目的 NVL72 单节点固定序列
  • 旧的 #rc= 链接会移到最近的有效选项(normalizeRunConfig),因此 #rc=amd_single_fixed_best-effort 这类链接仍能打开。
  • 代码栏会显示条目名,说明文字与启动器的功耗策略(decide_power)一致。
  • 组件上方的教程段落(中英文)和 docs/powerx-tutorial.md 已同步更新。

视图导览

教程原先只介绍了 GPU 角色和对比点。在“动手探索 PowerX”末尾新增 views 组件,按标签顺序列出仪表板的四个视图,每行说明该视图读取什么、新增哪些控件,并提供打开链接。“显示为 TDP 占比”位于功耗视图下,列出三个面板:按交互性划分的功耗余量、功耗 vs 额定值、按实测功耗规划。

  • 链接由 guideHref(src/lib/powerx/views-guide.ts)生成,调用标签本身的 selectPowerXView,打开的内容与点击标签一致,指向 /pwx 或 /zh/pwx。
  • 控件名称与图表配置一样取自 POWERX_VOCAB。
  • 实测功耗说明补充:AMD MI300X、MI325X 和 MI355X 集群通过 RAPL 记录 CPU 封装功耗,PowerX 目前尚未读取,因此 AMD CPU 仍为建模值。
  • “打开 PowerX”链接和实测 vs 建模组件的链接改为直接指向 /pwx,不再经过 /infx/inference 重定向。

验证

  • 22 个可选片段逐一合并进对应的真实条目,在 5b9b8564 上都通过了 InferenceX 的 validate_master_config 和 expand_full_sweep,生成的行只带所选的 power / cpu-power 字段。
  • 被禁用的组合也用同一校验器确认过:单节点 power: true 和单节点 AgentX cpu-power: true 都会被拒绝。
  • 单元测试:新增 run-config.test.ts,覆盖:
    • 每种选择都能生成片段,归一化后没有被禁用的选项
    • AMD 多节点的各档严格程度
    • 字段位于 worker 块之前
    • 单节点规则
    • 禁用原因与回退
    • hash 往返与旧链接
  • 检查宽度:在 next dev 中检查 1280 px 和 393 px,并对比了线上(改动前)与改动后的截图。
  • 视图导览:views-guide.test.ts 检查每个链接经 powerXViewFor 回到对应标签、TDP 占比链接打开余量面板、中文链接停留在 /zh/pwx;views-widget.test.tsx 检查行顺序、链接和嵌套的 TDP 占比行。每个打开链接也在 next dev 中逐一点击,均落在正确的标签和开关上。该部分在 1280 px 和 390 px、中英文下均截图检查。
  • 本地检查:tsc、oxlint、oxfmt --check、check:typography 以及 app 单元测试全部通过。

未验证

  • 未在本地运行 Cypress。

…power, AMD multi-node and CPU power

The run-config widget now mirrors the InferenceX matrix at 5b9b8564. Each
snippet is a real entry cut to its first search-space row. Multi-node power is
measured by default on every cluster with a GPU exporter, AMD included, so
AMD multi-node is selectable. Strictness is best effort, power: true, or
power: true plus cpu-power: true. Options the matrix or clusters reject are
disabled with the reason, and old share links move to the nearest valid pick.

中文:教程中的运行配置组件改为对应 InferenceX 5b9b8564 的 matrix。每个片段都来自真实条目,只保留第一行 search-space。多节点功耗在所有带 GPU exporter 的集群上默认采集(包括 AMD),因此可以选择 AMD 多节点。严格程度分为尽力而为、power: true、以及 power: true 加 cpu-power: true。matrix 或集群不接受的选项会被禁用并给出原因,旧的分享链接会移到最近的有效选项。
@edwingao28
edwingao28 requested a review from adibarra as a code owner December 3, 2026 18:58
@vercel

vercel Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
inferencemax-app Ready Ready Preview Dec 3, 2026 7:46pm UTC

Request Review

…t /pwx

The tutorial named only GPU Role and Compare At. A new views widget lists the
four dashboard views in tab order with what each reads, the controls it adds
and an Open link, plus Show As % of TDP under Power Draw with its three panels
(Headroom by Interactivity, Draw vs Rating, Sizing to Measured Power). Links
come from the tab's own selectPowerXView, so each opens what clicking the tab
would, on /pwx or /zh/pwx. The measured-power note now says AMD clusters record
CPU package power through RAPL that PowerX does not read yet, and the Open
PowerX and measured-vs-modeled links go to /pwx instead of redirecting.

中文:教程原先只介绍了 GPU 角色和对比点两个控件。新增的视图组件按标签顺序列出仪表板的四个视图,说明各自读取什么、新增哪些控件,并提供打开链接;功耗视图下另有“显示为 TDP 占比”一行,列出其三个面板(按交互性划分的功耗余量、功耗 vs 额定值、按实测功耗规划)。链接使用标签本身的 selectPowerXView 生成,打开的内容与点击标签一致,分别指向 /pwx 或 /zh/pwx。实测功耗说明补充:AMD 集群通过 RAPL 记录 CPU 封装功耗,但 PowerX 目前尚未读取;“打开 PowerX”和实测 vs 建模图的链接改为直接指向 /pwx,不再经过重定向。
@edwingao28 edwingao28 changed the title [Feature] refresh the PowerX tutorial run config for default multi-node power, AMD multi-node and CPU power / [Feature] 更新 PowerX 教程运行配置:默认多节点功耗、AMD 多节点与 CPU 功耗 [Feature] refresh the PowerX tutorial: run config for default multi-node power, AMD multi-node and CPU power, plus a views guide / [Feature] 更新 PowerX 教程:运行配置支持默认多节点功耗、AMD 多节点与 CPU 功耗,并新增视图导览 Dec 3, 2026

This branch was successfully deployed

1 active deployment
Preview — f0ce763b Deployed Dec 3, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant