tayhan commited on
Commit
59d3017
·
1 Parent(s): 590ec90
Files changed (2) hide show
  1. Dockerfile +22 -6
  2. eval_configs/minigpt4_eval.yaml +2 -2
Dockerfile CHANGED
@@ -1,6 +1,22 @@
1
- FROM conda/miniconda3
2
- RUN apt-get install -y git
3
- RUN git clone https://github.com/Vision-CAIR/MiniGPT-4.git
4
- WORKDIR /MiniGPT-4
5
- RUN conda env create -f environment.yml
6
- RUN conda activate minigpt4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: '/app/MiniGPT-4/pretrained_minigpt4.pth'
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: