|
|
|
FROM nvidia/cuda:11.3.1-runtime-ubuntu20.04 |
|
ARG useProxyNetwork='' |
|
RUN apt-get update |
|
RUN apt-get install -y curl proxychains curl g++ |
|
RUN apt-get install -y git python python3 python-dev python3-dev --fix-missing |
|
|
|
|
|
RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.8 |
|
|
|
|
|
RUN python3 -m pip install torch --extra-index-url https://download.pytorch.org/whl/cu113 |
|
|
|
|
|
WORKDIR /gpt |
|
RUN git clone --depth=1 https://github.com/binary-husky/gpt_academic.git |
|
WORKDIR /gpt/gpt_academic |
|
RUN python3 -m pip install -r requirements.txt |
|
RUN python3 -m pip install -r request_llm/requirements_chatglm.txt |
|
RUN python3 -m pip install -r request_llm/requirements_newbing.txt |
|
RUN python3 -m pip install -r request_llm/requirements_jittorllms.txt -i https://pypi.jittor.org/simple -I |
|
|
|
|
|
RUN git clone https://github.com/binary-husky/JittorLLMs.git --depth 1 request_llm/jittorllms |
|
|
|
|
|
ADD "https://www.random.org/cgi-bin/randbyte?nbytes=10&format=h" skipcache |
|
RUN git pull |
|
|
|
|
|
RUN python3 -c 'from check_proxy import warm_up_modules; warm_up_modules()' |
|
|
|
|
|
CMD ["python3", "-u", "main.py"] |
|
|