File size: 667 Bytes
3c67cdd
 
 
 
 
46f8fde
 
 
 
 
 
 
 
 
 
 
 
3c67cdd
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
version: "3.7"
services:
   minigpt4:
    platform: linux/amd64
    image: forfor/mini
    volumes:
      - .:/app
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: 1
              capabilities: [gpu]    
    entrypoint: ["python","-m","http.server", "6000"]
    #entrypoint: ["conda", "run", "-no-capture-output", "-n","minigpt4", "python", "api.py", "--cfg-path", "eval_configs/minigpt4_eval.yaml"]
    #python api.py --cfg-path eval_configs/minigpt4_eval.yaml
    ports:
      - target: 5000
        published: 5000
        protocol: tcp
        mode: host
volumes:
  app:
networks:
  default: