lmms-eval icon indicating copy to clipboard operation
lmms-eval copied to clipboard

exceed the api limitation in charxiv

Open zliueric opened this issue 1 year ago • 2 comments

Hi, thanks for your great work on lmms-eval!

I am running CharXiv reasoning evaluation on Qwen2.5-VL, and I frequently hit the OpenAI API rate limit: Error code: 429 - Rate limit reached for gpt-4o (TPM: Limit 30000, Used 29527, Requested 484)

To reduce the API usage, I tried to manually modify the code in:

lmms_eval/tasks/charxiv/reasoning_utils.py

specifically changing: model="gpt-4o-2024-05-13" to model="gpt-4o-mini"

However, during evaluation it still calls gpt-4o, not gpt-4o-mini. It seems that the model name is hard-coded somewhere else in the CharXiv pipeline.

Where is the correct place to configure the GPT model used for CharXiv reasoning and grading? I want to switch to gpt-4o-mini (or a different local judge) to avoid the TPM rate limit.

zliueric avatar Nov 15 '25 14:11 zliueric

I think probably because their original api have different parameters for descriptive and reasoning. So I copied from theirs and change to config here for the descriptive.

https://github.com/EvolvingLMMs-Lab/lmms-eval/blob/4993e6e2669523e9e79976bf25ea1810cb4902f1/lmms_eval/tasks/charxiv/utils.py#L101-L104

kcz358 avatar Nov 25 '25 01:11 kcz358

Looks like this was resolved. Closing - reopen if needed!

Luodian avatar Feb 09 '26 08:02 Luodian