Spaces:
Sleeping
Sleeping
Upload requirements.txt
Browse files- requirements.txt +25 -14
requirements.txt
CHANGED
|
@@ -1,5 +1,13 @@
|
|
| 1 |
-
# PolyBloom ML Service
|
| 2 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
|
| 4 |
# ── API framework ─────────────────────────────────────────────────────────────
|
| 5 |
fastapi==0.115.*
|
|
@@ -7,28 +15,31 @@ uvicorn[standard]==0.30.*
|
|
| 7 |
|
| 8 |
# ── Numerics ──────────────────────────────────────────────────────────────────
|
| 9 |
numpy>=1.26,<2.0
|
|
|
|
| 10 |
|
| 11 |
-
# ── Trained classifiers (
|
| 12 |
xgboost>=2.0,<3.0
|
| 13 |
lightgbm>=4.3,<5.0
|
|
|
|
| 14 |
|
| 15 |
-
# ── Chronos (Amazon T5 zero-shot
|
| 16 |
-
# Using the pip package; pulls transformers + torch automatically.
|
| 17 |
chronos-forecasting>=1.3,<2.0
|
| 18 |
|
| 19 |
-
# ── MOIRAI (Salesforce
|
| 20 |
-
#
|
| 21 |
-
uni2ts
|
|
|
|
| 22 |
|
| 23 |
-
# ── MOMENT (CMU T5 foundation
|
| 24 |
-
momentfm>=0.1
|
| 25 |
|
| 26 |
-
# ── Shared transformer
|
|
|
|
| 27 |
torch>=2.2,<3.0
|
| 28 |
transformers>=4.40,<5.0
|
| 29 |
huggingface-hub>=0.22,<1.0
|
|
|
|
| 30 |
|
| 31 |
# ── Utilities ─────────────────────────────────────────────────────────────────
|
| 32 |
-
scikit-learn>=1.4,<2.0
|
| 33 |
-
|
| 34 |
-
python-multipart>=0.0.9 # FastAPI file uploads (unused but HF space needs it)
|
|
|
|
| 1 |
+
# PolyBloom ML Service v18.0.0 — Hugging Face Space
|
| 2 |
+
# Python 3.11 (HF default).
|
| 3 |
+
#
|
| 4 |
+
# KEY FIXES vs previous versions:
|
| 5 |
+
# - uni2ts: released versions are 1.1.0, 1.1.1, 1.2.0, 2.0.0
|
| 6 |
+
# Old bad pin uni2ts<1.0 matched NOTHING → build failure
|
| 7 |
+
# Correct pin uni2ts>=1.1,<2.0
|
| 8 |
+
# - catboost added back (real ML classifier, v18)
|
| 9 |
+
# - N-BEATS and TimesNet are pure PyTorch — no extra package needed
|
| 10 |
+
# - momentfm: optional, graceful fallback if build fails on HF free tier
|
| 11 |
|
| 12 |
# ── API framework ─────────────────────────────────────────────────────────────
|
| 13 |
fastapi==0.115.*
|
|
|
|
| 15 |
|
| 16 |
# ── Numerics ──────────────────────────────────────────────────────────────────
|
| 17 |
numpy>=1.26,<2.0
|
| 18 |
+
scipy>=1.12,<2.0
|
| 19 |
|
| 20 |
+
# ── Trained classifiers (Row 2: always bootstrap on startup, always green) ───
|
| 21 |
xgboost>=2.0,<3.0
|
| 22 |
lightgbm>=4.3,<5.0
|
| 23 |
+
catboost>=1.2,<2.0
|
| 24 |
|
| 25 |
+
# ── Chronos (Amazon T5 zero-shot) — Row 1 foundation (fallback if OOM) ───────
|
|
|
|
| 26 |
chronos-forecasting>=1.3,<2.0
|
| 27 |
|
| 28 |
+
# ── MOIRAI (Salesforce) — Row 1 foundation (fallback if OOM) ─────────────────
|
| 29 |
+
# FIX: released uni2ts versions are 1.1.0, 1.1.1, 1.2.0, 2.0.0
|
| 30 |
+
# Previous pin was uni2ts<1.0 which matched NOTHING → build failure
|
| 31 |
+
uni2ts>=1.1,<2.0
|
| 32 |
|
| 33 |
+
# ── MOMENT (CMU AutonLab T5 foundation) — Row 1 (fallback if OOM) ────────────
|
| 34 |
+
momentfm>=0.1
|
| 35 |
|
| 36 |
+
# ── Shared transformer / neural stack ────────────────────────────────────────
|
| 37 |
+
# torch is also used directly by N-BEATS and TimesNet (Row 3 neural models)
|
| 38 |
torch>=2.2,<3.0
|
| 39 |
transformers>=4.40,<5.0
|
| 40 |
huggingface-hub>=0.22,<1.0
|
| 41 |
+
einops>=0.7,<1.0
|
| 42 |
|
| 43 |
# ── Utilities ─────────────────────────────────────────────────────────────────
|
| 44 |
+
scikit-learn>=1.4,<2.0
|
| 45 |
+
python-multipart>=0.0.9
|
|
|