fix: size a multinode worker's GPU limit per pod #1173
All Vouch review confidence checks passed
Residual risk 0.27 = Change Risk (0.49) × (1 − Review Confidence (0.44)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.49 · 176 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 10%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.310
No Reviewer Assigned
no_reviewer_assigned
0.120
Real PR Conversation Timeline
1 comments
"Review active on #1173"
general
weight: 0.35
dundysm
Fixes #1172
Why and what changed
A DGD GPU limit is per Pod, and a worker with
multinode.nodeCountruns one Pod per node (Dynamo's 16-GPU recipes usenodeCount: 2withgpu: "8"). The k8s builder put the worker's total GPU count in the limit, so a TP16 worker on 8-GPU nodes came out asnodeCount: 2withgpu: "16": each Pod asks for 16 GPUs on an 8-GPU node and never schedules, and AISim's own DGD config adapter (_gpu_limit _node_count) reads the same file back as a 32-GPU worker.This change, in the
render_workerhelper of all three backends ink8s_builder.py(kept replicated per backend, as the file asks):nodeCountas before (ceil(total / num_gpus_per_node)) and emitstotal // nodeCountas the per-Pod GPU limit; the EFA resource request follows the same per-Pod count;k8s_deploy.yaml;The FPM target lowers the same DGD worker and read its limit as the total (
_resolve_topologydivided it bynodeCount); it now reads it as the per-node count and derives the total aslimit nodeCount. The FPM resource Pods already request the per-node count, so their output does not change.Review map
render_workerGPU sizing in_populate_vllm(the sglang and trtllm copies are identical), then_resolve_topologyinfpm_builder.pyk8s_deploy.yaml(with a warning naming the counts) instead of an unschedulable oneEvidence
PYTHONPATH=src python -m pytest tests/unit/generator tests/unit/sdk/config_adapter/test_dynamo.pyfrompython/aisim: 1189 passed, 4 skipped; the one failure,test_module_bridge_recommend_gpus.py::test_uses_total_gpus_needed_over_task_budget, is a pytest-timeout while Hugging Face rate limited the op-latency download in my environment, unrelated to this change.tests/unit/generator/test_k8s_multinode_gpu_limit.py(8 cases): TP16 on 8-GPU nodes givesnodeCount: 2andgpu: "8"for vllm, sglang and trtllm; a 4-GPU worker keepsgpu: "4"and nomultinode; 12 GPUs give two Pods of 6; 9 GPUs emit no DGD and log the reason. Onmain5 of them fail (assert '16' == '8',assert '12' == '6', and a DGD is emitted for 9 GPUs).test_fpm_artifacts.py(TP and DP topologies) still pass unchanged.ruff checkandruff format --checkclean on the changed files.{'nodeCount': 2} {'gpu': '16'}onmainand{'nodeCount': 2} {'gpu': '8'}with this change.Modeling or data provenance
N/A
Tracking