Spaces:
Build error
Build error
Update requirements.txt
Browse files- requirements.txt +29 -2
requirements.txt
CHANGED
|
@@ -1,3 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# numeriche
|
| 2 |
numpy==1.24.3
|
| 3 |
scipy==1.11.4
|
|
@@ -9,10 +34,12 @@ torchaudio==2.2.2
|
|
| 9 |
|
| 10 |
# Hugging Face stack (allineato)
|
| 11 |
huggingface-hub==0.28.1
|
| 12 |
-
tokenizers==0.
|
| 13 |
transformers==4.41.0
|
| 14 |
diffusers==0.27.2
|
| 15 |
accelerate==0.29.3
|
|
|
|
|
|
|
| 16 |
sentence-transformers==2.7.0
|
| 17 |
peft==0.8.2
|
| 18 |
|
|
@@ -23,6 +50,6 @@ matplotlib
|
|
| 23 |
trimesh
|
| 24 |
gradio==4.44
|
| 25 |
|
| 26 |
-
# modelli
|
| 27 |
git+https://github.com/facebookresearch/segment-anything.git
|
| 28 |
git+https://github.com/openai/shap-e.git
|
|
|
|
| 1 |
+
tokenizers >= 0.19 , < 0.20
|
| 2 |
+
``` :contentReference[oaicite:0]{index=0}.
|
| 3 |
+
|
| 4 |
+
Noi avevamo bloccato `tokenizers 0.15.2` → pip segnala incompatibilità.
|
| 5 |
+
|
| 6 |
+
---
|
| 7 |
+
|
| 8 |
+
## 1 · Matrice versioni che si incastrano
|
| 9 |
+
|
| 10 |
+
| Pacchetto | Versione | Motivo |
|
| 11 |
+
|-----------|----------|--------|
|
| 12 |
+
| **tokenizers** | **0.19.1** | Soddisfa `>=0.19,<0.20` di transformers :contentReference[oaicite:1]{index=1} e non dipende più da `huggingface_hub` (dal ramo 0.18 in poi) :contentReference[oaicite:2]{index=2} |
|
| 13 |
+
| **transformers** | 4.41.0 | Ultima compatibile con diffusers 0.27 e con tokenizers <0.20 :contentReference[oaicite:3]{index=3} |
|
| 14 |
+
| **huggingface-hub** | 0.28.1 | ≥0.25 come richiede diffusers 0.27.2 e gradio 4.44 :contentReference[oaicite:4]{index=4} |
|
| 15 |
+
| **diffusers** | 0.27.2 | Ultima con `cached_download` ancora presente :contentReference[oaicite:5]{index=5} |
|
| 16 |
+
| **sentence-transformers** | 2.7.0 | Chiede transformers ≥ 4.34 → 4.41 ok :contentReference[oaicite:6]{index=6} |
|
| 17 |
+
| **peft / gradio** | versioni correnti accettano hub 0.28+ :contentReference[oaicite:7]{index=7} |
|
| 18 |
+
|
| 19 |
+
Con queste scelte **tutti i range si sovrappongono**: non rimane alcun *diamond conflict*.
|
| 20 |
+
|
| 21 |
+
---
|
| 22 |
+
|
| 23 |
+
## 2 · `requirements.txt` definitivo
|
| 24 |
+
|
| 25 |
+
```txt
|
| 26 |
# numeriche
|
| 27 |
numpy==1.24.3
|
| 28 |
scipy==1.11.4
|
|
|
|
| 34 |
|
| 35 |
# Hugging Face stack (allineato)
|
| 36 |
huggingface-hub==0.28.1
|
| 37 |
+
tokenizers==0.19.1
|
| 38 |
transformers==4.41.0
|
| 39 |
diffusers==0.27.2
|
| 40 |
accelerate==0.29.3
|
| 41 |
+
|
| 42 |
+
# sentence embedding & PEFT
|
| 43 |
sentence-transformers==2.7.0
|
| 44 |
peft==0.8.2
|
| 45 |
|
|
|
|
| 50 |
trimesh
|
| 51 |
gradio==4.44
|
| 52 |
|
| 53 |
+
# modelli GitHub
|
| 54 |
git+https://github.com/facebookresearch/segment-anything.git
|
| 55 |
git+https://github.com/openai/shap-e.git
|