Repository navigation
Conversation
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
One backend per PR: PR title tags & labels: |
NOT READY FOR HUMAN REVIEWPR Self-ReviewRevision Waiting for the PR author. The readiness report will appear after the self-review answers are complete for this revision. Questions to answer in the PR description
Edit the Missing or invalid answers
Shadow mode reports what would block but keeps the status successful. Set |
Model ABBA: combined inference-anchor + grouped-GEMM stream changesBoth arms include the prior MoE dispatch change (#7210), existing Gluon layout cache (#7090), ATOM #2761 and the standalone-cache fix (ROCm/ATOM#2858). The candidate adds #7217 + #7219 together. This is a combination test, not attribution to either PR separately. M3 MXFP4, TP4/gfx1250, Simple, FP8 KV, EAGLE3; fixed synthetic acceptance 0.5933. Performance only, not generated-text accuracy. Same recorded prompt hashes across all four fresh processes. Source imports checked in all worker processes. Per process: 20 measured short requests, 20 measured long-prefix requests, six measured C2 rounds. cProfile diagnostics run after all timing samples and are excluded. No PyTorch profiler in timing.
Descriptive candidate-vs-baseline comparison using the mean of per-process medians:
This four-process experiment does not establish a robust end-to-end speedup. The raw order/spread and any regressions above are retained. Do not sum the independent operator microbenchmark savings or interpret this combination run as per-PR throughput evidence. Artifacts: f01 |
|
No activity for 15 days, so this is now labelled |
Summary
For non-Tensor-first custom operators, keep the existing leading
Tensor dummyschema but use an existing ordinary inference Tensor as the dispatch anchor when safe, instead of allocating a fresh dummy on every call.The target is scalar-handle-first collective wrappers such as
all_reduce_gfx1250and fused all-reduce/RMSNorm. Tensor-first operators are unchanged.Compatibility boundaries
torch.Tensor,requires_grad=False, and the configured CPU/CUDA device type. Subclasses/Parameters, grad tensors, absent/invalid arguments, device mismatch, non-simple device settings, optional-only signatures and scalar-returning operators retain the original path.torch.opsschema calls included.Validation
Based on main
55ed07e9427d045d63841c412f088dc8f16c85de; core and gfx1250 custom-allreduce native modules rebuilt in an isolated JIT directory for this main.torch.emptycall.torch.func.functionalizerejects the pre-existing in-place custom-op schema in this torch version. The unchanged-wrapper control rejects identically; no new support is claimed. Pure functionalization and AOT functionalization of declared mutation are separately tested.An initial latest-main run used an older native .so and failed on a missing IPC registration symbol; it was not accepted as a result. Both native modules were rebuilt, then TP4/TP2 rerun. A TP2 fixed-port collision was retried using automatic rendezvous; no unrelated service was stopped.
Performance: small eager collective calls, not transport bandwidth
gfx1250 f01, TP4 independent process repeat, same real collective kernels/inputs. 300 warmup calls per arm, then 31 shuffled paired samples of 100 eager calls each. Synchronize and distributed barrier before each sample; completion is the maximum rank time for that sample. No profiler inside timing.
Each inference call saves one dummy allocation. In this repeated small-message run the end-to-end saving is 0.58–0.92 us/call; this is host-dispatch overhead, not a faster GPU reduction.
The earlier short-warmup TP4 M1 RMSNorm run was noisy/regressed when comparing independent medians (34.45 -> 42.94 us). All raw samples are retained; the repeat above increases warmup and reports paired samples rather than discarding the negative run. Large M2517 collectives were essentially unchanged in completion time, with small positive/negative noise despite lower CPU submission time. No whole-model or large-message bandwidth gain is claimed.
Artifacts on f01:
~/bench/m3_dispatch_anchor_20261030/(verified_collectives.json,repeat_collectives_summary.json, per-rank raw samples and logs).