Spaces:
Configuration error
Configuration error
tayhan
commited on
Commit
·
46f8fde
1
Parent(s):
e21316c
- Dockerfile +0 -1
- docker-compose.yml +12 -3
- eval_configs/minigpt4_eval.yaml +2 -2
- s +0 -1
Dockerfile
CHANGED
|
@@ -4,7 +4,6 @@ ARG PATH="/root/miniconda3/bin:${PATH}"
|
|
| 4 |
WORKDIR /app
|
| 5 |
RUN apt-get update
|
| 6 |
RUN apt-get install gcc wget -y
|
| 7 |
-
RUN DEBIAN_FRONTEND=noninteractive apt-get install nvidia-driver-525 nvidia-dkms-525
|
| 8 |
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /app/Miniconda3-latest-Linux-x86_64.sh
|
| 9 |
RUN ls -la /app
|
| 10 |
RUN pwd
|
|
|
|
| 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
|
docker-compose.yml
CHANGED
|
@@ -3,9 +3,18 @@ services:
|
|
| 3 |
minigpt4:
|
| 4 |
platform: linux/amd64
|
| 5 |
image: forfor/mini
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
ports:
|
| 10 |
- target: 5000
|
| 11 |
published: 5000
|
|
|
|
| 3 |
minigpt4:
|
| 4 |
platform: linux/amd64
|
| 5 |
image: forfor/mini
|
| 6 |
+
volumes:
|
| 7 |
+
- .:/app
|
| 8 |
+
deploy:
|
| 9 |
+
resources:
|
| 10 |
+
reservations:
|
| 11 |
+
devices:
|
| 12 |
+
- driver: nvidia
|
| 13 |
+
count: 1
|
| 14 |
+
capabilities: [gpu]
|
| 15 |
+
entrypoint: ["python","-m","http.server", "6000"]
|
| 16 |
+
#entrypoint: ["conda", "run", "-no-capture-output", "-n","minigpt4", "python", "api.py", "--cfg-path", "eval_configs/minigpt4_eval.yaml"]
|
| 17 |
+
#python api.py --cfg-path eval_configs/minigpt4_eval.yaml
|
| 18 |
ports:
|
| 19 |
- target: 5000
|
| 20 |
published: 5000
|
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: "
|
| 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: "prompts/alignment.txt"
|
| 10 |
prompt_template: '###Human: {} ###Assistant: '
|
| 11 |
+
ckpt: 'pretrained_minigpt4.pth'
|
| 12 |
|
| 13 |
|
| 14 |
datasets:
|
s
DELETED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
s
|
|
|
|
|
|