Spaces:
Sleeping
Sleeping
Commit ·
b51d0f9
1
Parent(s): a180bc9
fix: pin compatible versions - numpy<2, torch 2.1.2, transformers 4.36.2 for Render free tier
Browse files
embedding-service/requirements-prod.txt
CHANGED
|
@@ -1,7 +1,6 @@
|
|
| 1 |
# Production requirements - оптимизировано для минимального потребления памяти
|
| 2 |
fastapi==0.104.1
|
| 3 |
uvicorn[standard]==0.24.0
|
| 4 |
-
sentence-transformers==2.2.2
|
| 5 |
numpy>=1.24.0,<2.0.0
|
| 6 |
pydantic==2.5.3
|
| 7 |
python-dotenv==1.0.0
|
|
@@ -10,3 +9,7 @@ python-dotenv==1.0.0
|
|
| 10 |
--extra-index-url https://download.pytorch.org/whl/cpu
|
| 11 |
torch==2.1.2+cpu
|
| 12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# Production requirements - оптимизировано для минимального потребления памяти
|
| 2 |
fastapi==0.104.1
|
| 3 |
uvicorn[standard]==0.24.0
|
|
|
|
| 4 |
numpy>=1.24.0,<2.0.0
|
| 5 |
pydantic==2.5.3
|
| 6 |
python-dotenv==1.0.0
|
|
|
|
| 9 |
--extra-index-url https://download.pytorch.org/whl/cpu
|
| 10 |
torch==2.1.2+cpu
|
| 11 |
|
| 12 |
+
# Transformers совместимый с torch 2.1.2
|
| 13 |
+
transformers==4.36.2
|
| 14 |
+
sentence-transformers==2.2.2
|
| 15 |
+
|
embedding-service/requirements.txt
CHANGED
|
@@ -1,9 +1,10 @@
|
|
| 1 |
fastapi>=0.104.0
|
| 2 |
uvicorn[standard]>=0.24.0
|
| 3 |
-
sentence-transformers>=2.2.2
|
| 4 |
numpy>=1.24.0,<2.0.0
|
| 5 |
pydantic>=2.5.0
|
| 6 |
python-dotenv>=1.0.0
|
| 7 |
--extra-index-url https://download.pytorch.org/whl/cpu
|
| 8 |
torch>=2.1.0,<2.2.0
|
|
|
|
|
|
|
| 9 |
|
|
|
|
| 1 |
fastapi>=0.104.0
|
| 2 |
uvicorn[standard]>=0.24.0
|
|
|
|
| 3 |
numpy>=1.24.0,<2.0.0
|
| 4 |
pydantic>=2.5.0
|
| 5 |
python-dotenv>=1.0.0
|
| 6 |
--extra-index-url https://download.pytorch.org/whl/cpu
|
| 7 |
torch>=2.1.0,<2.2.0
|
| 8 |
+
transformers>=4.36.0,<4.37.0
|
| 9 |
+
sentence-transformers>=2.2.2
|
| 10 |
|