suppa09 commited on
Commit
ba67976
·
verified ·
1 Parent(s): 2940835

Upload requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +15 -13
requirements.txt CHANGED
@@ -1,13 +1,15 @@
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.*
@@ -17,7 +19,7 @@ uvicorn[standard]==0.30.*
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
@@ -25,16 +27,16 @@ catboost>=1.2,<2.0
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
 
1
  # PolyBloom ML Service v18.0.0 — Hugging Face Space
2
  # Python 3.11 (HF default).
3
  #
4
+ # FIX LOG:
5
+ # v1 → v2: uni2ts<1.0 matched nothing → changed to >=1.1,<2.0
6
+ # v2 → v3: uni2ts 1.x requires scipy==1.11.3 but we need scipy>=1.12
7
+ # Resolution: DROP uni2ts entirely.
8
+ # MOIRAI always falls back on the free HF tier (OOM) anyway —
9
+ # uni2ts is only needed if you upgrade to a paid GPU space.
10
+ # When you do, add: uni2ts>=1.1,<2.0 and pin scipy==1.11.3
11
+ #
12
+ # N-BEATS and TimesNet are pure PyTorch — no extra package needed beyond torch.
13
 
14
  # ── API framework ─────────────────────────────────────────────────────────────
15
  fastapi==0.115.*
 
19
  numpy>=1.26,<2.0
20
  scipy>=1.12,<2.0
21
 
22
+ # ── Trained classifiers (Row 2 — always bootstrap on startup, always green) ──
23
  xgboost>=2.0,<3.0
24
  lightgbm>=4.3,<5.0
25
  catboost>=1.2,<2.0
 
27
  # ── Chronos (Amazon T5 zero-shot) — Row 1 foundation (fallback if OOM) ───────
28
  chronos-forecasting>=1.3,<2.0
29
 
30
+ # ── MOIRAI (Salesforce/uni2ts) ────────────────────────────────────────────────
31
+ # uni2ts DROPPED: it pins scipy==1.11.3 which conflicts with scipy>=1.12.
32
+ # MOIRAI will use its bootstrap formula fallback on the free HF tier.
33
+ # To re-enable on a paid GPU space: add uni2ts>=1.1,<2.0 + pin scipy==1.11.3
34
 
35
  # ── MOMENT (CMU AutonLab T5 foundation) — Row 1 (fallback if OOM) ────────────
36
  momentfm>=0.1
37
 
38
  # ── Shared transformer / neural stack ────────────────────────────────────────
39
+ # torch is used directly by N-BEATS and TimesNet (Row 3 neural models)
40
  torch>=2.2,<3.0
41
  transformers>=4.40,<5.0
42
  huggingface-hub>=0.22,<1.0