vmjn commited on
Commit
e46f520
·
verified ·
1 Parent(s): f3634b6

torch 2.4 + peejm/finbert (safetensors) + transformers 4.46.3

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -2
  2. app.py +1 -1
Dockerfile CHANGED
@@ -14,7 +14,7 @@ WORKDIR /home/user/app
14
 
15
  # CPU-only torch from PyTorch index (skip CUDA wheels, ~200MB vs ~2GB)
16
  RUN pip install --user --no-cache-dir --index-url https://download.pytorch.org/whl/cpu \
17
- torch==2.6.0
18
 
19
  # App deps — all pinned to known-compatible versions
20
  RUN pip install --user --no-cache-dir \
@@ -28,7 +28,7 @@ RUN pip install --user --no-cache-dir \
28
  "einops>=0.7" \
29
  "safetensors>=0.4" \
30
  "tqdm>=4.66" \
31
- "transformers>=4.40,<5.0" \
32
  "chronos-forecasting>=1.5.2" \
33
  "timesfm[torch]>=1.3.0"
34
 
 
14
 
15
  # CPU-only torch from PyTorch index (skip CUDA wheels, ~200MB vs ~2GB)
16
  RUN pip install --user --no-cache-dir --index-url https://download.pytorch.org/whl/cpu \
17
+ torch==2.4.1
18
 
19
  # App deps — all pinned to known-compatible versions
20
  RUN pip install --user --no-cache-dir \
 
28
  "einops>=0.7" \
29
  "safetensors>=0.4" \
30
  "tqdm>=4.66" \
31
+ "transformers==4.46.3" \
32
  "chronos-forecasting>=1.5.2" \
33
  "timesfm[torch]>=1.3.0"
34
 
app.py CHANGED
@@ -242,7 +242,7 @@ def forecast_timesfm(symbol: str, lookback_days: int = 180, pred_days: int = 30)
242
  # -----------------------------------------------------------------------------
243
  # FinBERT — ProsusAI/finbert
244
  # -----------------------------------------------------------------------------
245
- FINBERT_MODEL_ID = "ProsusAI/finbert"
246
  _finbert = None
247
 
248
 
 
242
  # -----------------------------------------------------------------------------
243
  # FinBERT — ProsusAI/finbert
244
  # -----------------------------------------------------------------------------
245
+ FINBERT_MODEL_ID = "peejm/finbert-financial-sentiment"
246
  _finbert = None
247
 
248