suppa09 commited on
Commit
bcebab1
·
verified ·
1 Parent(s): 3cc9cb3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -8
Dockerfile CHANGED
@@ -3,7 +3,7 @@
3
  # CRITICAL CHANGES vs v14.x:
4
  # 1. MOIRAI weights pre-downloaded at build time (RUN snapshot_download).
5
  # In v14.x the model downloaded on first request → timeout on free tier.
6
- # 2. TimesFM + MOMENT weights also pre-downloaded at build time.
7
  # 3. Health probe CMD added (optional — uncomment if your HF Space supports it).
8
  # 4. CPU-only torch wheel used (torch+cpu) to cut image size ~1.5 GB.
9
  #
@@ -65,13 +65,7 @@ RUN python -c " \
65
  from huggingface_hub import snapshot_download; \
66
  snapshot_download('Salesforce/moirai-1.1-R-small', cache_dir='/tmp/hf')"
67
 
68
- # 3. TimesFM 200M (~800 MB)
69
- RUN python -c " \
70
- from huggingface_hub import snapshot_download; \
71
- snapshot_download('google/timesfm-1.0-200m', cache_dir='/tmp/hf')" || \
72
- echo "WARNING: TimesFM download failed — will fall back to Holt-Winters at runtime"
73
-
74
- # 4. MOMENT-1-large (~1.4 GB)
75
  # This is the largest model. On HF free-tier builder it may timeout.
76
  # If it does, switch to 'AutonLab/MOMENT-1-small' (~400 MB) and update
77
  # MOMENT_MODEL env var accordingly.
 
3
  # CRITICAL CHANGES vs v14.x:
4
  # 1. MOIRAI weights pre-downloaded at build time (RUN snapshot_download).
5
  # In v14.x the model downloaded on first request → timeout on free tier.
6
+ # 2. MOMENT weights also pre-downloaded at build time.
7
  # 3. Health probe CMD added (optional — uncomment if your HF Space supports it).
8
  # 4. CPU-only torch wheel used (torch+cpu) to cut image size ~1.5 GB.
9
  #
 
65
  from huggingface_hub import snapshot_download; \
66
  snapshot_download('Salesforce/moirai-1.1-R-small', cache_dir='/tmp/hf')"
67
 
68
+ # 3. MOMENT-1-large (~1.4 GB)
 
 
 
 
 
 
69
  # This is the largest model. On HF free-tier builder it may timeout.
70
  # If it does, switch to 'AutonLab/MOMENT-1-small' (~400 MB) and update
71
  # MOMENT_MODEL env var accordingly.