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

Adds a dummy/random model #220

Merged
merged 14 commits into from
Jul 9, 2024
Merged

Conversation

guipenedo
Copy link
Collaborator

Inspired by https://github.com/EleutherAI/lm-evaluation-harness/blob/main/lm_eval/models/dummy.py, this PR adds a random/dummy model that can be used to establish random baselines and to test/debug lighteval.
Can be run with

python run_evals_accelerate.py --model_args dummy ...

DummyModelConfig has a single option: seed. To pass a seed: --model_args dummy,seed=123. The seed is used to randomly generate logprobs

Two notes:

Copy link
Member

@NathanHB NathanHB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great addition ! The code is very clean nothing to say. Could you add some doc in the README however ? :)

@guipenedo guipenedo requested a review from NathanHB July 8, 2024 16:04
@clefourrier clefourrier merged commit 70f7fc6 into huggingface:main Jul 9, 2024
2 checks 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.

3 participants