acharyaaditya26 commited on
Commit
52e1134
1 Parent(s): 724e400
Files changed (2) hide show
  1. Dockerfile +3 -3
  2. requirements.txt +0 -1
Dockerfile CHANGED
@@ -1,5 +1,5 @@
1
- # Use a base image that includes the CUDA toolkit
2
- FROM nvidia/cuda:12.3.2-cudnn9-devel-ubuntu22.04
3
 
4
  RUN apt-get update && apt-get upgrade -y
5
  RUN apt-get install -y python3-pip python3-dev
@@ -18,7 +18,7 @@ WORKDIR /app
18
  COPY --chown=user ./requirements.txt requirements.txt
19
 
20
  # Install torch first
21
- # RUN pip install --no-cache-dir torch==2.1.2
22
 
23
  # Now install the rest of the packages
24
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
 
1
+ # Use a base image that includes CUDA 11.7 and the CUDA toolkit
2
+ FROM nvidia/cuda:11.7.1-cudnn8-devel-ubuntu22.04
3
 
4
  RUN apt-get update && apt-get upgrade -y
5
  RUN apt-get install -y python3-pip python3-dev
 
18
  COPY --chown=user ./requirements.txt requirements.txt
19
 
20
  # Install torch first
21
+ RUN pip install --no-cache-dir torch==2.0.1+cu117
22
 
23
  # Now install the rest of the packages
24
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
requirements.txt CHANGED
@@ -3,7 +3,6 @@ pillow
3
  numpy
4
  fastapi
5
  uvicorn
6
- torch==2.0.1
7
  torchvision==0.15.2
8
  transformers==4.37.2
9
  tiktoken==0.6.0
 
3
  numpy
4
  fastapi
5
  uvicorn
 
6
  torchvision==0.15.2
7
  transformers==4.37.2
8
  tiktoken==0.6.0