Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minigpt4_video_demo Llama-2-7b-chat-hf #7

Open
Mikes95 opened this issue Apr 9, 2024 · 3 comments
Open

minigpt4_video_demo Llama-2-7b-chat-hf #7

Mikes95 opened this issue Apr 9, 2024 · 3 comments

Comments

@Mikes95
Copy link

Mikes95 commented Apr 9, 2024

I'm trying to run demo code. I cloned the repository and installed all the dependencies. I downloaded video_llama_checkpoint_last.pth and placed it in the checkpoints folder. When I run python minigpt4_video_demo.py --ckpt /miniGPT4/MiniGPT4-video/checkpoints/video_llama_checkpoint_last.pth --cfg-path test_configs/llama2_test_config.yaml, I receive this error:

OSError: Can't load tokenizer for 'meta-llama/Llama-2-7b-chat-hf'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'meta-llama/Llama-2-7b-chat-hf' is the correct path to a directory containing all relevant files for a LlamaTokenizer.

How can I fix this?
Is there also a demo available purely in code, without using Streamlit for an HTML interface?

@KerolosAtef
Copy link
Collaborator

KerolosAtef commented Apr 10, 2024

Hello @Mikes95 ,
thank you for your interest in our work.
for 'meta-llama/Llama-2-7b-chat-hf' this repo is gated model in huggingface, first try grant the access by accepting the license and make sure you have this sentence in your huggingface account
image
then generate a token from huggingface tokens and add these 2 lines of code in the beginning of the demo file

from huggingface_hub import login
login(token="your generated token")

for the pure python code without UI, you can try the inference file minigpt4_video_inference.py

@Mikes95
Copy link
Author

Mikes95 commented Apr 10, 2024

Thank you for the prompt response. I was also wondering how easy it is to perform fine-tuning on my own dataset and whether there is more detailed documentation than the README on how to format the videos and their corresponding texts. Thank you in advance.

@KerolosAtef
Copy link
Collaborator

KerolosAtef commented Apr 10, 2024

Hello @Mikes95 , thank you your nice question, I added a readme file for the steps about how to add a new dataset here Custom_training

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants