@@ -19,11 +19,11 @@ MoELayer dispatch/fallbacks, configuration, or checkpoint loading.
1919
2020This replaces ` com.microsoft::MoE ` with two standard ` GroupedMatMul-29 ` calls,
2121targeting the pinned ** CPU reference** , not all execution providers. It requires
22- ONNX opset-29 schemas and a qualified runtime. ORT 1.31.1 cannot execute these
22+ ONNX opset-29 schemas and a runtime implementing them . ORT 1.31.1 cannot execute these
2323graphs directly; tests expand GroupedMatMul on a test copy at opset 24. There is
2424no production expansion or performance/memory-use promise.
2525
26- ## Qualified ABI
26+ ## Supported ABI
2727
2828* Input 0: FLOAT or FLOAT16 hidden states ` [T,H] ` or ` [B,S,H] ` , positive static
2929 H. Dynamic token axes and empty token dimensions are supported; ` T=B*S ` .
@@ -79,7 +79,19 @@ from QMoE's FLOAT-through-both-GEMMs behavior. CPU thread/expert accumulation
7979order and math-library implementations may differ; bitwise equality is not
8080claimed.
8181
82- ### Native runtime qualification
82+ This defines a FLOAT-accumulation reference, not parity with every
83+ platform-specific MLAS half-GEMM kernel. Near a top-k boundary, different Softmax
84+ implementations may round probabilities differently and select different experts.
85+ The higher-ID tie rule applies to equal probabilities produced by the graph.
86+
87+ The first GMM maps ` [T,H] ` to ` [T,k,N] ` ; activation produces ` [T,k,I] ` .
88+ The second GMM consumes ` [T*k,I] ` and expert indices ` [T*k,1] ` , then reshapes
89+ to ` [T,k,H] ` . After optional bias2, route weighting, and reduction, the result
90+ is restored using ` Shape(X) ` with ` allowzero=1 ` , including empty rank-3 axes.
91+ Original initializer names and input/output names, shape/type, documentation,
92+ and output metadata are preserved.
93+
94+ ## Native runtime qualification
8395
8496The tested ORT ** 1.31.1** wheel reports build commit
8597` 6af1a932e2286d5c58166085d24c68783033edee ` . Its CPU MoE kernel registration
@@ -104,19 +116,12 @@ instead correctly copies whenever input and output buffers alias.
104116Native parity tests inspect the CPU kernel's ** actual T dtype constraint**
105117and explicitly skip unsupported dtypes, rather than accepting automatic
106118FLOAT fallback or marking discrepancies as expected failures. FLOAT native
107- comparisons remain active. FLOAT16 qualification in this environment rests on
119+ comparisons remain active. FLOAT16 verification here is reference-based, using
108120the pinned CPU source and independent rounded-stage NumPy reference, with
109121test-copy GroupedMatMul expansion; every independent FLOAT16 test remains
110122active, including the proof that intermediate half rounding is observable.
111123This is not a claim of native-half parity against the 1.31.1 wheel.
112124
113- The first GMM maps ` [T,H] ` to ` [T,k,N] ` ; activation produces ` [T,k,I] ` .
114- The second GMM consumes ` [T*k,I] ` and expert indices ` [T*k,1] ` , then reshapes
115- to ` [T,k,H] ` . After optional bias2, route weighting, and reduction, the result
116- is restored using ` Shape(X) ` with ` allowzero=1 ` , including empty rank-3 axes.
117- Original initializer names and input/output names, shape/type, documentation,
118- and output metadata are preserved.
119-
120125## Atomicity and import alignment
121126
122127All target calls, all existing scopes, and every detached replacement are
0 commit comments