Skip to content

feat(metax): enable standalone InfiniRT graph bridge#1400

Open
gongchensu wants to merge 4 commits into
InfiniTensor:issue/1373from
gongchensu:feat/metax-standalone-infinirt-graph-bridge
Open

feat(metax): enable standalone InfiniRT graph bridge#1400
gongchensu wants to merge 4 commits into
InfiniTensor:issue/1373from
gongchensu:feat/metax-standalone-infinirt-graph-bridge

Conversation

@gongchensu

Copy link
Copy Markdown
Collaborator

No description provided.

@gongchensu
gongchensu requested a review from voltjia July 16, 2026 03:21
@gongchensu gongchensu self-assigned this Jul 16, 2026
Complete the Mars/HPCC split across build configuration, runtime loading, ATen dispatch, operator tests, and environment setup. Validate external InfiniRT prefixes, support lib64 installs, and reject standalone InfiniOps on Mars instead of mapping it back to MetaX.

Resolve the active Mars flash_attn_2_cuda extension and detect its C++ ABI from exported symbols because HPCC and flash-attn are versioned independently. Pass the Mars-only attention-mask and auxiliary arguments for MHA, varlen MHA, and KV-cache while leaving the MetaX and NVIDIA signatures unchanged.

Add Mars device and preload coverage, and update the build and test documentation for the separate backend.
MetaX flash-attn packages do not expose one fixed C++ signature. The MACA 3.2.1 extension appends s_aux and also passes an attention mask to mha_fwd, while the split backend assumed the standard signature and failed to import _infinicore with an undefined symbol.

Reuse symbol-based ABI detection for MetaX and Mars, but map the result to independent MetaX ABI defines so Mars configuration remains isolated. Pass the optional attention-mask and auxiliary arguments only when the selected extension exports them.
@gongchensu
gongchensu force-pushed the feat/metax-standalone-infinirt-graph-bridge branch from 028da6b to ee2f301 Compare July 23, 2026 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant