Spaces:
Running on Zero
Running on Zero
Pin kernels<0.15 to fix transformers hub_kernels LayerRepository error
Browse files- requirements.txt +4 -1
requirements.txt
CHANGED
|
@@ -3,7 +3,10 @@ spaces>=0.30
|
|
| 3 |
huggingface_hub>=0.30
|
| 4 |
transformers>=4.55
|
| 5 |
accelerate>=0.34
|
| 6 |
-
kernels
|
|
|
|
|
|
|
|
|
|
| 7 |
compressed-tensors>=0.7
|
| 8 |
torch>=2.8
|
| 9 |
rapidocr-onnxruntime>=1.4
|
|
|
|
| 3 |
huggingface_hub>=0.30
|
| 4 |
transformers>=4.55
|
| 5 |
accelerate>=0.34
|
| 6 |
+
# kernels 0.15+ introduced a mandatory revision/version kwarg on LayerRepository,
|
| 7 |
+
# which transformers' hub_kernels module does not pass — pinning <0.15 avoids
|
| 8 |
+
# the import-time ValueError on Space startup.
|
| 9 |
+
kernels>=0.4,<0.15
|
| 10 |
compressed-tensors>=0.7
|
| 11 |
torch>=2.8
|
| 12 |
rapidocr-onnxruntime>=1.4
|