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

Add lm_eval test for HPU #298

Closed
wants to merge 5 commits into from

Conversation

kzawora-intel
Copy link

@kzawora-intel kzawora-intel commented Sep 18, 2024

Currently only testing Llama3.1-8b-Instruct with lm_eval on GSM-8K and IFeval. Both tests pass, can be expanded if needed.

Comment on lines 114 to 115
[TaskConfigs.gsm8k_llama_cot, TaskConfigs.ifeval],
ids=['gsm8k_llama_cot', 'ifeval'],

Choose a reason for hiding this comment

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

I think you can pass a function as 'ids'. Something like:

def get_task_name(task_cfg):
    return task_cfg["task_name"]

...

@pytest.mark.parametrize("task_cfg",
                         [TaskConfigs.gsm8k_llama_cot, TaskConfigs.ifeval],
                         ids=get_task_name,

Copy link
Author

Choose a reason for hiding this comment

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

fixed, thanks!

Choose a reason for hiding this comment

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

Perhaps we should move it to the extension repo?

Copy link
Author

Choose a reason for hiding this comment

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

Yeah, the PR got a little bloated now. I'll close it.

@kzawora-intel kzawora-intel added the habana Issues or PRs submitted by Habana Labs label Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
habana Issues or PRs submitted by Habana Labs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants