Repository navigation
Commit 068feef
Unify packed token_offset helper and add CUDA golden build opt-in
Follow-ups from PR #358 review:
- Make build_packed_token_offset materialise its axis/index tensors as
explicit Constant nodes so it works under both the component OpBuilder
and the onnxscript rewriter op. BlockDiagonalToPackedMHA.rewrite now
calls the shared helper instead of duplicating the (previously
copy-pasted) token_offset construction, keeping the rewrite rule and
the vision encoders in sync.
- Let the L4/L5 golden harness build an EP-specialized graph via the
opt-in MOBIUS_TEST_BUILD_EP env var (default "default" leaves the
portable build unchanged). Setting MOBIUS_TEST_BUILD_EP=cuda exercises
the Qwen-VL PackedMultiHeadAttention path end-to-end; a build/runtime
EP mismatch is rejected with a clear pytest.UsageError. Verified: the
3 Qwen-VL golden L4 cases pass with the CUDA-built packed graph.
Co-authored-by: Copilot <[email protected]>
Signed-off-by: Justin Chu <[email protected]>1 parent 8e7567d commit 068feef
3 files changed
Lines changed: 48 additions & 48 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
295 | 304 | | |
296 | 305 | | |
297 | 306 | | |
| |||
301 | 310 | | |
302 | 311 | | |
303 | 312 | | |
304 | | - | |
305 | | - | |
| 313 | + | |
| 314 | + | |
306 | 315 | | |
307 | | - | |
| 316 | + | |
308 | 317 | | |
309 | 318 | | |
310 | 319 | | |
311 | 320 | | |
312 | 321 | | |
313 | 322 | | |
314 | 323 | | |
315 | | - | |
316 | | - | |
| 324 | + | |
| 325 | + | |
317 | 326 | | |
318 | 327 | | |
319 | 328 | | |
320 | 329 | | |
321 | | - | |
322 | | - | |
323 | | - | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
324 | 333 | | |
325 | 334 | | |
326 | 335 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
203 | 167 | | |
204 | 168 | | |
205 | 169 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
18 | 23 | | |
19 | 24 | | |
20 | 25 | | |
| |||
48 | 53 | | |
49 | 54 | | |
50 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
51 | 77 | | |
52 | 78 | | |
53 | 79 | | |
| |||
301 | 327 | | |
302 | 328 | | |
303 | 329 | | |
| 330 | + | |
304 | 331 | | |
305 | 332 | | |
306 | 333 | | |
| |||
0 commit comments