Maxluria Claude Opus 4.8 commited on
Commit
3e26dc8
·
1 Parent(s): c756cfd

Pin transformers to 4.56 line for MiniCPM4.1-8B compatibility

Browse files

The latest transformers removed is_torch_fx_available from
transformers.utils.import_utils, which MiniCPM4.1-8B's bundled modeling code
imports, breaking model load on the Space. Pin to >=4.56,<4.57 (the version
OpenBMB documents) which still provides that symbol.

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

Files changed (1) hide show
  1. requirements.txt +3 -1
requirements.txt CHANGED
@@ -1,5 +1,7 @@
1
  gradio
2
  spaces
3
- transformers>=4.51.0
 
 
4
  torch
5
  accelerate
 
1
  gradio
2
  spaces
3
+ # MiniCPM4.1-8B's bundled modeling code imports is_torch_fx_available, which
4
+ # newer transformers removed; pin to the 4.56 line OpenBMB tested against.
5
+ transformers>=4.56,<4.57
6
  torch
7
  accelerate