Repository navigation
Conversation
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
One backend per PR: PR title tags & labels: |
READY FOR HUMAN REVIEWPR Self-ReviewRevision Author self-review accepted. Readiness report: Author answers
Show the author's self-review answersBehavior and intentValidation and unverified scopePR-specific questionChanged op testsPR state
Copilot findings
Code and op-test hygiene
Required CI
Shadow mode reports what would block but keeps the status successful. Set |
Complete M3 model ABBA: null-pointer metadata follow-upOnly the omitted-operand metadata change differs. Both arms use the same frozen prior host/cache/FP4 compact-policy/route-safety stack, M3 TP4, Simple, FP8 KV, EAGLE3 and synthetic acceptance 0.5933. This is not a current-main model comparison or a production-quality test. 30 short +30 long-prefix measured requests and 10 measured C2 pairs after 20 C2 warmup pairs per process. No profiler during timing; identical lightweight forward/event logging in each arm. cProfile runs only after all measured samples.
Descriptive mean-of-process-medians changes (not statistical significance):
Recorded timed-window compile misses by arm: All source/script hashes and expected worker import paths verified; all 70 measured input entries match between arms. Output text hashes matching baseline A: Post-timing rank0 short-prefill
Only two baseline and two candidate processes, sequential ABBA, possible process drift. Small changes may be noise. No generalized throughput or accuracy improvement claimed. Operator numerical/graph correctness is validated separately in the PR. Artifacts: |
|
CI audit (2026-11-01): MI35X shard4 reports a 90-minute Tests-step timeout and step-summary size >1024k. Downloaded its complete artifact: 420324 lines, no Requesting one failed-job rerun of run 41215558861. No source, timeout, tolerance or unrelated test changes are made to bypass the gate. Other first-attempt results and timeout artifacts remain available. |
|
No activity for 15 days, so this is now labelled |
Summary
Pass omitted MoE launch operands as an explicit null
PointerJitArg, instead of allocating zero-element Torch tensors solely to recover their nulldata_ptr().ptr_arg(None)constructs the same default Uint8/global/trivial-alignment pointer descriptor and C ABI asptr_arg(torch.empty(0)). Existing Tensor/FakeTensor handling remains.This removes small repeated Python Tensor allocations/metadata operations. It does not remove large GPU storage allocations or claim lower device-memory consumption.
Validation
Release base:
bd4ff1c7087970a5b9af92f90c83635e4240f562; reviewed head:0af25c06f51b583d8022b9bed3bbe81b4c0f18f3.python3 -m pytest -q op_tests/test_moe_null_pointer.py.git diff --checkpass.Initial experimental tests had two incorrect assumptions (psum as padded inclusive sum, and EP truncation applied to the ordinary TP route / gather tail auto-zeroing). The old implementation reproduced the failures. The final tests use padded starts plus valid counts, the real EP branch for truncation, and a preserved tail sentinel. No numeric tolerance was relaxed.
Real full-MoE timing (host optimization, not model throughput)
gfx1250, M3 TP4-per-rank operator shape E129/top5/K6144/I768, SwiGLU. Single GPU with real route/quant/GEMM/reduce; not distributed TP4.
Python 3.12, FlyDSL 0.4.1,
rocm/fw-bringup-mlperf:gfx1250-atom-20261023, WARNING logging. Unchanged main kernels, matched inputs. Two independent processes on two physical GPUs, 75 warmups/arm, 21 randomized paired rounds ×120 eager calls; synchronize before and after each timed block. Report CPU submission; completed timings are also retained.Paired saving is the median of per-round differences, so it need not equal the difference of separately reported medians. M256 takes fewer affected paths and has only 0.38–1.02µs improvement; it is not reported as a large win.
Graph negative controls (8 full MoE calls/capture, 21 randomized paired samples, GPU events): relative differences range -0.55% to +1.09% across A4W4/A8W4 M1/256/2517. No graph/device speedup or strict graph non-regression claim is made from this small spread; numerical graph replay and launch-sequence identity pass.
Full M3 model ABBA is now complete: verified four-arm report. Descriptive mean-of-process-medians: short latency -1.71%, long-prefix latency -0.43%, C2 throughput -0.69%. The return baseline drifted upward; these limited data do not establish a whole-model speedup. No timed compile misses, but four Triton cache-hit loading events in return-baseline C2. All rounds retained. Post-timing profiles confirm 228 fewer
torch.emptycalls per short prefill on each rank. Synthetic acceptance is performance-only, not a quality oracle.Artifacts on f01:
~/bench/m3_null_pointer_20261031/(release_validation.json, GPU/JUnit logs, both release benchmark JSONs, graph negative samples, baseline/candidate sources and traces); model~/bench/m3_null_model_20261031/.PR Self-Review
Reviewed revision
0af25c06f51b583d8022b9bed3bbe81b4c0f18f3Behavior and intent
Omitted launch arguments no longer construct empty Torch tensors solely for address zero. This hot eager overhead repeats per MoE layer; the pointer descriptor, ABI, optional-operand semantics and kernels remain the same. No pointer cache or real-output reuse is introduced.
Validation and unverified scope
Commands/results/hardware above. Run
python3 -m pytest -q op_tests/test_moe_null_pointer.pyin a ROCm/Python3.12 environment with the release checkout and FlyDSL0.4.1 on PYTHONPATH; physical GPU1 is selected with ROCR_VISIBLE_DEVICES=1 and HIP_VISIBLE_DEVICES=0 after ROCr renumbering. Black/Ruff checks cover the three changed modules and test file. Unverified: whole-model performance/quality, other-architecture performance, distributed EP transport, every unrelated ptr_arg consumer, and statistical graph-speed equivalence. Real EP local routing and optional arguments are tested; no distributed communication change is made.PR-specific question
Before the patch
ptr_arg(None)raises on data_ptr; ABI/FakeTensor-null assertions fail. The tests also require fewer zero-element constructions in the full public call, which numerical kernel tests alone cannot detect. Dynamic EP count/inverse-map/sentinel and live-pointer tests are regression controls expected to preserve previous correct behavior, not advertised as new pre-patch correctness failures.Changed op tests
op_tests/test_moe_null_pointer.pyadds optional-null descriptor/ABI/cache-signature and host-allocation coverage absent from canonical device arithmetic tests. It reuses the existing grouped-GEMM reference for six format/shape cases, and checks changed-input graph replay plus dynamic optional operands. The Tensor-backed-null oracle inside repository tests is a correctness oracle, not a performance baseline; performance used actual original source functions in independent experiments.