longjava2024 commited on
Commit
5f4a0df
·
verified ·
1 Parent(s): d8afded

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -5
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM pytorch/pytorch:2.3.0-cuda12.1-cudnn8-runtime
2
 
3
  WORKDIR /app
4
 
@@ -12,16 +12,15 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
12
 
13
  RUN pip install --no-cache-dir --upgrade pip && \
14
  pip install --no-cache-dir \
 
 
15
  fastapi \
16
  uvicorn[standard] \
17
  "huggingface-hub>=0.23.2" \
18
  "transformers==4.44.2" \
19
  accelerate \
20
- bitsandbytes \
21
- torchvision \
22
  pillow \
23
- requests \
24
- flash-attn --no-build-isolation
25
 
26
  COPY app.py /app/app.py
27
 
 
1
+ FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
 
12
 
13
  RUN pip install --no-cache-dir --upgrade pip && \
14
  pip install --no-cache-dir \
15
+ "torch==2.3.0" \
16
+ torchvision \
17
  fastapi \
18
  uvicorn[standard] \
19
  "huggingface-hub>=0.23.2" \
20
  "transformers==4.44.2" \
21
  accelerate \
 
 
22
  pillow \
23
+ requests
 
24
 
25
  COPY app.py /app/app.py
26