Cyprien Claude Opus 5 (1M context) commited on
Commit
1d487ef
·
1 Parent(s): 976c02a

Pin transformers<5: setfit 1.1 needs default_logdir

Browse files

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

Files changed (1) hide show
  1. requirements.txt +4 -0
requirements.txt CHANGED
@@ -2,5 +2,9 @@
2
  # pip takes it from here and the build skips ~2 GB of CUDA the Space cannot use.
3
  --extra-index-url https://download.pytorch.org/whl/cpu
4
  torch
 
 
 
 
5
  setfit>=1.1.0
6
  numpy
 
2
  # pip takes it from here and the build skips ~2 GB of CUDA the Space cannot use.
3
  --extra-index-url https://download.pytorch.org/whl/cpu
4
  torch
5
+ # setfit 1.1 imports `default_logdir` from transformers.training_args, which
6
+ # transformers 5 removed -- unpinned, the build resolves to 5.x and the Space
7
+ # dies on `import setfit` before it ever reaches the model.
8
+ transformers<5
9
  setfit>=1.1.0
10
  numpy