Spaces:
Sleeping
Sleeping
Upload requirements.txt
Browse files- requirements.txt +5 -52
requirements.txt
CHANGED
|
@@ -1,52 +1,5 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
# v2: uni2ts>=1.1 conflicts with scipy>=1.12 (uni2ts pins scipy==1.11.3) → DROP uni2ts
|
| 7 |
-
# v3: momentfm pins numpy==1.25.2 + huggingface-hub==0.19.4, conflicts with our >=1.26/>=0.22 → DROP momentfm
|
| 8 |
-
# v4: added neuralforecast>=1.7.0 (covers PatchTST, N-HiTS, iTransformer)
|
| 9 |
-
# neuralforecast pins torch>=2.1 and uses optuna/ray — compatible with our stack
|
| 10 |
-
# chronos switched to PyPI package (chronos-forecasting) for HF compatibility
|
| 11 |
-
#
|
| 12 |
-
# Both MOIRAI and MOMENT fall back to bootstrap formulas on the free HF tier anyway (OOM).
|
| 13 |
-
# Neither uni2ts nor momentfm provide any runtime benefit on a free CPU space.
|
| 14 |
-
# To re-enable on a paid GPU space:
|
| 15 |
-
# MOIRAI → add uni2ts>=1.1,<2.0 + pin scipy==1.11.3
|
| 16 |
-
# MOMENT → add momentfm>=0.1 + pin numpy==1.25.2 + huggingface-hub==0.19.4
|
| 17 |
-
|
| 18 |
-
# ── API framework ─────────────────────────────────────────────────────────────
|
| 19 |
-
fastapi==0.115.*
|
| 20 |
-
uvicorn[standard]==0.30.*
|
| 21 |
-
|
| 22 |
-
# ── Numerics ──────────────────────────────────────────────────────────────────
|
| 23 |
-
numpy>=1.26,<2.0
|
| 24 |
-
scipy>=1.12,<2.0
|
| 25 |
-
pandas>=2.0,<3.0
|
| 26 |
-
|
| 27 |
-
# ── Trained classifiers (Row 2 — always bootstrap on startup, always green) ──
|
| 28 |
-
xgboost>=2.0,<3.0
|
| 29 |
-
lightgbm>=4.3,<5.0
|
| 30 |
-
catboost>=1.2,<2.0
|
| 31 |
-
|
| 32 |
-
# ── Chronos (Amazon T5 zero-shot) — Row 1 foundation (fallback if OOM) ───────
|
| 33 |
-
# PyPI package preferred over git+ on HF Spaces (faster cold start, cached wheels)
|
| 34 |
-
chronos-forecasting>=1.3,<2.0
|
| 35 |
-
|
| 36 |
-
# ── MOIRAI → uni2ts DROPPED (scipy conflict) — bootstrap fallback active ────
|
| 37 |
-
# ── MOMENT → momentfm DROPPED (numpy + hf-hub conflict) — bootstrap active ──
|
| 38 |
-
|
| 39 |
-
# ── NeuralForecast — Row 3 (PatchTST, N-HiTS, iTransformer) ─────────────────
|
| 40 |
-
# Single package covers all three models; bootstrap-trains on startup (CPU safe).
|
| 41 |
-
# Requires torch>=2.1 (satisfied below). Pulls in lightning, optuna automatically.
|
| 42 |
-
neuralforecast>=1.7.0,<2.0
|
| 43 |
-
|
| 44 |
-
# ── Shared transformer / neural stack ────────────────────────────────────────
|
| 45 |
-
torch>=2.2,<3.0
|
| 46 |
-
transformers>=4.40,<5.0
|
| 47 |
-
huggingface-hub>=0.22,<1.0
|
| 48 |
-
einops>=0.7,<1.0
|
| 49 |
-
|
| 50 |
-
# ── Utilities ─────────────────────────────────────────────────────────────────
|
| 51 |
-
scikit-learn>=1.4,<2.0
|
| 52 |
-
python-multipart>=0.0.9
|
|
|
|
| 1 |
+
fastapi==0.111.0
|
| 2 |
+
uvicorn[standard]==0.29.0
|
| 3 |
+
numpy==1.26.4
|
| 4 |
+
torch==2.2.2
|
| 5 |
+
git+https://github.com/amazon-science/chronos-forecasting.git
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|