Spaces:
Configuration error
Configuration error
tayhan
commited on
Commit
·
59d3017
1
Parent(s):
590ec90
path
Browse files- Dockerfile +22 -6
- eval_configs/minigpt4_eval.yaml +2 -2
Dockerfile
CHANGED
@@ -1,6 +1,22 @@
|
|
1 |
-
FROM
|
2 |
-
|
3 |
-
|
4 |
-
WORKDIR /
|
5 |
-
RUN
|
6 |
-
RUN
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM --platform=linux/amd64 ubuntu:20.04
|
2 |
+
ENV PATH="/root/miniconda3/bin:${PATH}"
|
3 |
+
ARG PATH="/root/miniconda3/bin:${PATH}"
|
4 |
+
WORKDIR /app
|
5 |
+
RUN apt-get update
|
6 |
+
RUN apt-get install gcc wget -y
|
7 |
+
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /app/Miniconda3-latest-Linux-x86_64.sh
|
8 |
+
RUN ls -la /app
|
9 |
+
RUN pwd
|
10 |
+
RUN bash Miniconda3-latest-Linux-x86_64.sh -b
|
11 |
+
RUN . ~/.bashrc
|
12 |
+
RUN . /root/miniconda3/etc/profile.d/conda.sh
|
13 |
+
RUN conda update conda
|
14 |
+
ARG DEBIAN_FRONTEND=noninteractive
|
15 |
+
RUN apt-get install libgl1 libglib2.0-0 -y git-lfs
|
16 |
+
RUN git lfs install
|
17 |
+
RUN pip install --upgrade huggingface_hub
|
18 |
+
RUN git config --global credential.helper store
|
19 |
+
RUN huggingface-cli login --token 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
|
20 |
+
RUN git lfs install
|
21 |
+
RUN git clone https://huggingface.co/spaces/tayhan/minigpt-final
|
22 |
+
RUN conda env create -f minigpt-final/environment.yml
|
eval_configs/minigpt4_eval.yaml
CHANGED
@@ -6,9 +6,9 @@ model:
|
|
6 |
max_txt_len: 160
|
7 |
end_sym: "###"
|
8 |
low_resource: False
|
9 |
-
prompt_path: "prompts/alignment.txt"
|
10 |
prompt_template: '###Human: {} ###Assistant: '
|
11 |
-
ckpt: '
|
12 |
|
13 |
|
14 |
datasets:
|
|
|
6 |
max_txt_len: 160
|
7 |
end_sym: "###"
|
8 |
low_resource: False
|
9 |
+
prompt_path: "minigpt-final/prompts/alignment.txt"
|
10 |
prompt_template: '###Human: {} ###Assistant: '
|
11 |
+
ckpt: 'minigpt-final/pretrained_minigpt4.pth'
|
12 |
|
13 |
|
14 |
datasets:
|