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

vLLM CUDA OOM for loglikelihood, but not for generate_until #2698

Open
lsjlsj5846 opened this issue Feb 14, 2025 · 1 comment
Open

vLLM CUDA OOM for loglikelihood, but not for generate_until #2698

lsjlsj5846 opened this issue Feb 14, 2025 · 1 comment
Labels
asking questions For asking for clarification / support on library usage.

Comments

@lsjlsj5846
Copy link

Hello,

I persistently get issue of CUDA OOM when trying to evaluate DeepSeek-R1-Distill-Llama-8B model (locally downloaded) on HAE-RAE benchmark.
My command is as follows:

lm_eval --model vllm --model_args "pretrained=...,max_model_len=4096,max_num_seqs=256" --batch_size auto --tasks haerae

I have to reduce max_num_seqs to 4 not to get the OOM error.

However, when I evaluate the model on KMMLU benchmark, there is no issue of CUDA OOM.
My command was:

lm_eval --model vllm --model_args "pretrained=...,max_model_len=4096,max_num_seqs=256" --batch_size auto --tasks kmmlu_direct

The only difference is that HAE-RAE benchmark uses loglikelihood while KMMLU uses generate_until.
Can anyone explain why this is happening?

Thank you in advance.

@baberabb
Copy link
Contributor

Hi! This is a known issue with vllm. setting gpu_memory_utilization quite low helps (it depends on model as it's shared by the kv-cache and the weights). Setting the batch_size manually also helps.

@baberabb baberabb added the asking questions For asking for clarification / support on library usage. label Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
asking questions For asking for clarification / support on library usage.
Projects
None yet
Development

No branches or pull requests

2 participants