-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
29 lines (22 loc) · 943 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM nvidia/cuda:11.4.3-cudnn8-devel-ubuntu20.04
WORKDIR /root
COPY . /root/ASEGPT-KG
RUN apt update \
&& apt install -y git \
&& apt install -y nano \
&& apt install -y wget
# Install Miniconda for Faiss
RUN mkdir -p ~/miniconda3 \
&& wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh \
&& bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3 \
&& rm -rf ~/miniconda3/miniconda.sh \
&& ~/miniconda3/bin/conda init bash
# Create conda environment and install dependencies
RUN ~/miniconda3/bin/conda create --name venv python=3.10 -y \
&& ~/miniconda3/envs/venv/bin/pip install -r /root/ASEGPT-KG/requirements.txt \
&& ~/miniconda3/bin/conda install -n venv -c pytorch -c nvidia faiss-gpu=1.8.0
RUN echo "conda activate venv" >> ~/.bashrc
ENV VLLM_WORKER_MULTIPROC_METHOD=spawn
ENV NCCL_IB_DISABLE=1
ENV MKL_SERVICE_FORCE_INTEL=1
ENV LANG=C.UTF-8