Skip to content

Commit 63532aa

Browse files
committed
Squashed commit of the following:
commit 8f9d620 Author: Li Bo <[email protected]> Date: Sun Jun 23 14:02:25 2024 +0800 Update pyproject.toml commit 6341b7c Merge: fce85f1 903b042 Author: Li Bo <[email protected]> Date: Sun Jun 23 14:02:02 2024 +0800 Merge pull request #125 from EvolvingLMMs-Lab/dev/interleave [Model] aligned llava-interleave model results on video tasks commit 903b042 Author: kcz358 <[email protected]> Date: Sat Jun 22 12:07:13 2024 +0000 Remove unnecessary lines for video llava commit d78ec86 Merge: ebe7217 fce85f1 Author: Li Bo <[email protected]> Date: Sat Jun 22 13:57:31 2024 +0800 Merge branch 'main' into dev/interleave commit ebe7217 Author: kcz358 <[email protected]> Date: Sat Jun 22 02:57:08 2024 +0000 Delete unnecessary lines commit 120c474 Author: kcz358 <[email protected]> Date: Fri Jun 21 08:38:41 2024 +0000 Revise model registry for llava_hf and longva commit 7d6201f Author: kcz358 <[email protected]> Date: Fri Jun 21 08:38:24 2024 +0000 Add longva commit 12f4806 Author: kcz358 <[email protected]> Date: Fri Jun 21 08:35:39 2024 +0000 Remove unnecessary lines since use batched visuals now in llava commit 12cea76 Author: Bo Li <[email protected]> Date: Thu Jun 20 18:15:32 2024 +0000 chore: Add loguru for logging in lmms_eval package commit 8ef2474 Author: Bo Li <[email protected]> Date: Thu Jun 20 12:11:03 2024 +0000 chore: Remove unused models from lmms_eval package commit af38885 Author: Bo Li <[email protected]> Date: Thu Jun 20 12:07:09 2024 +0000 chore: Handle ImportError when importing models Handle the ImportError exception when importing models in the lmms_eval package. This change adds a try-except block to catch the ImportError and print an error message indicating the failed import. This will help with troubleshooting and identifying any issues with the model imports. commit fce85f1 Merge: dbe6329 d94f83c Author: Li Bo <[email protected]> Date: Thu Jun 20 20:02:12 2024 +0800 Merge pull request #120 from EvolvingLMMs-Lab/pufanyi/hf_dataset_docs Add docs for datasets upload to HF commit dbe6329 Author: choiszt <[email protected]> Date: Thu Jun 20 15:14:21 2024 +0800 update ablation for videomme datasets commit d94f83c Author: Li Bo <[email protected]> Date: Thu Jun 20 13:30:59 2024 +0800 Update README.md commit cab8159 Author: Li Bo <[email protected]> Date: Thu Jun 20 13:30:29 2024 +0800 Update README.md commit 4587665 Author: kcz358 <[email protected]> Date: Thu Jun 20 03:55:30 2024 +0000 Add llava_hf back to registry commit 3463651 Author: kcz358 <[email protected]> Date: Thu Jun 20 03:54:33 2024 +0000 Remove handling non-visual loop in llava commit cb0d3f4 Author: Fanyi Pu <[email protected]> Date: Thu Jun 20 02:11:18 2024 +0800 update readme commit 813877b Author: Fanyi Pu <[email protected]> Date: Wed Jun 19 15:37:52 2024 +0800 to sh script commit a14684b Author: Fanyi Pu <[email protected]> Date: Wed Jun 19 15:37:04 2024 +0800 lint commit d0f8851 Author: Fanyi Pu <[email protected]> Date: Wed Jun 19 15:36:48 2024 +0800 small fix commit 63748e9 Author: Fanyi Pu <[email protected]> Date: Wed Jun 19 15:36:43 2024 +0800 small fix commit 7f1159a Author: Fanyi Pu <[email protected]> Date: Wed Jun 19 15:35:05 2024 +0800 update preparation commit 19f9bd6 Author: Fanyi Pu <[email protected]> Date: Wed Jun 19 15:23:24 2024 +0800 docs commit ce6f889 Author: Fanyi Pu <[email protected]> Date: Wed Jun 19 15:04:16 2024 +0800 tutorial commit f513c52 Author: Bo Li <[email protected]> Date: Wed Jun 19 06:51:19 2024 +0000 chore: Update dependencies to fix potential risks and improve compatibility commit efb5295 Author: kcz358 <[email protected]> Date: Wed Jun 19 10:25:58 2024 +0800 Release llava-wilder commit 742651f Author: Fanyi Pu <[email protected]> Date: Wed Jun 19 07:44:26 2024 +0800 feat: Add support for auto downloading tar format videos commit 511b625 Merge: 22a4958 050b2c3 Author: Bo Li <[email protected]> Date: Tue Jun 18 17:01:03 2024 +0000 Merge branch 'main' of https://github.com/EvolvingLMMs-Lab/lmms-eval commit 050b2c3 Merge: 74facb4 ef30651 Author: Li Bo <[email protected]> Date: Tue Jun 18 13:13:38 2024 +0800 Merge pull request #114 from zjysteven/add-tinyllava add tinyllava commit ef30651 Author: Jingyang Zhang <[email protected]> Date: Mon Jun 17 17:57:02 2024 -0400 fix typo commit 9bab677 Merge: dbfb238 74facb4 Author: Jingyang Zhang <[email protected]> Date: Sun Jun 16 10:56:05 2024 -0400 Merge branch 'EvolvingLMMs-Lab:main' into add-tinyllava commit 74facb4 Merge: 8ba192f d5df72d Author: Li Bo <[email protected]> Date: Sun Jun 16 17:59:19 2024 +0800 Merge pull request #118 from teowu/main Fix the potential risk by PR #117 commit d5df72d Merge: 5bf59ed 8ba192f Author: Teo (Timothy) Wu Haoning <[email protected]> Date: Sun Jun 16 15:32:13 2024 +0800 Merge branch 'EvolvingLMMs-Lab:main' into main commit 5bf59ed Author: teowu <[email protected]> Date: Sun Jun 16 07:27:28 2024 +0000 fix #117, allow auto download with tar format videos commit 98b3955 Merge: a056f11 be9dada Author: teowu <[email protected]> Date: Sun Jun 16 07:25:07 2024 +0000 Merge branch 'main' of https://github.com/teowu/lmms-eval into main commit a056f11 Author: teowu <[email protected]> Date: Sun Jun 16 07:23:54 2024 +0000 fix #117, allow auto download with tar format videos commit 8ba192f Merge: 7cc2890 be9dada Author: Li Bo <[email protected]> Date: Sat Jun 15 17:30:59 2024 +0800 Merge pull request #117 from teowu/main LongVideoBench for LMMs-Eval commit be9dada Merge: 62ea8ce 7cc2890 Author: Teo (Timothy) Wu Haoning <[email protected]> Date: Sat Jun 15 16:39:20 2024 +0800 Merge pull request #1 from EvolvingLMMs-Lab/main Merge pull request #113 from teowu/main commit 62ea8ce Author: teowu <[email protected]> Date: Sat Jun 15 08:30:11 2024 +0000 LongVideoBench support: image LMMs (idefics2, phi3) and video LMMs (LLaVA-Next-Video-34B) commit 7cc2890 Merge: 4bc7224 ea14cd4 Author: Li Bo <[email protected]> Date: Sat Jun 15 14:10:22 2024 +0800 Merge pull request #113 from teowu/main Q-Bench, Q-Bench2, A-Bench commit dbfb238 Author: Jingyang <[email protected]> Date: Fri Jun 14 16:20:42 2024 -0400 add tinyllava commit ea14cd4 Author: teowu <[email protected]> Date: Fri Jun 14 15:01:52 2024 +0000 Add qbench, qbench2, abench; fix phi3v as its current implementation does not support multi-image commit 4bc7224 Merge: 2797987 bf14cb8 Author: Li Bo <[email protected]> Date: Fri Jun 14 02:14:43 2024 +0800 Merge pull request #111 from XinrunDu/main add II-Bench commit bf14cb8 Author: XinrunDu <[email protected]> Date: Thu Jun 13 09:37:02 2024 +0000 fix dataset_path commit 6248113 Author: XinrunDu <[email protected]> Date: Thu Jun 13 09:32:06 2024 +0000 add II-Bench commit 2797987 Merge: 63d82f1 66d4bb2 Author: Li Bo <[email protected]> Date: Thu Jun 13 11:14:47 2024 +0800 Merge pull request #109 from EvolvingLMMs-Lab/pufanyi/update_version [Small Update] Update the version of LMMs-Eval commit 66d4bb2 Author: Fanyi Pu <[email protected]> Date: Thu Jun 13 11:13:00 2024 +0800 update version commit 63d82f1 Author: Li Bo <[email protected]> Date: Thu Jun 13 11:04:32 2024 +0800 Update README.md commit 44a3379 Merge: 5ed0035 0ce46d0 Author: Li Bo <[email protected]> Date: Thu Jun 13 04:00:12 2024 +0800 Merge pull request #105 from tianyu-z/main Include VCR commit 0ce46d0 Author: Suyuchen <[email protected]> Date: Wed Jun 12 15:56:34 2024 -0400 update README.md commit 46a88d8 Merge: 47b13b9 5ed0035 Author: Suyuchen <[email protected]> Date: Wed Jun 12 15:50:26 2024 -0400 merged readme.md commit 47b13b9 Author: Suyuchen <[email protected]> Date: Wed Jun 12 15:30:52 2024 -0400 update aggregation function for vcr_wiki commit 5ed0035 Author: Li Bo <[email protected]> Date: Thu Jun 13 03:21:42 2024 +0800 Update README.md commit ed88068 Author: Li Bo <[email protected]> Date: Thu Jun 13 03:13:59 2024 +0800 Update README.md commit fea3806 Merge: d99a24a 05dc8e8 Author: Li Bo <[email protected]> Date: Thu Jun 13 03:11:49 2024 +0800 Merge pull request #108 from EvolvingLMMs-Lab/internal_main_dev [Upgrade to v0.2] Embracing Video Evaluations with LMMs-Eval commit 05dc8e8 Author: Bo Li <[email protected]> Date: Wed Jun 12 15:56:04 2024 +0000 chore: Update lmms-eval to support video evaluations for LLaVA models commit cbeee20 Author: Bo Li <[email protected]> Date: Wed Jun 12 15:50:30 2024 +0000 chore: Update lmms-eval to support video evaluations for LLaVA models commit f00d549 Author: Bo Li <[email protected]> Date: Wed Jun 12 15:46:33 2024 +0000 Update image alignment in README.md commit 3415633 Author: Bo Li <[email protected]> Date: Wed Jun 12 15:43:16 2024 +0000 Update llava conv_template in lmms_eval/models/llava.py commit 50575a9 Author: Bo Li <[email protected]> Date: Wed Jun 12 15:39:03 2024 +0000 chore: Update lmms-eval to support video evaluations for LLaVA models commit c9b2252 Author: Bo Li <[email protected]> Date: Wed Jun 12 15:33:48 2024 +0000 Bump version to 0.2.0.dev0 commit 465bd42 Merge: e43bd84 d99a24a Author: Bo Li <[email protected]> Date: Wed Jun 12 15:04:25 2024 +0000 Merge branch 'main' of https://github.com/EvolvingLMMs-Lab/lmms-eval into internal_main_dev commit e43bd84 Author: Bo Li <[email protected]> Date: Wed Jun 12 14:54:06 2024 +0000 chore: Remove unnecessary files and code related to live_bench and sft_eval tasks commit d99a24a Merge: 374590b a66003b Author: Li Bo <[email protected]> Date: Wed Jun 12 19:45:57 2024 +0800 Merge pull request #107 from AtsuMiyai/new_task/upd_update update gpt-3.5-turbo version commit a66003b Author: AtsuMiyai <[email protected]> Date: Wed Jun 12 17:05:17 2024 +0900 update gpt-3.5-turbo version commit ee91f27 Author: AtsuMiyai <[email protected]> Date: Wed Jun 12 16:50:53 2024 +0900 update gpt-3.5-turbo version commit 326b969 Author: tianyu-z <[email protected]> Date: Mon Jun 10 20:07:40 2024 -0400 include std and confidence interval commit cd050d4 Author: Suyuchen <[email protected]> Date: Mon Jun 10 18:49:47 2024 -0400 update vcr_wiki tasks in README.md commit 205721e Author: Suyuchen <[email protected]> Date: Mon Jun 10 18:43:15 2024 -0400 update vcr_wiki tasks commit db8e718 Author: tianyu-z <[email protected]> Date: Mon Jun 10 16:13:58 2024 -0400 include the try-except logic for spacy commit 427dabb Author: Suyuchen <[email protected]> Date: Mon Jun 10 15:51:05 2024 -0400 add crossed_text to vcr_wiki output commit 043b483 Author: tianyu-z <[email protected]> Date: Mon Jun 10 15:47:00 2024 -0400 switch logic commit e1f04db Author: tianyu-z <[email protected]> Date: Mon Jun 10 02:38:21 2024 -0400 modify the form of VCR commit 96e8d98 Author: tianyu-z <[email protected]> Date: Mon Jun 10 00:10:30 2024 -0400 init include vcr commit 374590b Merge: 504685e cb3b9ce Author: Kaichen Zhang - NTU <[email protected]> Date: Fri Jun 7 20:25:48 2024 +0800 Merge pull request #101 from Gumpest/main Update conbench in README commit 504685e Author: Li Bo <[email protected]> Date: Thu Jun 6 15:42:15 2024 +0800 Update README.md commit cb3b9ce Merge: c9793b3 67b64ea Author: Yuan Zhang <[email protected]> Date: Thu Jun 6 11:22:24 2024 +0800 Merge branch 'EvolvingLMMs-Lab:main' into main commit c9793b3 Author: Yuan Zhang <[email protected]> Date: Thu Jun 6 11:21:05 2024 +0800 update README commit 67b64ea Merge: 8ee7848 5fd6845 Author: Li Bo <[email protected]> Date: Wed Jun 5 23:12:58 2024 +0800 Merge pull request #100 from Gumpest/main add Conbench commit 5fd6845 Author: Yuan Zhang <[email protected]> Date: Wed Jun 5 21:52:31 2024 +0800 add conbench commit 8ee7848 Merge: 747e197 6fefaf7 Author: Li Bo <[email protected]> Date: Tue Jun 4 17:09:33 2024 +0800 Merge pull request #95 from AtsuMiyai/new_task/upd add MM-UPD commit 747e197 Merge: 4854a34 0584307 Author: Li Bo <[email protected]> Date: Tue Jun 4 17:09:04 2024 +0800 Merge pull request #97 from CaraJ7/update Add MathVerse in README.md commit 6fefaf7 Author: AtsuMiyai <[email protected]> Date: Tue Jun 4 17:36:39 2024 +0900 update utils.py for leaderboard submission commit 5f4fe36 Author: AtsuMiyai <[email protected]> Date: Sun Jun 2 23:28:27 2024 +0900 slightly change query_prompt for the reproduction commit 0584307 Author: CaraJ7 <[email protected]> Date: Sun Jun 2 17:05:28 2024 +0800 Add MathVerse in README.md commit 0581ab3 Author: AtsuMiyai <[email protected]> Date: Fri May 31 16:09:45 2024 +0900 merge model_specific_prompt_kwargs and dataset_name into each task yaml commit 4854a34 Author: Pu Fanyi <[email protected]> Date: Sat May 4 19:23:39 2024 +0800 Group MMMU images into one image (#83) * update * update font * Add matplotlib.font_manager import in utils.py * Refactor font handling in add_order_label function in utils.py * group mmmu --------- Co-authored-by: Li Bo <[email protected]> commit d224794 Author: AtsuMiyai <[email protected]> Date: Wed May 29 15:15:59 2024 +0900 add upd commit 453e793 Author: AtsuMiyai <[email protected]> Date: Wed May 29 15:03:30 2024 +0900 add upd commit 909edd6 Author: AtsuMiyai <[email protected]> Date: Wed May 29 12:52:21 2024 +0900 add upd commit 7c1ac97 Author: AtsuMiyai <[email protected]> Date: Wed May 29 12:50:32 2024 +0900 add upd commit 811301c Author: AtsuMiyai <[email protected]> Date: Wed May 29 12:46:58 2024 +0900 add upd commit 71401ba Author: AtsuMiyai <[email protected]> Date: Wed May 29 12:41:21 2024 +0900 add upd commit 24dc435 Author: Bo Li <[email protected]> Date: Mon May 27 10:17:32 2024 +0000 fix compatibility issue of older version llava commit 616edf4 Author: Bo Li <[email protected]> Date: Mon May 27 09:32:26 2024 +0000 [Fix] import issues of multilingual llava and olympiadbench commit 4c5a99e Merge: 45c05b2 b05c3e2 Author: Li Bo <[email protected]> Date: Mon May 27 14:19:53 2024 +0800 Merge pull request #87 from vfragoso/vifragos/phi3v Adding microsoft/Phi-3-vision-128k-instruct model. commit b05c3e2 Author: Victor Fragoso <[email protected]> Date: Fri May 24 16:36:37 2024 +0000 Adding documentation of Phi3v class. commit c200897 Author: Victor Fragoso <[email protected]> Date: Fri May 24 16:25:02 2024 +0000 Adding prompt arguments for Phi3v on MathVista-TestMini commit 7f9fb6b Author: Victor Fragoso <[email protected]> Date: Fri May 24 13:24:16 2024 +0000 Adding Phi3v model. commit 45c05b2 Author: kcz358 <[email protected]> Date: Thu May 23 03:47:36 2024 +0000 Set printing info for llava_hf to debug level commit 53f013e Author: kcz358 <[email protected]> Date: Thu May 23 03:41:39 2024 +0000 Fix pope random name in pope full commit 22520a9 Author: kcz358 <[email protected]> Date: Thu May 23 03:41:14 2024 +0000 Add separated pope tasks by category commit d1eefb1 Author: kcz358 <[email protected]> Date: Thu May 9 08:36:02 2024 +0000 Update gitignore commit b2b4dbd Author: kcz358 <[email protected]> Date: Mon May 20 07:45:11 2024 +0000 Comment out Spice in caption task so that don't need to download stanford nlp model commit 662f05c Author: kcz358 <[email protected]> Date: Mon May 20 03:13:13 2024 +0000 Comment out parse result in xcomposer commit 0932932 Author: kcz358 <[email protected]> Date: Thu May 16 03:55:39 2024 +0000 Fix instructblip qformer size mismatch and multi-images problem commit 557a6a3 Author: kcz358 <[email protected]> Date: Thu May 16 03:11:41 2024 +0000 Remove redundant code in fuyu commit 6aeb550 Author: kcz358 <[email protected]> Date: Thu May 16 01:45:24 2024 +0000 Fix idefics2 llava in the wild bugs commit aea80e6 Author: kcz358 <[email protected]> Date: Wed May 15 11:07:35 2024 +0000 Better task list_with_num commit 3c12a08 Author: Li Bo <[email protected]> Date: Sat May 18 02:35:52 2024 +0800 Update LICENSE commit 82317a6 Author: Li Bo <[email protected]> Date: Sat May 18 02:29:09 2024 +0800 Update LICENSE commit a8bba1c Author: Li Bo <[email protected]> Date: Sat May 18 02:28:03 2024 +0800 Create LICENSE commit caa5893 Merge: c094448 423b006 Author: Li Bo <[email protected]> Date: Mon May 13 11:45:26 2024 +0800 Merge pull request #73 from EvolvingLMMs-Lab/kc/qwen_vl_api [Feat] Add qwen vl api commit c094448 Author: kcz358 <[email protected]> Date: Sat May 11 06:11:19 2024 +0000 Fix llava_hf image tokens number issue commit 64f07e4 Author: kcz358 <[email protected]> Date: Thu May 9 02:04:10 2024 +0000 Fix endless warning for llava_hf generation commit 8aaa828 Author: Bo Li <[email protected]> Date: Thu May 2 06:13:56 2024 +0000 Add model_name parameter to Llava constructor commit 7847dc4 Author: kcz358 <[email protected]> Date: Tue May 7 03:15:59 2024 +0000 Parse result for llava_hf 1.6 commit 3e56b4f Author: kcz358 <[email protected]> Date: Tue May 7 03:09:56 2024 +0000 Fix llava_hf generation for 1.6 commit fa3ff92 Author: kcz358 <[email protected]> Date: Mon May 6 08:32:57 2024 +0000 Fix llava conv template for llama3 commit 423b006 Author: kcz358 <[email protected]> Date: Sun May 5 07:54:52 2024 +0000 Add qwen vl api commit b7fd7a9 Merge: 986139a c5a130b Author: Li Bo <[email protected]> Date: Sun May 5 13:19:48 2024 +0800 Merge pull request #59 from EvolvingLMMs-Lab/add_idefics2 add idefics2 commit 986139a Merge: b46239c 8d3526c Author: Li Bo <[email protected]> Date: Fri May 3 01:18:18 2024 +0800 Merge pull request #36 from cocoshe/main [Fix] repr llava doc commit b46239c Merge: bc69a74 373265f Author: Li Bo <[email protected]> Date: Fri May 3 01:17:34 2024 +0800 Merge pull request #56 from gagan3012/main Multilingual LLava bench commit bc69a74 Merge: eef3aeb 626e8a9 Author: Li Bo <[email protected]> Date: Fri May 3 01:12:14 2024 +0800 Merge pull request #70 from hunterheiden/hsh/new_task/WebSRC Bugfix: WebSRC should be token-level F1 NOT character-level commit 626e8a9 Author: Hunter Heidenreich <[email protected]> Date: Thu May 2 09:31:03 2024 -0400 Bugfix: WebSRC should be token-level F1 NOT character-level commit eef3aeb Merge: c4e9dd9 9bca441 Author: Li Bo <[email protected]> Date: Thu May 2 14:38:17 2024 +0800 Merge pull request #69 from hunterheiden/hsh/new_task/WebSRC [New Task] WebSRC (multimodal Q&A on web screenshots) commit 9bca441 Author: Hunter Heidenreich <[email protected]> Date: Wed May 1 11:07:29 2024 -0400 Add code to enable compilation of submission for WebSRC test split commit 7687495 Author: Hunter Heidenreich <[email protected]> Date: Wed May 1 10:47:32 2024 -0400 Draft and validate websrc eval on dev split commit 4eebd3e Author: Hunter Heidenreich <[email protected]> Date: Wed May 1 10:46:54 2024 -0400 Update main README with new task names commit 35fe80b Author: Hunter Heidenreich <[email protected]> Date: Wed May 1 10:46:20 2024 -0400 Draft README for WebSRC commit 955bd06 Author: Hunter Heidenreich <[email protected]> Date: Tue Apr 30 10:16:21 2024 -0400 Init webSRC commit c4e9dd9 Merge: d8a3a99 319afcc Author: Li Bo <[email protected]> Date: Fri Apr 26 14:37:22 2024 +0800 Merge pull request #63 from hunterheiden/hsh/new_task/screenspot New Task: ScreenSpot - Grounding (REC) and instruction generation (REG) on screens commit 319afcc Author: Hunter Heidenreich <[email protected]> Date: Thu Apr 25 11:44:34 2024 -0400 slight update commit 2f3811c Author: Hunter Heidenreich <[email protected]> Date: Thu Apr 25 11:41:04 2024 -0400 Add README file specific to ScreenSpot commit 28962cb Author: Hunter Heidenreich <[email protected]> Date: Wed Apr 24 11:52:33 2024 -0400 Update README to reflect new tasks commit e457cfb Author: Hunter Heidenreich <[email protected]> Date: Tue Apr 23 18:33:16 2024 -0400 Create ScreenSpot on clean branch commit d8a3a99 Merge: 3dcd015 ed17129 Author: Li Bo <[email protected]> Date: Tue Apr 23 10:34:03 2024 +0800 Merge pull request #61 from tupini07/patch-1 Fix typo in Qwen-VL that was causing "reference before assignment" commit ed17129 Author: Andrea Tupini <[email protected]> Date: Mon Apr 22 14:56:41 2024 -0600 refactor query construction for clarity commit cd87420 Author: Andrea Tupini <[email protected]> Date: Mon Apr 22 14:54:29 2024 -0600 convert contexts to list if necessary and remove unnecessary construction of `questions` commit 8557367 Author: Andrea Tupini <[email protected]> Date: Mon Apr 22 14:47:33 2024 -0600 Fix typo in qwen_vl that was causing "reference before assignment" commit 3dcd015 Merge: 95df9fe 743673a Author: Li Bo <[email protected]> Date: Sat Apr 20 22:03:16 2024 +0800 Merge pull request #60 from CaraJ7/main Add MathVerse commit 743673a Merge: c1a5472 95df9fe Author: CaraJ7 <[email protected]> Date: Sat Apr 20 21:49:02 2024 +0800 Merge branch 'main' of https://github.com/EvolvingLMMs-Lab/lmms-eval commit c1a5472 Author: CaraJ7 <[email protected]> Date: Sat Apr 20 21:45:34 2024 +0800 Add MathVerse commit 373265f Author: Gagan Bhatia <[email protected]> Date: Fri Apr 12 17:21:39 2024 -0700 Add files via upload commit d853051 Author: Gagan Bhatia <[email protected]> Date: Fri Apr 12 17:19:49 2024 -0700 Create README.md commit 22a4958 Author: Bo Li <[email protected]> Date: Thu Apr 4 17:12:43 2024 +0000 [WIP] adding mmbench dev evaluation (#75) * WIP * Update GPT evaluation model name and sys prompt * 🛠️ Scale accuracy to percentage The accuracy value is now multiplied by 100 in the aggregation function to represent it as a percentage. Regarding the evaluation process, `math` module importation and refactoring reduce progress log verbosity by logging every 100 evaluations instead of 10. It prevents potential logging overflow. Handling of NaN values is added to ensure 'default_value' is set in case of missing data, avoiding errors in split, category, and l2-category assignments. Finally, reporting of categorical and l2-categorical accuracies is streamlined through a new `calculate_hit_rates` function, improving code readability and maintenance. Issue refs: #1427, #1533 * Update GPT evaluation model name and API configuration * Refactor MMBench_Evaluator class to handle missing columns * Add print statements for detailed results in MMBench-CN(CC), MMBench-CN(Dev), and MMBench-EN(Dev) evaluations * Refactor MMBench-CN and MMBench-EN evaluation functions * 🔄 Refactor result processing and logging logic - Simplified the result processing functions across different utility modules (`cc_utils.py`, `cn_utils.py`, `en_utils.py`) to unify the handling of multiple-choice options. Now, all options ("A" to "E") are dynamically added to the result data, and default to "nan" if not provided in the document. - Removed redundant keys directly from the process results dict creation to avoid clutter and align with the new dynamic addition of options. - In `mmbench_evals.py`, removed the unnecessary check for all splits being 'dev' and streamlined the evaluation loop by eliminating the progress bar (tqdm) for a cleaner log output. - Commented-out code and verbose logging during evaluation, which may have interfered with performance, has been removed for a more efficient and less intrusive logging experience. This cleanup reduces redundancy in the codebase and improves evaluation performance. Refs #2045 --------- Co-authored-by: Bo Li <[email protected]> (cherry picked from commit a19278c) commit 8d3526c Author: cocoshe <[email protected]> Date: Thu Mar 28 13:38:36 2024 +0800 fix doc
1 parent 1d282ca commit 63532aa

File tree

118 files changed

+579
-657
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+579
-657
lines changed

Diff for: docs/README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ Majority of this documentation is adapted from [lm-eval-harness](https://github.
88

99
* To learn about the command line flags, see the [commands](commands.md)
1010
* To learn how to add a new moddel, see the [Model Guide](model_guide.md).
11-
* For a crash course on adding new tasks to the library, see our [Task Guide](task_guide.md).
11+
* For a crash course on adding new tasks to the library, see our [Task Guide](task_guide.md).
12+
* If you need to upload your datasets into correct HF format with viewer supported, please refer to [tools](https://github.com/EvolvingLMMs-Lab/lmms-eval/tree/pufanyi/hf_dataset_docs/tools)

Diff for: lmms_eval/__main__.py

+6-23
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
import os
22
import yaml
33
import sys
4-
import copy
54
import json
6-
import logging
5+
76
import traceback
87
import argparse
9-
import torch
108
import numpy as np
119
import datetime
1210

@@ -25,10 +23,7 @@
2523
from lmms_eval.tasks import initialize_tasks, include_path, get_task_dict
2624
from lmms_eval.api.registry import ALL_TASKS
2725
from lmms_eval.logging_utils import WandbLogger
28-
from lmms_eval.utils import PathFormatter
29-
30-
31-
eval_logger = logging.getLogger("lmms-eval")
26+
from loguru import logger as eval_logger
3227

3328

3429
def _handle_non_serializable(o):
@@ -166,9 +161,10 @@ def cli_evaluate(args: Union[argparse.Namespace, None] = None) -> None:
166161
print("└───────────────────────────────────────────────────────────────────────────────┘")
167162
sys.exit(1)
168163

169-
set_loggers(args)
170-
eval_logger = logging.getLogger("lmms-eval")
171-
eval_logger.setLevel(getattr(logging, f"{args.verbosity}"))
164+
# reset logger
165+
eval_logger.remove()
166+
eval_logger.add(sys.stdout, colorize=True, level=args.verbosity)
167+
eval_logger.add(sys.stderr, level=args.verbosity)
172168
eval_logger.info(f"Verbosity set to {args.verbosity}")
173169
os.environ["TOKENIZERS_PARALLELISM"] = "false"
174170

@@ -228,11 +224,6 @@ def cli_evaluate(args: Union[argparse.Namespace, None] = None) -> None:
228224

229225

230226
def cli_evaluate_single(args: Union[argparse.Namespace, None] = None) -> None:
231-
eval_logger = logging.getLogger("lmms-eval")
232-
eval_logger.setLevel(getattr(logging, f"{args.verbosity}"))
233-
eval_logger.info(f"Verbosity set to {args.verbosity}")
234-
os.environ["TOKENIZERS_PARALLELISM"] = "false"
235-
236227
initialize_tasks(args.verbosity)
237228

238229
if args.predict_only:
@@ -350,13 +341,5 @@ def print_results(args, results):
350341
print(evaluator.make_table(results, "groups"))
351342

352343

353-
def set_loggers(args):
354-
eval_logger = logging.getLogger("lmms-eval")
355-
ch = logging.StreamHandler()
356-
formatter = PathFormatter("%(asctime)s [%(pathname)s:%(lineno)d] %(levelname)s %(message)s", "%m-%d %H:%M:%S", timezone=args.timezone)
357-
ch.setFormatter(formatter)
358-
eval_logger.addHandler(ch)
359-
360-
361344
if __name__ == "__main__":
362345
cli_evaluate()

Diff for: lmms_eval/api/metrics.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@
99
import torch
1010

1111
from lmms_eval.api.registry import register_metric, register_aggregation
12-
13-
import logging
14-
15-
eval_logger = logging.getLogger("lmms-eval")
12+
from loguru import logger as eval_logger
1613

1714

1815
# Register Aggregations First

Diff for: lmms_eval/api/model.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
from lmms_eval.api.instance import Instance
99
from tqdm import tqdm
1010
from lmms_eval import utils
11-
import logging
1211

13-
eval_logger = logging.getLogger("lmms-eval")
12+
13+
from loguru import logger as eval_logger
1414

1515
T = TypeVar("T", bound="lmms")
1616

Diff for: lmms_eval/api/registry.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
from lmms_eval.api.model import lmms
22

33
from typing import Callable, Dict
4-
import logging
54
import evaluate as hf_evaluate
65

7-
eval_logger = logging.getLogger("lmms-eval")
6+
from loguru import logger as eval_logger
87

98
MODEL_REGISTRY = {}
109

Diff for: lmms_eval/api/task.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import ast
33
import itertools
44
import json
5-
import logging
5+
66
import os
77
import random
88
import re
@@ -37,7 +37,7 @@
3737
)
3838
from lmms_eval.filters import build_filter_ensemble
3939

40-
eval_logger = logging.getLogger("lmms-eval")
40+
from loguru import logger as eval_logger
4141

4242
# HuggingfaceM4/NoCaps contains truncated image in test split
4343
# Include this inside code block to avoid error

Diff for: lmms_eval/evaluator.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from tqdm import tqdm
88

99
import torch
10-
import logging
10+
1111
import numpy as np
1212
from datasets import Image, Sequence
1313

@@ -17,8 +17,6 @@
1717
import lmms_eval.api.metrics
1818
import lmms_eval.api.registry
1919

20-
import re
21-
2220
from lmms_eval.utils import (
2321
positional_deprecated,
2422
run_task_tests,
@@ -28,7 +26,7 @@
2826
simple_parse_args_string,
2927
)
3028

31-
eval_logger = logging.getLogger("lmms-eval")
29+
from loguru import logger as eval_logger
3230

3331

3432
@positional_deprecated

Diff for: lmms_eval/logging_utils.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Code mostly from: https://github.com/EleutherAI/lm-evaluation-harness/pull/1339, credit to: https://github.com/ayulockin
22
import copy
3-
import logging
3+
44
import re
55
import os
66
import json
@@ -9,13 +9,10 @@
99
import numpy as np
1010
from datetime import datetime
1111
from typing import Any, Dict, List, Literal, Tuple, Union
12-
1312
from packaging.version import Version
14-
1513
from lmms_eval import utils
1614
import tenacity
17-
18-
logger = logging.getLogger(__name__)
15+
from loguru import logger
1916

2017
try:
2118
import wandb

Diff for: lmms_eval/models/__init__.py

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
import os
2-
import hf_transfer
1+
from loguru import logger
2+
import sys
33

4-
os.environ["HF_HUB_ENABLE_HF_TRANSFER"] = "1"
4+
logger.remove()
5+
logger.add(sys.stdout, level="WARNING")
56

67
AVAILABLE_MODELS = {
78
"llava": "Llava",
@@ -22,18 +23,19 @@
2223
"idefics2": "Idefics2",
2324
"internvl": "InternVLChat",
2425
"gemini_api": "GeminiAPI",
25-
"gemini_model": "GeminiModel",
2626
"reka": "Reka",
27-
"llava_onevision": "Llava_OneVision",
2827
"from_log": "FromLog",
2928
"mplug_owl_video": "mplug_Owl",
3029
"phi3v": "Phi3v",
3130
"tinyllava": "TinyLlava",
3231
"llava_onevision": "Llava_OneVision",
32+
"llava_hf": "LlavaHf",
33+
"longva": "LongVA",
3334
}
3435

3536
for model_name, model_class in AVAILABLE_MODELS.items():
3637
try:
3738
exec(f"from .{model_name} import {model_class}")
38-
except ImportError:
39+
except ImportError as e:
40+
# logger.warning(f"Failed to import {model_class} from {model_name}: {e}")
3941
pass

Diff for: lmms_eval/models/batch_gpt4.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from copy import deepcopy
33
from io import BytesIO
44
import base64
5-
import logging
5+
66
import os
77
import time
88
import json
@@ -20,14 +20,13 @@
2020
from lmms_eval.api.instance import Instance
2121
from lmms_eval.api.model import lmms
2222
from lmms_eval.api.registry import register_model
23-
from lmms_eval import utils
23+
from loguru import logger as eval_logger
2424

2525
# Conditional imports
2626
try:
2727
from decord import VideoReader, cpu
2828
except ImportError:
29-
eval_logger = logging.getLogger("lmms-eval")
30-
eval_logger.info("Decord is not installed. Video input will not be supported.")
29+
eval_logger.warning("Decord is not installed. Video input will not be supported.")
3130

3231
# Constants and global configurations
3332
API_TYPE = os.getenv("API_TYPE", "openai")

Diff for: lmms_eval/models/claude.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,28 @@
55
import json
66
from typing import List, Tuple, Union
77
from tqdm import tqdm
8-
import requests as url_requests
98
import time
10-
import logging
119

1210
from lmms_eval.api.instance import Instance
1311
from lmms_eval.api.model import lmms
1412
from lmms_eval.api.registry import register_model
15-
from lmms_eval import utils
1613

1714
from accelerate import Accelerator, DistributedType
1815

1916
from PIL import Image
2017

2118
NUM_SECONDS_TO_SLEEP = 5
22-
eval_logger = logging.getLogger("lmms-eval")
19+
20+
from loguru import logger
21+
22+
eval_logger = logger
2323

2424
try:
2525
import anthropic
2626
from decord import VideoReader, cpu
2727
import numpy as np
2828
except Exception as e:
29-
eval_logger.error(f"Error importing claude: {e}")
29+
eval_logger.warning(f"Error importing claude: {e}")
3030

3131
API_URL = os.getenv("ANTHROPIC_API_URL", "https://api.anthropic.com/v1/complete")
3232
API_KEY = os.getenv("ANTHROPIC_API_KEY", "YOUR_API_KEY")

Diff for: lmms_eval/models/from_log.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import logging
21
import json
32
import os
43
import re
@@ -11,7 +10,7 @@
1110
from lmms_eval.api.instance import Instance
1211
from accelerate import Accelerator, DistributedType
1312

14-
eval_logger = logging.getLogger("lmms-eval")
13+
from loguru import logger as eval_logger
1514

1615

1716
@register_model("from_log")

Diff for: lmms_eval/models/fuyu.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,8 @@
1515
from tqdm import tqdm
1616
from accelerate import Accelerator, DistributedType
1717
from accelerate.state import AcceleratorState
18-
import logging
1918

20-
import logging
21-
22-
eval_logger = logging.getLogger("lmms-eval")
19+
from loguru import logger as eval_logger
2320

2421

2522
@register_model("fuyu")

Diff for: lmms_eval/models/gemini_api.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import io
22
import os
33
import time
4-
import logging
4+
55
import json
66

77
from PIL import Image
@@ -12,7 +12,7 @@
1212
from lmms_eval.api.instance import Instance
1313
from accelerate import Accelerator, DistributedType
1414

15-
eval_logger = logging.getLogger("lmms-eval")
15+
from loguru import logger as eval_logger
1616

1717
try:
1818
import google.generativeai as genai

Diff for: lmms_eval/models/gpt4v.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from tqdm import tqdm
88
import requests as url_requests
99
import time
10-
import logging
10+
1111

1212
from lmms_eval.api.instance import Instance
1313
from lmms_eval.api.model import lmms
@@ -26,7 +26,7 @@
2626

2727
API_TYPE = os.getenv("API_TYPE", "openai")
2828
NUM_SECONDS_TO_SLEEP = 30
29-
eval_logger = logging.getLogger("lmms-eval")
29+
from loguru import logger as eval_logger
3030

3131
if API_TYPE == "openai":
3232
API_URL = os.getenv("OPENAI_API_URL", "https://api.openai.com/v1/chat/completions")

Diff for: lmms_eval/models/idefics2.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import torch
2-
import logging
2+
33
from tqdm import tqdm
44
from lmms_eval import utils
55
from lmms_eval.api.instance import Instance
@@ -14,7 +14,7 @@
1414

1515
warnings.filterwarnings("ignore")
1616

17-
eval_logger = logging.getLogger("lmms-eval")
17+
from loguru import logger as eval_logger
1818

1919
DEFAULT_IMAGE_TOKEN = "<image>"
2020
try:

Diff for: lmms_eval/models/instructblip.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import torch
2-
import logging
2+
33
import copy
44
from tqdm import tqdm
55
from lmms_eval import utils
@@ -20,8 +20,7 @@
2020

2121
warnings.filterwarnings("ignore")
2222

23-
eval_logger = logging.getLogger("lmms-eval")
24-
transformers.logging.set_verbosity_error()
23+
from loguru import logger as eval_logger
2524

2625

2726
@register_model("instructblip")

Diff for: lmms_eval/models/internvl.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import logging
21
import os
32
from accelerate import Accelerator, DistributedType, InitProcessGroupKwargs
43
from accelerate.state import AcceleratorState
@@ -26,7 +25,7 @@
2625
import sys
2726

2827
sys.path.append(os.path.join(str(wd), "InternVL", "internvl_chat"))
29-
eval_logger = logging.getLogger("lmms-eval")
28+
from loguru import logger as eval_logger
3029

3130
if not hasattr(eval_logger, "internvl_warning_logged"):
3231
eval_logger.internvl_warning_logged = False

Diff for: lmms_eval/models/llama_vid.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import logging
21
import os
32
from accelerate import Accelerator, DistributedType, InitProcessGroupKwargs
43
from accelerate.state import AcceleratorState
@@ -22,7 +21,7 @@
2221

2322
import subprocess
2423

25-
eval_logger = logging.getLogger("lmms-eval")
24+
from loguru import logger as eval_logger
2625

2726
try:
2827
from llamavid.constants import IMAGE_TOKEN_INDEX, DEFAULT_IMAGE_TOKEN, DEFAULT_IM_START_TOKEN, DEFAULT_IM_END_TOKEN

0 commit comments

Comments
 (0)