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

[Model] Add new model: LMDeploy api #688

Merged
merged 6 commits into from
Dec 25, 2024

Conversation

irexyc
Copy link
Contributor

@irexyc irexyc commented Dec 23, 2024

Usage:

server:

lmdeploy serve api_server /mnt/141/InternVL2-8B/ --model-name InternVL2-8B --cache-max-entry-count 0.5

eval:

python run.py --data HallusionBench OCRBench --model lmdeploy --verbose --nproc 64

result of transformers:

"split","aAcc","fAcc","qAcc"
"Overall","63.932702418506835","35.54913294797688","35.604395604395606"
"VS","69.16666666666667","36.206896551724135","44.9438202247191"
"VD","60.74450084602368","35.21739130434783","29.602888086642597"
"VS_table","75.0","39.285714285714285","53.48837209302325"
"VD_ocr","75.28089887640449","51.162790697674424","51.162790697674424"
"VD_figure","66.25","51.21951219512195","33.33333333333333"
"VS_chart","76.15384615384615","42.5","63.1578947368421"
"VS_ocr","53.70370370370371","26.923076923076923","11.11111111111111"
"VD_illusion","64.58333333333334","40.32258064516129","31.944444444444443"
"VD_video","50.0","12.5","11.594202898550725"
"VD_math","56.481481481481474","19.444444444444446","29.629629629629626"
"VS_map","57.8125","31.818181818181817","18.75"


{
    "Text Recognition": 235,
    "Scene Text-centric VQA": 174,
    "Doc-oriented VQA": 158,
    "Key Information Extraction": 162,
    "Handwritten Mathematical Expression Recognition": 64,
    "Final Score": 793,
    "Final Score Norm": 79.3
}

result of lmdeploy:

"split","aAcc","fAcc","qAcc"
"Overall","63.512092534174556","36.70520231213873","35.604395604395606"
"VD","60.06768189509306","36.52173913043478","28.880866425992778"
"VS","69.16666666666667","37.06896551724138","46.06741573033708"
"VD_ocr","74.15730337078652","51.162790697674424","48.837209302325576"
"VD_video","49.411764705882355","18.75","8.695652173913043"
"VD_math","53.70370370370371","19.444444444444446","27.77777777777778"
"VS_ocr","53.70370370370371","26.923076923076923","11.11111111111111"
"VS_table","75.0","39.285714285714285","53.48837209302325"
"VS_chart","76.92307692307693","45.0","65.78947368421053"
"VS_map","56.25","31.818181818181817","18.75"
"VD_figure","67.5","51.21951219512195","35.8974358974359"
"VD_illusion","64.58333333333334","40.32258064516129","33.33333333333333"


{
    "Text Recognition": 234,
    "Scene Text-centric VQA": 174,
    "Doc-oriented VQA": 157,
    "Key Information Extraction": 165,
    "Handwritten Mathematical Expression Recognition": 66,
    "Final Score": 796,
    "Final Score Norm": 79.6
}

@kennymckormick kennymckormick merged commit 2fd7140 into open-compass:main Dec 25, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants