{
 "validation": "Attention rails without the dispatch-entry barrier (per-domain FFN prefix): GPU suite, deferred-put fault injection with negative controls, comm-only screens",
 "cluster": "kermit, 4-GPU pods (one per node, one NVLink domain of 4 x H200), InfiniBand, GIN",
 "native_source_sha256": "bc3d223c57a3131d0fb1d5b1959f161b0b94f0a79828e155bc2afe174be83839",
 "gpu_suite": {
  "args": "tests/gpu/deepep.py --top-k 8 --hybrid on",
  "runs": [
   "pd-2x4-f1-bf16-c8: ok, ranks 8, FFN [0, 4], bf16, capacity 8, hidden 256, top-k 8, 18 eager cases, 36 graph replays, 936 checked graph exchanges per rank",
   "pd-2x4-f1-bf16-c64-h2k: ok, ranks 8, FFN [0, 4], bf16, capacity 64, hidden 2048, top-k 8, 18 eager cases, 36 graph replays, 936 checked graph exchanges per rank",
   "pd-2x4-f1-fp8-c8: ok, ranks 8, FFN [0, 4], fp8, capacity 8, hidden 256, top-k 8, 16 eager cases, 32 graph replays, 832 checked graph exchanges per rank",
   "pd-2x4-f1-fp8-c64-h2k: ok, ranks 8, FFN [0, 4], fp8, capacity 64, hidden 2048, top-k 8, 16 eager cases, 32 graph replays, 832 checked graph exchanges per rank",
   "pd-2x4-f1-fp8-c8-topk2: ok, ranks 8, FFN [0, 4], fp8, capacity 8, hidden 256, top-k 2, 16 eager cases, 32 graph replays, 832 checked graph exchanges per rank",
   "pd-2x4-f1-fp8-c512-h4k: ok, ranks 8, FFN [0, 4], fp8, capacity 512, hidden 4096, top-k 8, 16 eager cases, 32 graph replays, 832 checked graph exchanges per rank",
   "pd-2x4-f2-fp8-c8: ok, ranks 8, FFN [0, 1, 4, 5], fp8, capacity 8, hidden 256, top-k 8, 16 eager cases, 32 graph replays, 832 checked graph exchanges per rank",
   "pd-2x4-f2-bf16-c64-h2k: ok, ranks 8, FFN [0, 1, 4, 5], bf16, capacity 64, hidden 2048, top-k 8, 18 eager cases, 36 graph replays, 936 checked graph exchanges per rank",
   "pd-2x4-f2-fp8-c512-h4k: ok, ranks 8, FFN [0, 1, 4, 5], fp8, capacity 512, hidden 4096, top-k 8, 16 eager cases, 32 graph replays, 832 checked graph exchanges per rank",
   "pd-2x4-f3-fp8-c8: ok, ranks 8, FFN [0, 1, 2, 4, 5, 6], fp8, capacity 8, hidden 256, top-k 8, 16 eager cases, 32 graph replays, 832 checked graph exchanges per rank",
   "pd-2x4-f3-bf16-c64-h2k: ok, ranks 8, FFN [0, 1, 2, 4, 5, 6], bf16, capacity 64, hidden 2048, top-k 8, 18 eager cases, 36 graph replays, 936 checked graph exchanges per rank",
   "pd-2x4-f1-fp8-c8-ctl-union: ok, ranks 8, FFN [0, 4], fp8, capacity 8, hidden 256, top-k 8, 16 eager cases, 32 graph replays, 832 checked graph exchanges per rank",
   "pd-2x4-f1-fp8-c8-ctl: ok, ranks 8, FFN [0, 4], fp8, capacity 8, hidden 256, top-k 8, 16 eager cases, 32 graph replays, 832 checked graph exchanges per rank",
   "pd-3x4-f1-fp8-c8: ok, ranks 12, FFN [0, 4, 8], fp8, capacity 8, hidden 256, top-k 8, 16 eager cases, 32 graph replays, 832 checked graph exchanges per rank",
   "pd-3x4-f1-bf16-c64-h2k: ok, ranks 12, FFN [0, 4, 8], bf16, capacity 64, hidden 2048, top-k 8, 18 eager cases, 36 graph replays, 936 checked graph exchanges per rank",
   "pd-3x4-f1-fp8-c512-h4k: ok, ranks 12, FFN [0, 4, 8], fp8, capacity 512, hidden 4096, top-k 8, 16 eager cases, 32 graph replays, 832 checked graph exchanges per rank",
   "pd-3x4-f2-fp8-c8: ok, ranks 12, FFN [0, 1, 4, 5, 8, 9], fp8, capacity 8, hidden 256, top-k 8, 16 eager cases, 32 graph replays, 832 checked graph exchanges per rank",
   "pd-3x4-f2-fp8-c64-h2k: ok, ranks 12, FFN [0, 1, 4, 5, 8, 9], fp8, capacity 64, hidden 2048, top-k 8, 16 eager cases, 32 graph replays, 832 checked graph exchanges per rank",
   "pd-2x4-f1-fp8-c8-direct: ok, ranks 8, FFN [0, 4], fp8, capacity 8, hidden 256, top-k 8, 16 eager cases, 32 graph replays, 832 checked graph exchanges per rank",
   "pd-2x4-f1-fp8-c8-fastafd: ok, ranks 8, FFN [0, 4], fp8, capacity 8, hidden 256, top-k 8, 16 eager cases, 32 graph replays, 832 checked graph exchanges per rank",
   "gp-2x4-f4-fp8-c8: ok, ranks 8, FFN [0, 1, 2, 3], fp8, capacity 8, hidden 256, top-k 8, 16 eager cases, 32 graph replays, 832 checked graph exchanges per rank",
   "gp-2x4-f2-fp8-c8-union: ok, ranks 8, FFN [0, 1], fp8, capacity 8, hidden 256, top-k 8, 16 eager cases, 32 graph replays, 832 checked graph exchanges per rank",
   "gp-2x4-f2-fp8-c8-mixed: ok, ranks 8, FFN [0, 1], fp8, capacity 8, hidden 256, top-k 8, 16 eager cases, 32 graph replays, 832 checked graph exchanges per rank",
   "gp-3x4-f2-bf16-c8-mixed: ok, ranks 12, FFN [0, 1], bf16, capacity 8, hidden 256, top-k 8, 18 eager cases, 36 graph replays, 936 checked graph exchanges per rank",
   "gp-1x4-f1-fp8-c8: ok, ranks 4, FFN [0], fp8, capacity 8, hidden 256, top-k 8, 16 eager cases, 32 graph replays, 832 checked graph exchanges per rank"
  ],
  "invalid_routes": "dummy, duplicate, negative, wide: each stops at the route check"
 },
 "fault_injection": {
  "method": "rail-faults.py (patch_script) on scratch copies of this tree: Attention GPUs outside the last domain defer its dispatch puts and tails to the end of the channel (3 ms) and its replies and signal until after the channel's own wait (600 us on domain 0, 300 us elsewhere); domain 0 also waits 1 ms after signalling, so domain 1's next dispatch lands while domain 0 still waits, reduces and stages. pos: this tree. control: pos with the dispatch-entry rail half restored. neg-words: combine signals on the dispatch tails' words. neg-reply: reply inbox (and the epilogue pointer) at DeepEP's offset. neg-staging: combine staging at DeepEP's offset. At FP8 DeepEP's reply inbox and staging stay below the dispatch inbox, so those two controls run at BF16.",
  "runs": [
   "ictl-3x4-f1-fp8: ok, 92 deferrals",
   "ipos-3x4-f2-fp8: ok, 51 deferrals",
   "ipos-3x4-f1-fp8: ok, 92 deferrals",
   "ipos-3x4-f1-bf16: ok, 93 deferrals",
   "ipos-3x4-f2-bf16: ok, 55 deferrals",
   "ipos-2x4-f1-fp8: ok, 96 deferrals",
   "inw-3x4-f1-fp8: FAIL, 30 deferrals, signals ['wait all) timeout', 'barrier timeout', 'Assertion', 'Traceback']",
   "inw-3x4-f2-fp8: FAIL, 12 deferrals, signals ['wait all) timeout', 'barrier timeout', 'Assertion', 'Traceback']",
   "inr-3x4-f1-bf16: ok, 93 deferrals",
   "inr-3x4-f2-bf16: ok, 55 deferrals",
   "ins-3x4-f1-bf16: FAIL, 63 deferrals, signals ['Traceback']",
   "ins-3x4-f2-bf16: FAIL, 34 deferrals, signals ['Traceback']",
   "ipos-3x4-f1-bf16-c512: ok, 104 deferrals",
   "inr-3x4-f1-bf16-c512: FAIL, 63 deferrals, signals ['Assertion', 'AssertionError', 'Traceback']",
   "inr-3x4-f2-bf16-c512: FAIL, 34 deferrals, signals ['Assertion', 'AssertionError', 'Traceback']",
   "ins-3x4-f1-bf16-c512: FAIL, 63 deferrals, signals ['Traceback']",
   "ins-3x4-f2-bf16-c512: FAIL, 34 deferrals, signals ['Traceback']"
  ],
  "negative_root_causes": {
   "neg-words": "domain 0's combine waits on lane 1 time out holding 4294967298 = (finish flags 2, tail 1) instead of (1, 0): domain 1's combine signal plus its next dispatch's finish tail (f = 1 and 2, FP8)",
   "neg-reply": "at capacity 512, 55.0-55.7% of domain 0's outputs wrong on every Attention rank: domain 1's next dispatch overwrote replies not yet reduced (f = 1 and 2, BF16). At capacity 64 (below the channel count) a peer's inbox region starts past DeepEP's reply inbox, so it passes, as expected",
   "neg-staging": "capacity 64, f = 1: 28.4-29.2% of the lagging domain's replies wrong on its Attention ranks; domain 1's next dispatch overwrote replies domain 0 had staged for it but its NIC had not yet read (BF16). The f = 2 run and both capacity-512 runs fail as well (every rank exits non-zero; the failing node's log was not kept)"
  },
  "patch_script": "\"\"\"rail-faults.py <tree> <pos|neg-words|neg-reply|neg-staging>: deferred-put fault injection for Attention rails\nwithout entry barriers (per-domain FFN prefix). Scratch only, never shipped.\n\nPatches the generated per-domain copies of a scratch tree. In every mode, on Attention GPUs outside the last\nNVLink domain, the last domain's dispatch puts and finish tails wait until the end of the channel behind a 3 ms\nglobaltimer spin, and its combine replies and signals until after the channel's own wait behind a 300 us spin\n(the section 11 patches, with a runtime fault domain). One destination then lags while the others move on:\n- pos: the protocol as shipped. Must pass.\n- neg-words: combine signals share the dispatch tails' words again. Must fail (hang or mismatch).\n- neg-reply: every rank's reply inbox stays at DeepEP's offset. Must fail where it overlaps the dispatch inbox.\n- neg-staging: every rank's combine staging stays at DeepEP's offset. Must fail with three or more domains.\nv4: domain 0 also waits 1 ms after signalling and defers its replies 600 us instead of 300 us, so with\nthree or more domains domain 1's next dispatch (tails, payload) lands while domain 0 still waits, reads its\nreplies and stages them.\nEvery deferral prints \"AFDEP_FAULT_MARK <tag>\" at 1, 2, 4, 8, ... events per process.\n\"\"\"\nimport sys\nfrom pathlib import Path\n\ntree, mode = Path(sys.argv[1]), sys.argv[2]\nassert mode in (\"pos\", \"neg-words\", \"neg-reply\", \"neg-staging\"), mode\nimpls = tree / \"afdep/third_party/deepep_v2/deep_ep/include/deep_ep/impls\"\n\n\ndef patch(name, old, new):\n    path = impls / name\n    text = path.read_text()\n    assert text.count(old) == 1, (name, text.count(old), old[:90])\n    path.write_text(text.replace(old, new))\n\n\nHELPERS = '''namespace deep_ep::elastic {\n\n// FAULT INJECTION (scratch only, rail-faults.py)\nstatic __device__ unsigned long long afd_fault_events = 0;\n__device__ __forceinline__ void afd_fault_spin(const unsigned long long ns) {\n    unsigned long long t0, t;\n    asm volatile(\"mov.u64 %0, %%globaltimer;\" : \"=l\"(t0));\n    do { asm volatile(\"mov.u64 %0, %%globaltimer;\" : \"=l\"(t)); } while (t - t0 < ns);\n}\n__device__ __forceinline__ void afd_fault_mark(const char* tag, const int rank) {\n    const auto n = atomicAdd(&afd_fault_events, 1ull) + 1;\n    if ((n & (n - 1)) == 0)\n        printf(\"AFDEP_FAULT_MARK %s rank=%d events=%llu\\\\n\", tag, rank, n);\n}\n'''\n\nD = \"afdep_domain_hybrid_dispatch.cuh\"\npatch(D, \"namespace deep_ep::elastic {\\n\", HELPERS)\npatch(D, \"        int stored_scaleout_tail = 0, stored_old_scaleout_tail = 0;\\n\",\n      \"        int stored_scaleout_tail = 0, stored_old_scaleout_tail = 0;\\n\"\n      \"        // FAULT: defer the last domain's puts and tails to the end of the channel.\\n\"\n      \"        const int fault_domain = scaleout_rank_idx == kNumScaleoutRanks - 1 ? -1 : kNumScaleoutRanks - 1;\\n\"\n      \"        int fault_phase = 0;  // 0/1: skip the delayed lane; 2: only the delayed lane\\n\"\n      \"        int deferred_token[32], deferred_slot[32], num_deferred = 0;\\n\")\npatch(D, \"            if (lane_idx < kNumScaleoutRanks and (not kAfdDirectional or lane_idx < kAfdFfnScaleoutRanks) and\\n\",\n      \"            const bool fault_lane = lane_idx == fault_domain;\\n\"\n      \"            if ((fault_phase == 2 ? fault_lane : not fault_lane) and\\n\"\n      \"                lane_idx < kNumScaleoutRanks and (not kAfdDirectional or lane_idx < kAfdFfnScaleoutRanks) and\\n\")\npatch(D, \"            if (stored_dst_slot_idx >= 0 and stored_dst_scaleout_rank_idx != scaleout_rank_idx) {\\n\"\n         \"                gin.put<ncclTeamTagRail>(\\n\",\n      \"            if (stored_dst_slot_idx >= 0 and stored_dst_scaleout_rank_idx == fault_domain) {\\n\"\n      \"                if (num_deferred < 32) { deferred_token[num_deferred] = token_idx; deferred_slot[num_deferred] = stored_dst_slot_idx; }\\n\"\n      \"                ++ num_deferred;\\n\"\n      \"            } else if (stored_dst_slot_idx >= 0 and stored_dst_scaleout_rank_idx != scaleout_rank_idx) {\\n\"\n      \"                gin.put<ncclTeamTagRail>(\\n\")\npatch(D, \"        // Flush unflushed tails\\n        update_scaleout_tail(true);\\n\",\n      \"        // Flush unflushed tails (FAULT: on-time domains first, then the delayed one)\\n\"\n      \"        fault_phase = 1;\\n\"\n      \"        update_scaleout_tail(true);\\n\"\n      \"        if (fault_domain >= 0) {\\n\"\n      \"            afd_fault_spin(3000000);\\n\"\n      \"            EP_DEVICE_ASSERT(num_deferred <= 32);\\n\"\n      \"            for (int k = 0; k < num_deferred; ++ k)\\n\"\n      \"                gin.put<ncclTeamTagRail>(\\n\"\n      \"                        scaleout_recv_buffer.get_token_buffer(deferred_slot[k]).get_base_ptr(),\\n\"\n      \"                        scaleout_send_buffer.get_token_buffer(deferred_token[k]).get_base_ptr(),\\n\"\n      \"                        tma_buffer.get_num_bytes<false>(), fault_domain, ncclGinOptFlagsAggregateRequests);\\n\"\n      \"            // Warp-uniform: num_deferred is per lane, so no lane-divergent elect.\\n\"\n      \"            if (__any_sync(0xffffffffu, num_deferred > 0) and channel_idx == 0 and lane_idx == 0)\\n\"\n      \"                afd_fault_mark(\\\"dispatch\\\", rank_idx);\\n\"\n      \"            __syncwarp();\\n\"\n      \"        }\\n\"\n      \"        fault_phase = 2;\\n\"\n      \"        update_scaleout_tail(true);\\n\")\n\nC = \"afdep_domain_hybrid_combine.cuh\"\npatch(C, \"namespace deep_ep::elastic {\\n\", HELPERS)\npatch(C, \"        void* last_send_token_buffer_ptr = nullptr;\\n\",\n      \"        void* last_send_token_buffer_ptr = nullptr;\\n\"\n      \"        // FAULT: defer replies and signals to the last domain until after this channel's wait.\\n\"\n      \"        const int fault_domain = (afd_holder or scaleout_rank_idx == kNumScaleoutRanks - 1) ? -1 : kNumScaleoutRanks - 1;\\n\"\n      \"        void* deferred_recv[64]; void* deferred_send[64]; int num_deferred = 0;\\n\")\npatch(C, \"                if (last_src_scaleout_rank_idx != scaleout_rank_idx) {\\n\",\n      \"                if (last_src_scaleout_rank_idx == fault_domain) {\\n\"\n      \"                    if (num_deferred < 64) { deferred_recv[num_deferred] = last_recv_token_buffer_ptr; deferred_send[num_deferred] = last_send_token_buffer_ptr; }\\n\"\n      \"                    ++ num_deferred;\\n\"\n      \"                } else if (last_src_scaleout_rank_idx != scaleout_rank_idx) {\\n\")\nsignal_new = (\"workspace_layout.get_scaleout_channel_signaled_tail_ptr(channel_idx, scaleout_rank_idx) + \"\n              \"kAfdDomainCombineWords\" if mode != \"neg-words\"\n              else \"workspace_layout.get_scaleout_channel_signaled_tail_ptr(channel_idx, scaleout_rank_idx)\")\npatch(C, \"            if (afd_signal) {\\n\",\n      \"            if (afd_signal and lane_idx != fault_domain) {\\n\")\n# v4: domain 0's Attention GPUs wait late, after signalling, so domain 1's next dispatch (not deferred)\n# (tails, payload) can land while they still wait for and read this combine's signals and replies.\npatch(C, \"            // Wait tail arrival\\n\",\n      \"            if (not afd_holder and scaleout_rank_idx == 0)\\n\"\n      \"                afd_fault_spin(1000000);\\n\"\n      \"            // Wait tail arrival\\n\")\npatch(C, \"        __syncwarp();\\n    }\\n\\n    // No barrier at epilogue\\n\",\n      \"        __syncwarp();\\n\"\n      \"        if (fault_domain >= 0) {\\n\"\n      \"            // v3: domain 0 lags its deferred replies longest, so a peer's next dispatch lands first.\\n\"\n      \"            afd_fault_spin(scaleout_rank_idx == 0 ? 600000 : 300000);\\n\"\n      \"            if (ptx::elect_one_sync()) {\\n\"\n      \"                EP_DEVICE_ASSERT(num_deferred <= 64);\\n\"\n      \"                for (int k = 0; k < num_deferred; ++ k)\\n\"\n      \"                    gin.put<ncclTeamTagRail>(deferred_recv[k], deferred_send[k], token_layout.get_num_bytes<false>(),\\n\"\n      \"                                             fault_domain, ncclGinOptFlagsAggregateRequests);\\n\"\n      \"                if (num_deferred > 0 and channel_idx == 0)\\n\"\n      \"                    afd_fault_mark(\\\"combine\\\", scaleout_rank_idx * kNumScaleupRanks + scaleup_rank_idx);\\n\"\n      \"            }\\n\"\n      \"            __syncwarp();\\n\"\n      \"            if (lane_idx == fault_domain)\\n\"\n      \"                gin.red_add_rel<ncclTeamTagRail>(\\n\"\n      f\"                    {signal_new},\\n\"\n      \"                    math::pack2<int, int64_t>(1, 0), lane_idx);\\n\"\n      \"            __syncwarp();\\n\"\n      \"        }\\n\"\n      \"    }\\n\\n    // No barrier at epilogue\\n\")\nif mode == \"neg-words\":\n    text = (impls / C).read_text()\n    a = \"get_scaleout_channel_signaled_tail_ptr(channel_idx, scaleout_rank_idx) + kAfdDomainCombineWords,\"\n    b = \"get_scaleout_channel_signaled_tail_ptr(channel_idx, lane_idx) +\\n                kAfdDomainCombineWords;\"\n    assert text.count(a) == 1 and text.count(b) == 1, (text.count(a), text.count(b))\n    text = text.replace(a, \"get_scaleout_channel_signaled_tail_ptr(channel_idx, scaleout_rank_idx),\")\n    text = text.replace(b, \"get_scaleout_channel_signaled_tail_ptr(channel_idx, lane_idx);\")\n    (impls / C).write_text(text)\nif mode == \"neg-reply\":\n    patch(C, \"    scaleout_recv_buffer = layout::BufferLayout<false>(\\n\"\n             \"        token_layout, kNumTokensInScaleoutLayout, kNumMaxTokensPerRank,\\n\"\n             \"        math::advance_ptr(afd_scaleout_send_base, -scaleout_recv_buffer.get_num_bytes()));\\n\",\n          \"    // FAULT neg-reply: the reply inbox stays at DeepEP's offset.\\n\")\n    host = tree / \"afdep/third_party/deepep_v2/csrc/kernels/elastic/combine.hpp\"\n    text = host.read_text()\n    a = (\"        AfdepDomainHybridCombineRuntime::launch(domain_runtime, args, stream);\\n\"\n         \"        return afdep_mixed_reply_buffer(afd_scaleout_send_base, token_layout, num_scaleout_ranks,\\n\"\n         \"                                        num_max_tokens_per_rank, num_topk, allow_multiple_reduction);\\n\")\n    b = (\"        AfdepDomainHybridCombineRuntime::launch(domain_runtime, args, stream);\\n\"\n         \"        // FAULT neg-reply: the reduce epilogue reads the reply inbox at DeepEP's offset too.\\n\"\n         \"        return get_hybrid_reduce_buffer(buffer, token_layout, num_scaleout_ranks, num_scaleup_ranks,\\n\"\n         \"                                        num_max_tokens_per_rank, num_topk, allow_multiple_reduction);\\n\")\n    assert text.count(a) == 1, text.count(a)\n    host.write_text(text.replace(a, b))\nif mode == \"neg-staging\":\n    patch(C, \"    scaleout_send_buffer = layout::BufferLayout<false>(\\n\"\n             \"        token_layout, kAllowMultipleReduction ? 1 : kNumTopk, kNumChannels * (kNumScaleoutRanks * kNumMaxTokensPerChannel),\\n\"\n             \"        afd_scaleout_send_base);\\n\"\n             \"    scaleout_recv_buffer = layout::BufferLayout<false>(\\n\",\n          \"    // FAULT neg-staging: the combine staging stays at DeepEP's offset.\\n\"\n          \"    scaleout_recv_buffer = layout::BufferLayout<false>(\\n\")\nprint(\"fault\", mode, \"patched\", tree)\n",
  "control_patch": "\"\"\"fctl-patch.py <tree>: on a rail-faults tree, give Attention GPUs their dispatch-entry rail half back (control).\"\"\"\nimport sys\nfrom pathlib import Path\n\nimpls = Path(sys.argv[1]) / \"afdep/third_party/deepep_v2/deep_ep/include/deep_ep/impls\"\nfor name in (\"afdep_domain_hybrid_dispatch.cuh\",):  # the combine copy keeps its rail half\n    p = impls / name\n    t = p.read_text()\n    old = \"/* afdEP per-domain: no rail half (afdep_roles.hpp) */ false,\"\n    assert t.count(old) == 1, name\n    p.write_text(t.replace(old, \"/* FAULT CONTROL: rail half on Attention GPUs */ not afd_holder,\"))\nprint(\"control patched\", sys.argv[1])\n"
 },
 "barrier_split": {
  "note": "which entry barrier carries the gain: #22's per-node hybrid (pd_hybrid), both rail halves dropped (both), dispatch-entry only (dispatch_only, the shipped protocol), combine-entry only (combine_only)",
  "2x4_f1": {
   "arms": "pd_hybrid = {\"ffn_ranks_per_domain\": 1} on c19786cf; both = {\"ffn_ranks_per_domain\": 1, \"_label\": \"rh\"} on 27c46154; dispatch_only = {\"ffn_ranks_per_domain\": 1, \"_label\": \"dx\"} on 9114bf08; combine_only = {\"ffn_ranks_per_domain\": 1, \"_label\": \"cx\"} on a9995e56",
   "passthrough": "--payload fp8 --hidden 4096 --top-k 8 --capacity 512 --tokens 1 8 32 128 512 --experts 128 --ffn-ranks 2 --attention-ranks 6",
   "rows": [
    "T=1: pd_hybrid 110.23 us (+0.00%, 0/2 faster), both 106.42 us (-3.46%, 2/2 faster), dispatch_only 106.77 us (-3.14%, 2/2 faster), combine_only 111.55 us (+1.20%, 0/2 faster)",
    "T=8: pd_hybrid 134.89 us (+0.00%, 0/2 faster), both 125.16 us (-7.20%, 2/2 faster), dispatch_only 125.87 us (-6.68%, 2/2 faster), combine_only 132.87 us (-1.50%, 2/2 faster)",
    "T=32: pd_hybrid 146.57 us (+0.00%, 0/2 faster), both 138.07 us (-5.80%, 2/2 faster), dispatch_only 138.51 us (-5.50%, 2/2 faster), combine_only 145.88 us (-0.47%, 2/2 faster)",
    "T=128: pd_hybrid 172.19 us (+0.00%, 0/2 faster), both 163.88 us (-4.83%, 2/2 faster), dispatch_only 164.13 us (-4.68%, 2/2 faster), combine_only 170.93 us (-0.73%, 2/2 faster)",
    "T=512: pd_hybrid 377.86 us (+0.00%, 0/2 faster), both 368.10 us (-2.58%, 2/2 faster), dispatch_only 369.31 us (-2.26%, 2/2 faster), combine_only 376.18 us (-0.44%, 2/2 faster)"
   ]
  },
  "3x4_f1": {
   "arms": "pd_hybrid = {\"ffn_ranks_per_domain\": 1} on c19786cf; both = {\"ffn_ranks_per_domain\": 1, \"_label\": \"rh\"} on 27c46154; dispatch_only = {\"ffn_ranks_per_domain\": 1, \"_label\": \"dx\"} on 9114bf08; combine_only = {\"ffn_ranks_per_domain\": 1, \"_label\": \"cx\"} on a9995e56",
   "passthrough": "--payload fp8 --hidden 4096 --top-k 8 --capacity 512 --tokens 1 8 32 128 512 --experts 192 --ffn-ranks 3 --attention-ranks 9",
   "rows": [
    "T=1: pd_hybrid 135.96 us (+0.00%, 0/2 faster), both 131.51 us (-3.27%, 2/2 faster), dispatch_only 132.12 us (-2.83%, 2/2 faster), combine_only 137.54 us (+1.16%, 0/2 faster)",
    "T=8: pd_hybrid 149.57 us (+0.00%, 0/2 faster), both 141.70 us (-5.26%, 2/2 faster), dispatch_only 142.35 us (-4.82%, 2/2 faster), combine_only 149.68 us (+0.08%, 0/2 faster)",
    "T=32: pd_hybrid 161.35 us (+0.00%, 0/2 faster), both 154.58 us (-4.20%, 2/2 faster), dispatch_only 155.24 us (-3.79%, 2/2 faster), combine_only 162.76 us (+0.87%, 0/2 faster)",
    "T=128: pd_hybrid 209.11 us (+0.00%, 0/2 faster), both 201.07 us (-3.85%, 2/2 faster), dispatch_only 201.87 us (-3.46%, 2/2 faster), combine_only 209.66 us (+0.26%, 0/2 faster)",
    "T=512: pd_hybrid 481.60 us (+0.00%, 0/2 faster), both 473.35 us (-1.71%, 2/2 faster), dispatch_only 474.27 us (-1.52%, 2/2 faster), combine_only 480.71 us (-0.18%, 2/2 faster)"
   ]
  },
  "2x4_f2": {
   "arms": "pd_hybrid = {\"ffn_ranks_per_domain\": 2} on c19786cf; both = {\"ffn_ranks_per_domain\": 2, \"_label\": \"rh\"} on 27c46154; dispatch_only = {\"ffn_ranks_per_domain\": 2, \"_label\": \"dx\"} on 9114bf08; combine_only = {\"ffn_ranks_per_domain\": 2, \"_label\": \"cx\"} on a9995e56",
   "passthrough": "--payload fp8 --hidden 4096 --top-k 8 --capacity 512 --tokens 1 8 32 128 512 --experts 128 --ffn-ranks 4 --attention-ranks 4",
   "rows": [
    "T=1: pd_hybrid 94.01 us (+0.00%, 0/2 faster), both 87.22 us (-7.23%, 2/2 faster), dispatch_only 87.85 us (-6.56%, 2/2 faster), combine_only 93.08 us (-1.00%, 2/2 faster)",
    "T=8: pd_hybrid 105.92 us (+0.00%, 0/2 faster), both 96.28 us (-9.10%, 2/2 faster), dispatch_only 97.13 us (-8.30%, 2/2 faster), combine_only 104.78 us (-1.08%, 2/2 faster)",
    "T=32: pd_hybrid 112.11 us (+0.00%, 0/2 faster), both 103.47 us (-7.71%, 2/2 faster), dispatch_only 103.92 us (-7.31%, 2/2 faster), combine_only 111.55 us (-0.50%, 2/2 faster)",
    "T=128: pd_hybrid 138.17 us (+0.00%, 0/2 faster), both 130.39 us (-5.63%, 2/2 faster), dispatch_only 130.71 us (-5.40%, 2/2 faster), combine_only 137.57 us (-0.44%, 2/2 faster)",
    "T=512: pd_hybrid 286.63 us (+0.00%, 0/2 faster), both 276.84 us (-3.42%, 2/2 faster), dispatch_only 276.86 us (-3.41%, 2/2 faster), combine_only 284.95 us (-0.59%, 2/2 faster)"
   ]
  }
 },
 "screens": {
  "metric": "median over blocks of the max Attention-rank CUDA-event us per round trip, CUDA graphs, two fresh processes per arm in rotated order, FP8, hidden 4096, top-8, capacity 512",
  "2x4_f1": {
   "arms": "pd_hybrid = {\"ffn_ranks_per_domain\": 1} on c19786cf; pd_hybrid_rh2 = {\"ffn_ranks_per_domain\": 1, \"_label\": \"rh2\"} on bc3d223c; fastafd_pd_hybrid = {\"ffn_ranks_per_domain\": 1, \"_baseline\": \"fastafd\", \"_label\": \"rh2\"} on bc3d223c; gp_mixed = {\"_env\": {\"AFDEP_MIXED_HYBRID\": \"1\"}, \"_label\": \"rh2\"} on bc3d223c",
   "passthrough": "--payload fp8 --hidden 4096 --top-k 8 --capacity 512 --tokens 1 8 32 128 512 --experts 128 --ffn-ranks 2 --attention-ranks 6",
   "rows": [
    "T=1: pd_hybrid 110.16 us (+0.00%, 0/2 faster), pd_hybrid_rh2 107.09 us (-2.78%, 2/2 faster), fastafd_pd_hybrid 119.21 us (+8.22%, 0/2 faster), gp_mixed 95.92 us (-12.92%, 2/2 faster)",
    "T=8: pd_hybrid 135.27 us (+0.00%, 0/2 faster), pd_hybrid_rh2 126.18 us (-6.72%, 2/2 faster), fastafd_pd_hybrid 144.25 us (+6.64%, 0/2 faster), gp_mixed 117.53 us (-13.12%, 2/2 faster)",
    "T=32: pd_hybrid 146.59 us (+0.00%, 0/2 faster), pd_hybrid_rh2 138.62 us (-5.43%, 2/2 faster), fastafd_pd_hybrid 155.00 us (+5.74%, 0/2 faster), gp_mixed 125.95 us (-14.08%, 2/2 faster)",
    "T=128: pd_hybrid 171.64 us (+0.00%, 0/2 faster), pd_hybrid_rh2 163.94 us (-4.49%, 2/2 faster), fastafd_pd_hybrid 179.49 us (+4.58%, 0/2 faster), gp_mixed 156.00 us (-9.11%, 2/2 faster)",
    "T=512: pd_hybrid 377.63 us (+0.00%, 0/2 faster), pd_hybrid_rh2 369.69 us (-2.10%, 2/2 faster), fastafd_pd_hybrid 386.68 us (+2.40%, 0/2 faster), gp_mixed 368.15 us (-2.51%, 2/2 faster)"
   ]
  },
  "3x4_f1": {
   "arms": "pd_hybrid = {\"ffn_ranks_per_domain\": 1} on c19786cf; pd_hybrid_rh2 = {\"ffn_ranks_per_domain\": 1, \"_label\": \"rh2\"} on bc3d223c; fastafd_pd_hybrid = {\"ffn_ranks_per_domain\": 1, \"_baseline\": \"fastafd\", \"_label\": \"rh2\"} on bc3d223c; gp_mixed = {\"_env\": {\"AFDEP_MIXED_HYBRID\": \"1\"}, \"_label\": \"rh2\"} on bc3d223c",
   "passthrough": "--payload fp8 --hidden 4096 --top-k 8 --capacity 512 --tokens 1 8 32 128 512 --experts 192 --ffn-ranks 3 --attention-ranks 9",
   "rows": [
    "T=1: pd_hybrid 136.35 us (+0.00%, 0/2 faster), pd_hybrid_rh2 132.09 us (-3.12%, 2/2 faster), fastafd_pd_hybrid 144.66 us (+6.09%, 0/2 faster), gp_mixed 115.03 us (-15.63%, 2/2 faster)",
    "T=8: pd_hybrid 150.07 us (+0.00%, 0/2 faster), pd_hybrid_rh2 142.57 us (-5.00%, 2/2 faster), fastafd_pd_hybrid 160.69 us (+7.08%, 0/2 faster), gp_mixed 131.10 us (-12.64%, 2/2 faster)",
    "T=32: pd_hybrid 161.24 us (+0.00%, 0/2 faster), pd_hybrid_rh2 155.16 us (-3.77%, 2/2 faster), fastafd_pd_hybrid 172.32 us (+6.87%, 0/2 faster), gp_mixed 145.58 us (-9.72%, 2/2 faster)",
    "T=128: pd_hybrid 208.81 us (+0.00%, 0/2 faster), pd_hybrid_rh2 201.54 us (-3.48%, 2/2 faster), fastafd_pd_hybrid 218.95 us (+4.85%, 0/2 faster), gp_mixed 188.98 us (-9.50%, 2/2 faster)",
    "T=512: pd_hybrid 481.38 us (+0.00%, 0/2 faster), pd_hybrid_rh2 474.63 us (-1.40%, 2/2 faster), fastafd_pd_hybrid 491.38 us (+2.08%, 0/2 faster), gp_mixed 496.68 us (+3.18%, 0/2 faster)"
   ]
  },
  "2x4_f2": {
   "arms": "pd_hybrid = {\"ffn_ranks_per_domain\": 2} on c19786cf; pd_hybrid_rh2 = {\"ffn_ranks_per_domain\": 2, \"_label\": \"rh2\"} on bc3d223c; fastafd_pd_hybrid = {\"ffn_ranks_per_domain\": 2, \"_baseline\": \"fastafd\", \"_label\": \"rh2\"} on bc3d223c; gp_directional = {\"_label\": \"rh2\"} on bc3d223c",
   "passthrough": "--payload fp8 --hidden 4096 --top-k 8 --capacity 512 --tokens 1 8 32 128 512 --experts 128 --ffn-ranks 4 --attention-ranks 4",
   "rows": [
    "T=1: pd_hybrid 94.67 us (+0.00%, 0/2 faster), pd_hybrid_rh2 88.01 us (-7.04%, 2/2 faster), fastafd_pd_hybrid 101.44 us (+7.15%, 0/2 faster), gp_directional 75.08 us (-20.70%, 2/2 faster)",
    "T=8: pd_hybrid 106.33 us (+0.00%, 0/2 faster), pd_hybrid_rh2 97.31 us (-8.48%, 2/2 faster), fastafd_pd_hybrid 115.95 us (+9.05%, 0/2 faster), gp_directional 86.76 us (-18.41%, 2/2 faster)",
    "T=32: pd_hybrid 112.65 us (+0.00%, 0/2 faster), pd_hybrid_rh2 104.11 us (-7.58%, 2/2 faster), fastafd_pd_hybrid 121.48 us (+7.84%, 0/2 faster), gp_directional 94.43 us (-16.17%, 2/2 faster)",
    "T=128: pd_hybrid 138.57 us (+0.00%, 0/2 faster), pd_hybrid_rh2 130.93 us (-5.51%, 2/2 faster), fastafd_pd_hybrid 146.79 us (+5.93%, 0/2 faster), gp_directional 120.55 us (-13.00%, 2/2 faster)",
    "T=512: pd_hybrid 286.00 us (+0.00%, 0/2 faster), pd_hybrid_rh2 277.48 us (-2.98%, 2/2 faster), fastafd_pd_hybrid 293.50 us (+2.62%, 0/2 faster), gp_directional 271.45 us (-5.09%, 2/2 faster)"
   ]
  }
 }
}
