transformers
26ecfe64 - Fixes PeAudioVideo model loading with timm 1.0.31. In that version, t… (#50862)

Commit
7 hours ago
Fixes PeAudioVideo model loading with timm 1.0.31. In that version, t… (#50862) Fixes PeAudioVideo model loading with timm 1.0.31. In that version, timm registers `rope.bands` as a non-persistent buffer. The video encoder's tied-weight mapping previously excluded `rope.pos_embed` but not `rope.bands`, causing loading to fail with `AttributeError: 'bands' is not an nn.Parameter`. Exclude both RoPE buffers from the tied-weight mapping in the modular source and generated modeling file. The existing mapping for model parameters is unchanged. Signed-off-by: Wang, Yi A <yi.a.wang@intel.com>
Author
Parents
Loading