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

Xtuner和VLMEvalKit针对MMBench的结果不对齐 #640

Closed
thomas-yanxin opened this issue May 4, 2024 · 4 comments
Closed

Xtuner和VLMEvalKit针对MMBench的结果不对齐 #640

thomas-yanxin opened this issue May 4, 2024 · 4 comments
Assignees

Comments

@thomas-yanxin
Copy link

基于Xtuner训练LLaVA-Phi3

使用Xtuner评估MMBench-Dev-EN:0.7096
使用VLMEvalKit评估MMBench-Dev-EN:0.549828

@LZHgrla
Copy link
Collaborator

LZHgrla commented May 6, 2024

@thomas-yanxin
请问 vlmevalkit 的 model config 是怎么配置的?

@thomas-yanxin
Copy link
Author

xtuner_series = {
'llava-internlm2-7b': partial(LLaVA_XTuner, llm_path='internlm/internlm2-chat-7b', llava_path='xtuner/llava-internlm2-7b', visual_select_layer=-2, prompt_template='internlm2_chat'),
'llava-internlm2-20b': partial(LLaVA_XTuner, llm_path='internlm/internlm2-chat-20b', llava_path='xtuner/llava-internlm2-20b', visual_select_layer=-2, prompt_template='internlm2_chat'),
'llava-internlm-7b': partial(LLaVA_XTuner, llm_path='internlm/internlm-chat-7b', llava_path='xtuner/llava-internlm-7b', visual_select_layer=-2, prompt_template='internlm_chat'),
'llava-v1.5-7b-xtuner': partial(LLaVA_XTuner, llm_path='lmsys/vicuna-7b-v1.5', llava_path='xtuner/llava-v1.5-7b-xtuner', visual_select_layer=-2, prompt_template='vicuna'),
'llava-v1.5-13b-xtuner': partial(LLaVA_XTuner, llm_path='lmsys/vicuna-13b-v1.5', llava_path='xtuner/llava-v1.5-13b-xtuner', visual_select_layer=-2, prompt_template='vicuna'),
'llava-phi-3': partial(LLaVA_XTuner, llm_path='microsoft/Phi-3-mini-4k-instruct', llava_path='xtuner/llava-phi-3-mini-xtuner, visual_select_layer=-2, prompt_template='phi3_chat'),
}

@LZHgrla
Copy link
Collaborator

LZHgrla commented May 6, 2024

@thomas-yanxin
因为llava-phi-3的llm也微调了,所以llm_path不应是原llm

'llava-phi-3': partial(
    LLaVA_XTuner,
-   llm_path='microsoft/Phi-3-mini-4k-instruct',
+   llm_path='xtuner/llava-phi-3-mini-xtuner',
    llava_path='xtuner/llava-phi-3-mini-xtuner',
    visual_select_layer=-2,
    prompt_template='phi3_chat'),

@thomas-yanxin
Copy link
Author

solved,tks

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

3 participants