bridge.models.minimax_m3.transformers_compat#

Targeted corrections for released Transformers MiniMax implementations.

Module Contents#

Functions#

patch_minimax_m3_vision_rope

Restore 3D vision RoPE for new HF MiniMax models on Transformers 5.17.0.

API#

bridge.models.minimax_m3.transformers_compat.patch_minimax_m3_vision_rope() → bool#

Restore 3D vision RoPE for new HF MiniMax models on Transformers 5.17.0.

Transformers PR #48105 changed the frequency ladder to 2D and dropped the width coordinate from the T/H/W position IDs. Keep the released checkpoint’s partial 3D rotation until an upstream fixed release is available. Replacing the class affects new MiniMax models only. Import Bridge before constructing HF MiniMax models; existing instances retain their old numerical behavior and should be reconstructed before serialization.