Repository navigation
Commit c8803af
authored
Fix Qwen3.5 standalone ORT GenAI model types (#631)
## Summary
- normalize standalone Qwen3.5/Qwen3.6 text packages to ORT GenAI's
released generic `decoder` runtime
- preserve distinct `qwen3_5` and `qwen3_5_moe` runtime types for dense
and MoE multimodal packages
- recover the correct VLM parent type when config-mode exports expose
only an unwrapped text subconfig
- add regression coverage across decoder-only, HF-parent multimodal, and
config-mode multimodal paths
## Motivation
Mobius previously mapped every Qwen3.5/Qwen3.6 variant to `qwen3_5`. For
a standalone Qwen3.6 text export, that selects ORT GenAI's multimodal
runtime and requires vision and embedding sessions that do not exist in
a single-component package.
Standalone graphs use the generic `decoder` contract already supported
by released ORT GenAI. Full multimodal packages still require
architecture-specific runtime types: `qwen3_5` for dense models and
`qwen3_5_moe` for MoE models.
This blocks the standalone text-generation recipe being prepared in
microsoft/olive-recipes#588.
## Validation
- `python -m pytest
src/mobius/integrations/ort_genai/auto_export_test.py
src/mobius/integrations/ort_genai/genai_config_test.py` (252 passed)
- targeted decoder-only, HF-parent multimodal, and config-mode
multimodal tests (14 passed)
- `ruff check` and `ruff format --check` on affected files
- `git diff --check`
---------
Copilot-Session: 72aa2acc-7ef6-4fe4-b760-921d80d29dd71 parent 133ab10 commit c8803af
3 files changed
Lines changed: 155 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
121 | | - | |
122 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
123 | 125 | | |
124 | | - | |
| 126 | + | |
125 | 127 | | |
126 | 128 | | |
127 | | - | |
128 | | - | |
129 | | - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
130 | 132 | | |
131 | 133 | | |
132 | 134 | | |
| |||
145 | 147 | | |
146 | 148 | | |
147 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
148 | 162 | | |
149 | 163 | | |
150 | 164 | | |
| |||
275 | 289 | | |
276 | 290 | | |
277 | 291 | | |
278 | | - | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
279 | 296 | | |
280 | 297 | | |
281 | 298 | | |
| |||
1894 | 1911 | | |
1895 | 1912 | | |
1896 | 1913 | | |
1897 | | - | |
1898 | | - | |
1899 | | - | |
1900 | | - | |
1901 | | - | |
1902 | | - | |
1903 | | - | |
1904 | | - | |
1905 | | - | |
1906 | | - | |
| 1914 | + | |
| 1915 | + | |
1907 | 1916 | | |
1908 | 1917 | | |
1909 | 1918 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
162 | 177 | | |
163 | 178 | | |
164 | 179 | | |
| |||
191 | 206 | | |
192 | 207 | | |
193 | 208 | | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
194 | 235 | | |
195 | 236 | | |
196 | 237 | | |
| |||
1060 | 1101 | | |
1061 | 1102 | | |
1062 | 1103 | | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
1063 | 1116 | | |
1064 | 1117 | | |
1065 | 1118 | | |
| |||
1535 | 1588 | | |
1536 | 1589 | | |
1537 | 1590 | | |
1538 | | - | |
| 1591 | + | |
1539 | 1592 | | |
1540 | 1593 | | |
1541 | 1594 | | |
| |||
1551 | 1604 | | |
1552 | 1605 | | |
1553 | 1606 | | |
1554 | | - | |
| 1607 | + | |
1555 | 1608 | | |
1556 | 1609 | | |
1557 | 1610 | | |
| |||
1601 | 1654 | | |
1602 | 1655 | | |
1603 | 1656 | | |
1604 | | - | |
| 1657 | + | |
1605 | 1658 | | |
1606 | 1659 | | |
1607 | 1660 | | |
| |||
2256 | 2309 | | |
2257 | 2310 | | |
2258 | 2311 | | |
| 2312 | + | |
| 2313 | + | |
| 2314 | + | |
| 2315 | + | |
| 2316 | + | |
| 2317 | + | |
| 2318 | + | |
| 2319 | + | |
| 2320 | + | |
| 2321 | + | |
| 2322 | + | |
| 2323 | + | |
| 2324 | + | |
| 2325 | + | |
| 2326 | + | |
| 2327 | + | |
| 2328 | + | |
| 2329 | + | |
| 2330 | + | |
| 2331 | + | |
| 2332 | + | |
| 2333 | + | |
| 2334 | + | |
| 2335 | + | |
| 2336 | + | |
| 2337 | + | |
| 2338 | + | |
| 2339 | + | |
| 2340 | + | |
| 2341 | + | |
| 2342 | + | |
| 2343 | + | |
| 2344 | + | |
| 2345 | + | |
| 2346 | + | |
| 2347 | + | |
| 2348 | + | |
| 2349 | + | |
| 2350 | + | |
| 2351 | + | |
| 2352 | + | |
| 2353 | + | |
| 2354 | + | |
| 2355 | + | |
| 2356 | + | |
| 2357 | + | |
| 2358 | + | |
| 2359 | + | |
| 2360 | + | |
| 2361 | + | |
| 2362 | + | |
| 2363 | + | |
| 2364 | + | |
| 2365 | + | |
| 2366 | + | |
| 2367 | + | |
| 2368 | + | |
| 2369 | + | |
| 2370 | + | |
| 2371 | + | |
| 2372 | + | |
2259 | 2373 | | |
2260 | 2374 | | |
2261 | 2375 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
48 | 58 | | |
49 | 59 | | |
50 | 60 | | |
| |||
0 commit comments