You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3de1b7b
Browse filesBrowse the repository at this point in the historyBrowse files
Merge branch 'main' into roy/qwen38-mtp-head-export
Resolves 15 conflict blocks across 8 files.
Twelve were formatting-only: main had run ruff format over code this branch
also touched (quoted vs bare type annotations, list concat vs unpacking, line
wrapping, a docstring rewording). Took main's side so the formatter would not
immediately undo the merge. One of those blocks also dropped `_index_dim1`,
which was defined and never called.
Three were genuine two-sided changes and both sides are kept:
- `__main__.py`: this branch added the MTP sidecar save; main replaced the
runtime dispatch with `write_gguf_runtime_package` (dual onnx-genai/ort-genai
from #543). The code after the conflict already referenced both, so dropping
either would not have compiled.
- `_group_query_attention.py` / its test: main added sliding-window support
(`local_window_size` from the attention bias) plus a
`TestSlidingWindowSurvivesFusion` suite; this branch had only a reformat
there.
`inference_metadata_test.py` needed more than conflict resolution. The branch's
copy predates main's removal of `add_explicit_package_io` and referenced it
seven times, so taking the branch side broke collection for six modules. Took
main's file and re-applied this branch's `TestMtpSpeculatorMetadata` block
(with its `_MtpBackboneConfig` fixture and `_seed_backbone_metadata` helper),
plus the `write_mtp_speculator_metadata` import.
`_seed_backbone_metadata` seeded `{"model_type": "qwen3_5_text"}`, which the
runtime schema rejects as an unknown top-level property — a schema failure for
a reason unrelated to the speculator block under test. Seeded an empty document
instead; the writer only appends `speculative`.
Tests: gguf + rewrite_rules 475 passed / 1 skipped. In
inference_metadata_test.py, 4 pre-existing failures remain (reproduced on
origin/main using main's own test file) and `TestMtpSpeculatorMetadata`'s
schema case still fails — see the PR discussion, it is a stale committed schema
rather than a defect in this branch.
Co-authored-by: Copilot <[email protected]>
Copilot-Session: d60eb808-7cc6-4abc-b48d-2a6dd3841624
Copy file name to clipboardExpand all lines: CHANGELOG.md
+143Lines changed: 143 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,144 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [Unreleased]
9
9
10
+
### Fixed
11
+
12
+
- An exported graph is no longer transcribed into its own workflow component.
13
+
A component backed by a shipped `.onnx` file now declares only `ports.roles`;
14
+
the artifact answers every question about which ports exist and what shape
15
+
they have, and the runtime resolves them against the live session. The
16
+
removed block was a second statement of the same ABI with nothing keeping the
17
+
two in agreement — the same defect as `model.io`, one level down. Package
18
+
validation and runtime conformance both stay at 11/11 against the pinned ONNX
19
+
GenAI branch, and the contract tests now resolve every role, invocation
20
+
binding and state pair against the graph itself rather than against the
21
+
metadata's agreement with a copy of itself, which is a strictly stronger
22
+
check.
23
+
24
+
Policy graphs keep their contracts, and that boundary was measured rather
25
+
than assumed: a workflow value inherits its dtype, rank and request axis from
26
+
the port that produced it, so dropping them left row-wise emits untyped and
27
+
made 4 of the 11 packages invalid. Those contracts type the workflow's own
28
+
dataflow; they do not describe an external interface.
29
+
30
+
- Deep decoders are now covered where the cache layer annotation actually
31
+
matters. Every metadata package built in the test suite had two layers, and
32
+
below ten a cell label sorts identically whether ordered lexicographically,
33
+
numerically or by insertion — so a `layer` derived from a cell's position
34
+
rather than parsed from its port name would have passed every assertion while
35
+
transposing caches on any real model. `canonical_workflow_contract_test` now
36
+
builds twelve-layer dynamic, static-cache and hybrid decoders and pins that
37
+
the declared layer restates the port name, that ordering by it recovers the
38
+
buffer lists, and that a hybrid's alternating groups own layers their cells'
39
+
positions never equal. A producer that dropped the parse leaves the 101
40
+
pre-existing assertions green and fails seven of these.
41
+
42
+
- Every component a task builds now declares an optimization role. Qwen3-TTS's
43
+
four loop-wiring graphs (`code_predictor_prefill`,
@@ -33,6 +171,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
33
171
- Other checkpoint formats retain their previous graph construction; this
34
172
change only aligns Mobius with Olive's module selection.
35
173
174
+
- Qwen3.6 VL exports now emit the packed Qwen image-processing pipeline when
175
+
the composite build exposes its unwrapped `qwen3_5_moe_text` config. This
176
+
adds the required `PatchImage` transform so `pixel_values` matches the
177
+
vision encoder's rank-2 packed-patch input.
178
+
36
179
#### Added
37
180
38
181
-`Qwen2MoELayer(..., shared_expert_gate_class=...)` to override the linear
|`--task TASK`| Model task (auto-detected if not specified). Use `mobius list tasks` to see available tasks. |
238
238
|`--dtype DTYPE`| Target dtype for model weights: `f16`, `bf16`, `f32` (also accepts `float16`, `bfloat16`, `float32`). If omitted, the dtype is auto-detected from the HuggingFace config (`torch_dtype`); provide `--dtype` to override it. Weights are cast at save time. |
239
+
|`--revision REVISION`| Immutable HuggingFace revision used consistently for config, weights, tokenizer, processor, and runtime metadata artifacts. |
239
240
|`--no-weights`| Export graph structure only, without weight data. Useful for inspection or testing. |
240
241
|`--external-data FORMAT`| External data format: `onnx` (default) or `safetensors`. |
241
242
|`--max-shard-size SIZE`| Maximum shard size for safetensors external data (e.g. `5GB`). Only used with `--external-data safetensors`. |
0 commit comments