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

How to evaluate the lora finetune checkpoint? #5

Open
Lewislou opened this issue Nov 16, 2024 · 1 comment
Open

How to evaluate the lora finetune checkpoint? #5

Lewislou opened this issue Nov 16, 2024 · 1 comment

Comments

@Lewislou
Copy link

Hi,

After finetuning, how to evaluate the checkpoint using testint set? I did not find any codes for loading lora weights.

Best,

@waitzkin
Copy link
Collaborator

waitzkin commented Dec 13, 2024

In the codebase, the test set evaluation is conducted after the train/validation loop in the train function located in runner_base.py.

I believe this part is the most critical part.
https://github.com/AttentionX/InstructBLIP_PEFT/blob/main/lavis/runners/runner_base.py#L483

By loading the correct model into the "model" variable, I think you'll be able to evaluate benchmarks using the trained checkpoints.

Let me know if you have any further questions, and feel free to email me ([email protected]) if you need in-depth assistance.

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