Spaces:
Sleeping
Sleeping
Update requirements.txt
Browse files- requirements.txt +5 -30
requirements.txt
CHANGED
|
@@ -1,14 +1,11 @@
|
|
| 1 |
-
# PolyBloom ML Ensemble Service v15.0 — requirements.txt
|
| 2 |
#
|
| 3 |
# Install order matters on HF free-tier:
|
| 4 |
# 1. Base deps first (fastapi, torch, numpy)
|
| 5 |
# 2. Chronos (depends on torch)
|
| 6 |
-
# 3.
|
| 7 |
-
# 4. lightgbm (pure C++ wheels, fast install)
|
| 8 |
#
|
| 9 |
# Pinned for reproducibility on Python 3.11 + HuggingFace Spaces free CPU tier.
|
| 10 |
-
# To update a pin, change it, rebuild, and run the /health endpoint to confirm
|
| 11 |
-
# all four real-ML flags are true before deploying.
|
| 12 |
|
| 13 |
# ── API framework ──────────────────────────────────────────────────────────────
|
| 14 |
fastapi==0.115.0
|
|
@@ -26,38 +23,16 @@ torch==2.4.1
|
|
| 26 |
|
| 27 |
# ── HuggingFace ecosystem ──────────────────────────────────────────────────────
|
| 28 |
huggingface_hub==0.25.2
|
| 29 |
-
transformers==4.44.2 # required by
|
| 30 |
-
accelerate==0.34.2
|
| 31 |
|
| 32 |
# ── Chronos (Amazon T5 zero-shot forecaster) ──────────────────────────────────
|
| 33 |
-
# chronos-forecasting pulls transformers + torch; pin stays in sync with above.
|
| 34 |
chronos-forecasting==1.4.0
|
| 35 |
|
| 36 |
# ── MOIRAI (Salesforce universal forecaster) ──────────────────────────────────
|
| 37 |
# uni2ts 1.1.0 is the first release that installs cleanly on HF free-tier
|
| 38 |
# without the __init__.py import error that broke v14.x.
|
| 39 |
-
# CRITICAL: weights must be pre-downloaded at Docker build time (see Dockerfile).
|
| 40 |
uni2ts==1.1.0
|
| 41 |
|
| 42 |
-
# ── MOMENT (CMU T5 foundation model for time series) ──────────────────────────
|
| 43 |
-
# momentfm is the official pip package for AutonLab/MOMENT-1-large.
|
| 44 |
-
# Requires transformers >= 4.40.
|
| 45 |
-
# momentfm 0.1.5 on PyPI requires Python >=3.12 — install from GitHub instead,
|
| 46 |
-
# which works fine on Python 3.11 (the HF free-tier runtime).
|
| 47 |
-
git+https://github.com/moment-timeseries-foundation-model/moment.git
|
| 48 |
-
|
| 49 |
# ── LightGBM (trained gradient boosting classifier) ───────────────────────────
|
| 50 |
-
|
| 51 |
-
# At startup app.py either loads lgbm_model.pkl or fits a bootstrap model;
|
| 52 |
-
# either way the /omega endpoint never errors even without a trained model.
|
| 53 |
-
lightgbm==4.5.0
|
| 54 |
-
|
| 55 |
-
# ── Pickle / serialisation ─────────────────────────────────────────────────────
|
| 56 |
-
# pickle is stdlib. No extra dep needed.
|
| 57 |
-
# If you switch to joblib for model saving (recommended for large LightGBM
|
| 58 |
-
# models), add: joblib==1.4.2
|
| 59 |
-
|
| 60 |
-
# ── Optional: training script deps (not needed at inference time) ──────────────
|
| 61 |
-
# Uncomment these if you run train_lgbm.py inside the container.
|
| 62 |
-
# scikit-learn==1.5.2
|
| 63 |
-
# pandas==2.2.3
|
|
|
|
| 1 |
+
# PolyBloom ML Ensemble Service v15.0 — requirements.txt (MOMENT removed)
|
| 2 |
#
|
| 3 |
# Install order matters on HF free-tier:
|
| 4 |
# 1. Base deps first (fastapi, torch, numpy)
|
| 5 |
# 2. Chronos (depends on torch)
|
| 6 |
+
# 3. lightgbm (pure C++ wheels, fast install)
|
|
|
|
| 7 |
#
|
| 8 |
# Pinned for reproducibility on Python 3.11 + HuggingFace Spaces free CPU tier.
|
|
|
|
|
|
|
| 9 |
|
| 10 |
# ── API framework ──────────────────────────────────────────────────────────────
|
| 11 |
fastapi==0.115.0
|
|
|
|
| 23 |
|
| 24 |
# ── HuggingFace ecosystem ──────────────────────────────────────────────────────
|
| 25 |
huggingface_hub==0.25.2
|
| 26 |
+
transformers==4.44.2 # required by Chronos (stays compatible)
|
| 27 |
+
accelerate==0.34.2
|
| 28 |
|
| 29 |
# ── Chronos (Amazon T5 zero-shot forecaster) ──────────────────────────────────
|
|
|
|
| 30 |
chronos-forecasting==1.4.0
|
| 31 |
|
| 32 |
# ── MOIRAI (Salesforce universal forecaster) ──────────────────────────────────
|
| 33 |
# uni2ts 1.1.0 is the first release that installs cleanly on HF free-tier
|
| 34 |
# without the __init__.py import error that broke v14.x.
|
|
|
|
| 35 |
uni2ts==1.1.0
|
| 36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
# ── LightGBM (trained gradient boosting classifier) ───────────────────────────
|
| 38 |
+
lightgbm==4.5.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|