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

Different models on same tasks gives same results when cache is active #2715

Open
salvatore-cipolla opened this issue Feb 19, 2025 · 1 comment
Labels
bug Something isn't working.

Comments

@salvatore-cipolla
Copy link

Executing the same task with same configs on two different models produces same identical resulting metrics when using cache. If I don't use cache I get the correct results (different metrics). Is cache working properly?

To reproduce the problem:

lm_eval --model hf \
    --model_args pretrained=Qwen/Qwen2.5-3B \
    --tasks hellaswag \
    --device cuda:0 \
    --batch_size 1 \
    --limit 10 \
    --output_path output/test \
    --use_cache cache/cache.db

lm_eval --model hf \
    --model_args pretrained=meta-llama/Llama-3.2-3B \
    --tasks hellaswag \
    --device cuda:0 \
    --batch_size 1 \
    --limit 10 \
    --output_path output/test \
    --use_cache cache/cache.db

I'm using the latest version of the library installed directly from this repo.

@salvatore-cipolla salvatore-cipolla changed the title Different models on same tasks gives same results Different models on same tasks gives same results when cache is active Feb 19, 2025
@baberabb baberabb added the bug Something isn't working. label Feb 19, 2025
@baberabb
Copy link
Contributor

will have a look! probably a hashing error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working.
Projects
None yet
Development

No branches or pull requests

2 participants