arunsa Claude Opus 4.6 commited on
Commit
ec5c6d5
·
1 Parent(s): 99aa854

Pin transformers<4.48 to fix MiniCPM-V compatibility

Browse files

MiniCPM-V-2_6 custom model class lacks the all_tied_weights_keys
attribute added in newer transformers, causing AttributeError during
model loading. Pinning to <4.48 avoids the breaking change.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Files changed (1) hide show
  1. requirements.txt +1 -1
requirements.txt CHANGED
@@ -1,7 +1,7 @@
1
  gradio>=5.0
2
  torch
3
  torchvision
4
- transformers>=4.45.0
5
  accelerate
6
  diffusers
7
  sentencepiece
 
1
  gradio>=5.0
2
  torch
3
  torchvision
4
+ transformers>=4.45.0,<4.48.0
5
  accelerate
6
  diffusers
7
  sentencepiece