Repository navigation
Remove the role_aware flag and name the baseline FastAFD's DeepEP M2N - #17
Merged
Merged
Conversation
Config.role_aware let a caller turn the AFD specialization off, which made the library look optional about the one thing it is for. Config no longer has it, and Buffer always opens afdEP-comm's transport. The low-level ElasticBuffer keeps one meaning: with ffn_ranks it is afdEP-comm, without it DeepEP V2 as upstream ships it, over a symmetric group. The baseline every result is measured against moves out of the library into benchmarks/fastafd.py. FastAFDConfig and FastAFDBuffer run the role API over the unspecialized vendored kernels the way FastAFD's DeepEPM2NAdapter runs AFD: a symmetric group, dummy expert slots on Attention ranks, full receive bounds on every rank. Buffer gains _open_transport and _source_output_rows so the baseline overrides only those. Screens select it with "_baseline": "fastafd" (default arms fastafd and afdep), and the GPU suite's --generic becomes --baseline fastafd. On six 4 x H200 pods the baseline arm times within -0.33% to +0.17% of the old role_aware=False arm, and both pass the GPU suite across nodes and in one NVLink domain. The native tree is unchanged (21298d5b).
The docs called the baseline "Masked DeepEP" and defined it as role_aware=False, a name of our own for someone else's code. It is FastAFD's DeepEP M2N: the README now says so, links FastAFD, its DeepEPM2NAdapter at the snapshot we vendor and the AFD plugin's deepep_m2n connector, and says what afdEP-comm removes. The name changes in the README, api.md, sparse-hybrid.md, the design doc (which abbreviates it to FastAFD M2N in tables), the issue and PR templates, the figure data and every figure; "role path" wording goes with it. validation-masked-equivalence.json becomes validation-fastafd-equivalence.json. Its description no longer says the plugin buffer ran with "specialize_roles off", an option that buffer does not have, and it gains the flag-removal equivalence screen. Older records keep the names they were written with; the design doc's header maps them.
Etelis
deleted the
always-afd-transport
<
7CC1
/span>
branch
October 25, 2026 14:24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #16.
afdEP-comm is the AFD transport, so it no longer has a flag that turns the AFD specialization off. The docs now say plainly what every result is measured against, FastAFD's DeepEP M2N, and link to it, instead of calling it "Masked DeepEP" and describing it as
role_aware=False.API
Config.role_awareis removed.Bufferalways runs afdEP-comm's transport.afdep.deepep.ElasticBuffer,role_awareis removed:ffn_ranks=Mit runs afdEP-comm's transport, which is whatBufferpasses;ffn_ranksit runs DeepEP V2 as upstream ships it, over a symmetric group.role_aware. Plugin PR Publish a release when a merge sets a new version #35 (afd-plugin) does: it needs to drop itsrole_awareconfig field and callElasticBuffer(**kwargs, ffn_ranks=self.ffn_size).Baseline
benchmarks/fastafd.pyholds the baseline:FastAFDConfigandFastAFDBuffer. They put afdEP-comm's role API over the unspecialized vendored kernels, the way FastAFD'sDeepEPM2NAdapterruns AFD: a symmetric group, dummy expert slots on Attention ranks, full receive bounds on every rank.benchmarks.commarms select it with"_baseline": "fastafd".benchmarks.screen's default arms are nowfastafdandafdep.--genericis now--baseline fastafd.Docs
DeepEPM2NAdapterat the snapshot we vendor (3c716194), and the AFD plugin. It says what afdEP-comm removes and where the baseline lives in the benchmarks.api.md,sparse-hybrid.md, the templates, the figure data and every figure. The design doc spells the name out once and uses "FastAFD M2N" in its tables. "Role path" and "role-aware" wording is gone.validation-masked-equivalence.jsonis renamed tovalidation-fastafd-equivalence.json. Its description no longer claims the plugin buffer ran with "specialize_roles off", an option that buffer doesn't have. A note maps the old names, and the stored driver script is left verbatim.Validation
The native tree is unchanged at
21298d5b. Checked on six 4 × H200 pods (kermit, InfiniBand, GIN):GPU suite:
--baseline fastafdpasses the same three configurations.Baseline equivalence: paired screen at 4F:20A, FP8, hidden 2048, 2 repeats. The new
fastafdarm matches the oldrole_aware=Falsearm within −0.33% to +0.17% at 1 to 512 tokens. Recorded invalidation-fastafd-equivalence.json.role_aware=False, µsfastafdbaseline, µsChecks: 48 unit tests, Ruff check and format, and the link check all pass.