Repository navigation
fix: detect Ming-Image vs Z-Image by pad-token presence - #2441
Conversation
Ming-Image shares the Lumina2 tensor shape with Z-Image but lacks the Z-Image x_pad_token tensors. Reject the Z-Image match when x_pad_token is absent so those checkpoints resolve to VERSION_MING_IMAGE.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
My bad, of course I also tested Ming-Image-0.1. |
|
Thank you for your contribution. |
Summary
Ming-Image was detected as Z-Image after implementation of DGL.
!!! AI-DISCLOSURE NOTE: This change was created with the help of Qwen3.8-Flash-Next and tested by me !!!
Ming-Image shares the Lumina2 tensor shape with Z-Image but lacks the Z-Image x_pad_token tensors. Reject the Z-Image match when x_pad_token is absent so those checkpoints resolve to VERSION_MING_IMAGE.
Related Issue / Discussion
Should fix #2438
Additional Information
I am not a specialist in detection of different tensors within models, so please double check if the fix is valid.
Checklist
Test (before)
Test (after)
Summary by CodeRabbit