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

Firstly, thank you very much for your contribution to the codebase. I am currently working on evaluating LLaVA and have encountered a few issues. I look forward to your guidance. #476

Open
LiZhangMing opened this issue Dec 27, 2024 · 3 comments

Comments

@LiZhangMing
Copy link

Firstly, thank you very much for your contribution to the codebase. I am currently working on evaluating LLaVA and have encountered a few issues. I look forward to your guidance.

For LLaVA, I first performed pretraining, followed by fine-tuning with LoRA. However, during evaluation, I ran into the following problems:

  1. How can I load a local dataset, such as datasets--lmms-lab--MME?
  2. How can I load a locally pretrained LoRA model?

Below is the command I am using:

CUDA_VISIBLE_DEVICES=6 python3 -m accelerate.commands.launch \
  --num_processes=1 \
  -m lmms_eval \
  --model llava \
  --model_args pretrained="local model" \
  --tasks mme \
  --batch_size 1 \
  --log_samples \
  --log_samples_suffix llava_v1.5_mme \
  --output_path ./logs/

Looking forward to your suggestions.

@kcz358
Copy link
Collaborator

kcz358 commented Dec 27, 2024

  1. For local dataset, please check some of the issues in the common issues. I believe you can now solve it with HF_DATASETS_OFFLINE
  2. I am not sure what is the correctly way to load lora weights. But the logic should be the same, you might need to take a lot in the model init and see how to pass in the weights. Feel free to check issues such as How to evaluate LLaVA-OneVision finetuned with custom dataset? #241

@LiZhangMing
Copy link
Author

Thank you very much for your response! Regarding the loading of offline datasets, I’d like to ask if we have any hyperparameters that can be directly configured to handle this.

@kcz358
Copy link
Collaborator

kcz358 commented Dec 27, 2024

This should related to the offline mode of the huggingface dataset. You should try setting the correspond env var that related to this and download the cached dataset.

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