Repository navigation
Commit 5baaa24
committed
Address PR #313 Copilot review: Pillow extra + drop dead preprocess_weights
1) Add Pillow to the ort-genai optional-dependencies extra. The
examples/qwen3_6_35b_a3b_ort_genai.py and other multimodal example
scripts import PIL.Image, but the doc says
'pip install mobius-ai[ort-genai]' which previously installed only
onnxruntime-genai. Without this users hit ModuleNotFoundError when
running --image.
2) Remove Qwen35MoEVLDecoderModel.preprocess_weights. The method was
unreachable: this class is only ever constructed as a sub-module of
Qwen35MoEVL3ModelCausalLMModel and is not registered standalone, so
the wrapper's preprocess_weights does all weight routing
(prefix-strip + MoE expert unpack + tied lm_head). The removed
method also had two latent bugs (tie_word_embeddings checked for
the un-stripped key 'model.embed_tokens.weight' that never exists
post-strip; fused MoE expert tensors were not unpacked into
per-expert ONNX initializers). Rather than fix dead code, drop it
and document why the class has no preprocess_weights.
Signed-off-by: justinchuby <[email protected]>1 parent d4a1d4a commit 5baaa24
2 files changed
Lines changed: 8 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
616 | 616 | | |
617 | 617 | | |
618 | 618 | | |
619 | | - | |
620 | | - | |
621 | | - | |
622 | | - | |
623 | | - | |
624 | | - | |
625 | | - | |
626 | | - | |
627 | | - | |
628 | | - | |
629 | | - | |
630 | | - | |
631 | | - | |
632 | | - | |
633 | | - | |
634 | | - | |
635 | | - | |
636 | | - | |
637 | | - | |
638 | | - | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
639 | 626 | | |
640 | 627 | | |
641 | 628 | | |
| |||
0 commit comments