#552·MiniGPT-4

Error running MiniGPT-v2 demo code

Author: YangJae96Created Mar 25, 2025Updated Mar 25, 2025

Hi. Thanks for great work!

I tired to run below command.

bash
python demo_v2.py --cfg-path eval_configs/minigptv2_eval.yaml  --gpu-id 0

but facing below problem.

OSError: /root/.llama/checkpoints/Llama-2-7b-chat does not appear to have a file named config.json. Checkout 'https://huggingface.co//root/.llama/checkpoints/Llama-2-7b-chat/None' for available files.

I've locally downloaded the Llama 2 Chat 7B model through

bash
pip install llama-stack
llama model list --show-all
llama model download --source meta --model-id Llama-2-7b-chat

I've followed the instruction in README and changed the path of the llama_model model.

For MiniGPT-v2, set the LLM path here at Line 14.

Image

I think this issues has been raised few times. But I can't find the solution. Can anyone please help?!