add model 13b
Browse files- Dockerfile-13b +2 -2
- Dockerfile-7b +30 -0
- requriments-13b.txt +49 -0
Dockerfile-13b
CHANGED
@@ -6,11 +6,11 @@ ENV dir=/usr/local/src/MiniGPT-4
|
|
6 |
ENV llama_version=llama-13b-hf
|
7 |
ENV vicuna_version=vicuna-13b-v0
|
8 |
ENV vicuna_diff=vicuna-13b-delta-v0
|
9 |
-
COPY requriments.txt pretrained_minigpt4.pth .
|
10 |
|
11 |
RUN apt-get update -y && apt-get upgrade -y && apt-get install -y libgl1 libglib2.0-0 wget git git-lfs python3-pip python-is-python3 && pip3 install --upgrade pip
|
12 |
RUN pip install torch==1.12.1 torchaudio==0.12.1 torchvision==0.13.1
|
13 |
-
RUN pip install -r requriments.txt \
|
14 |
&& git clone https://github.com/Vision-CAIR/MiniGPT-4.git \
|
15 |
&& sed -i -e '11c\ \ ckpt: "/usr/local/src/MiniGPT-4/vicuna_minigpt4.pth"' ${dir}/eval_configs/minigpt4_eval.yaml \
|
16 |
&& cd MiniGPT-4 \
|
|
|
6 |
ENV llama_version=llama-13b-hf
|
7 |
ENV vicuna_version=vicuna-13b-v0
|
8 |
ENV vicuna_diff=vicuna-13b-delta-v0
|
9 |
+
COPY requriments-13b.txt pretrained_minigpt4.pth .
|
10 |
|
11 |
RUN apt-get update -y && apt-get upgrade -y && apt-get install -y libgl1 libglib2.0-0 wget git git-lfs python3-pip python-is-python3 && pip3 install --upgrade pip
|
12 |
RUN pip install torch==1.12.1 torchaudio==0.12.1 torchvision==0.13.1
|
13 |
+
RUN pip install -r requriments-13b.txt \
|
14 |
&& git clone https://github.com/Vision-CAIR/MiniGPT-4.git \
|
15 |
&& sed -i -e '11c\ \ ckpt: "/usr/local/src/MiniGPT-4/vicuna_minigpt4.pth"' ${dir}/eval_configs/minigpt4_eval.yaml \
|
16 |
&& cd MiniGPT-4 \
|
Dockerfile-7b
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM nvidia/cuda:11.8.0-devel-ubuntu22.04
|
2 |
+
ENV DEBIAN_FRONTEND noninteractive
|
3 |
+
|
4 |
+
WORKDIR /usr/local/src
|
5 |
+
ENV dir=/usr/local/src/MiniGPT-4
|
6 |
+
ENV llama_version=llama-7b-hf
|
7 |
+
ENV vicuna_version=vicuna-7b-v1
|
8 |
+
ENV vicuna_diff=vicuna-7b-delta-v1.1
|
9 |
+
COPY requriments.txt pretrained_minigpt4.pth .
|
10 |
+
|
11 |
+
RUN apt-get update -y && apt-get upgrade -y && apt-get install -y libgl1 libglib2.0-0 wget git git-lfs python3-pip python-is-python3 && pip3 install --upgrade pip
|
12 |
+
RUN pip install torch==1.12.1 torchaudio==0.12.1 torchvision==0.13.1
|
13 |
+
RUN pip install -r requriments.txt \
|
14 |
+
&& git clone https://github.com/Vision-CAIR/MiniGPT-4.git \
|
15 |
+
&& sed -i -e '11c\ \ ckpt: "/usr/local/src/MiniGPT-4/vicuna_minigpt4.pth"' ${dir}/eval_configs/minigpt4_eval.yaml \
|
16 |
+
&& cd MiniGPT-4 \
|
17 |
+
&& git lfs install \
|
18 |
+
&& git clone https://huggingface.co/lmsys/${vicuna_diff} \
|
19 |
+
&& git clone https://huggingface.co/decapoda-research/${llama_version} \
|
20 |
+
&& pip install git+https://github.com/lm-sys/[email protected] \
|
21 |
+
&& python -m fastchat.model.apply_delta --base ${dir}/${llama_version}/ --target ${dir}/vicuna_out --delta ${dir}/${vicuna_diff}/ \
|
22 |
+
&& sed -i -e '16c\ \ llama_model: "/usr/local/src/MiniGPT-4/vicuna_out"' ${dir}/minigpt4/configs/models/minigpt4.yaml
|
23 |
+
|
24 |
+
RUN adduser --disabled-password --gecos '' user
|
25 |
+
RUN chown -R user:user ${dir}
|
26 |
+
RUN chmod -R 777 ${dir}
|
27 |
+
USER user
|
28 |
+
|
29 |
+
EXPOSE 7860
|
30 |
+
ENTRYPOINT [cd MiniGPT-4 && python, 'demo.py', '--cfg-path', 'eval_configs/minigpt4_eval.yaml']
|
requriments-13b.txt
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
accelerate==0.16.0
|
2 |
+
aiohttp==3.8.4
|
3 |
+
aiosignal==1.3.1
|
4 |
+
async-timeout==4.0.2
|
5 |
+
attrs==22.2.0
|
6 |
+
bitsandbytes==0.37.0
|
7 |
+
cchardet==2.1.7
|
8 |
+
chardet==5.1.0
|
9 |
+
contourpy==1.0.7
|
10 |
+
cycler==0.11.0
|
11 |
+
filelock==3.9.0
|
12 |
+
fonttools==4.38.0
|
13 |
+
frozenlist==1.3.3
|
14 |
+
huggingface-hub==0.13.4
|
15 |
+
importlib-resources==5.12.0
|
16 |
+
kiwisolver==1.4.4
|
17 |
+
matplotlib==3.7.0
|
18 |
+
multidict==6.0.4
|
19 |
+
openai==0.27.0
|
20 |
+
packaging==23.0
|
21 |
+
psutil==5.9.4
|
22 |
+
pycocotools==2.0.6
|
23 |
+
pyparsing==3.0.9
|
24 |
+
python-dateutil==2.8.2
|
25 |
+
pyyaml==6.0
|
26 |
+
regex==2022.10.31
|
27 |
+
tokenizers==0.13.2
|
28 |
+
tqdm==4.64.1
|
29 |
+
transformers==4.28.0
|
30 |
+
timm==0.6.13
|
31 |
+
spacy==3.5.1
|
32 |
+
webdataset==0.2.48
|
33 |
+
scikit-learn==1.2.2
|
34 |
+
scipy==1.10.1
|
35 |
+
yarl==1.8.2
|
36 |
+
zipp==3.14.0
|
37 |
+
omegaconf==2.3.0
|
38 |
+
opencv-python==4.7.0.72
|
39 |
+
iopath==0.1.10
|
40 |
+
decord==0.6.0
|
41 |
+
tenacity==8.2.2
|
42 |
+
peft
|
43 |
+
pycocoevalcap
|
44 |
+
sentence-transformers
|
45 |
+
umap-learn
|
46 |
+
notebook
|
47 |
+
gradio==3.24.1
|
48 |
+
gradio-client==0.0.8
|
49 |
+
wandb
|