Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 1.27 KB

File metadata and controls

28 lines (20 loc) · 1.27 KB

To start the MiniGPT4 container and webserver with the recommended models, run this command:

./run.sh $(./autotag minigpt4) /bin/bash -c 'cd /opt/minigpt4.cpp/minigpt4 && python3 webui.py \
  $(huggingface-downloader --type=dataset maknee/minigpt4-13b-ggml/minigpt4-13B-f16.bin) \
  $(huggingface-downloader --type=dataset maknee/ggml-vicuna-v0-quantized/ggml-vicuna-13B-v0-q5_k.bin)'

Then navigate your browser to http://HOSTNAME:7860

Inference Benchmark

./run.sh --workdir=/opt/minigpt4.cpp/minigpt4/ $(./autotag minigpt4) /bin/bash -c \
  'python3 benchmark.py \
    $(huggingface-downloader --type=dataset maknee/minigpt4-13b-ggml/minigpt4-13B-f16.bin) \
    $(huggingface-downloader --type=dataset maknee/ggml-vicuna-v0-quantized/ggml-vicuna-13B-v0-q5_k.bin) \
    --prompt "What does the sign say?" --prompt "How far is the exit?" --prompt "What would happen next?" \
    --image /data/images/hoover.jpg \
    --run 3 \
    --save /data/minigpt4.csv'