Dyen commited on
Commit
c0f8e0d
·
1 Parent(s): 0dc66e5

Fix: Remove VLM pre-cache to prevent build timeout

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -4
Dockerfile CHANGED
@@ -40,10 +40,8 @@ RUN mkdir -p /app/models \
40
  COPY requirements.txt .
41
  RUN pip install --no-cache-dir -r requirements.txt
42
 
43
- # Pre-download the VLM model (so it's cached in the image)
44
- RUN python -c "from transformers import AutoProcessor, AutoModelForVision2Seq; \
45
- AutoProcessor.from_pretrained('HuggingFaceTB/SmolVLM2-256M-Video-Instruct'); \
46
- AutoModelForVision2Seq.from_pretrained('HuggingFaceTB/SmolVLM2-256M-Video-Instruct')"
47
 
48
  # Copy Backend Code
49
  COPY backend ./backend
 
40
  COPY requirements.txt .
41
  RUN pip install --no-cache-dir -r requirements.txt
42
 
43
+ # Note: SmolVLM model downloads on first use (~500MB)
44
+ # This avoids build timeouts on free tier
 
 
45
 
46
  # Copy Backend Code
47
  COPY backend ./backend