Pin transformers<4.48 to fix MiniCPM-V compatibility
Browse filesMiniCPM-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>
- 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
|