Skip to content

Conversation

NathanHB
Copy link
Member

No description provided.

@HuggingFaceDocBuilderDev
Copy link
Collaborator

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@NathanHB NathanHB requested a review from lewtun February 25, 2025 11:13
stop_tokens = dataset[0].stop_sequence

max_new_tokens = dataset[0].generation_size # could be none
max_new_tokens = (
Copy link
Member

Choose a reason for hiding this comment

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

By default, we would want the dataset to set the max length (or to cap it at max_tokens if asked by the user)

Copy link
Member Author

Choose a reason for hiding this comment

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

It is set by the task by default is is overiden if the user sets it

Copy link
Member

Choose a reason for hiding this comment

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

We don't want to possibly override to above the generation size imo

Copy link
Member

Choose a reason for hiding this comment

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

I think it's good to have sensible defaults in the task definition (e.g. 4096 tokens is good for most models), but give users the ability to override at runtime, e.g. if they want to evaluate a long CoT model that requires 32k tokens

Copy link
Member

Choose a reason for hiding this comment

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

Issue is going to be task repro

Copy link
Member

Choose a reason for hiding this comment

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

I'm OK with leaving it if a warning message is displayed

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure why task repro would be an issue here. all is clearly defined wither in task config or model config, some model (thinking) require something like 8k context length to generate what shoul be a much smaller response

Copy link
Member

Choose a reason for hiding this comment

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

Well, you know how much people share their configs in eval ^^
If people assume they can reproduce the results of a model on a task, but actually the model config used overwrote the generation length of the task to allow the model to generate more, it will lead to a mismatch.

Copy link
Member

Choose a reason for hiding this comment

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

I would personally not expect my model config to overwrite the maximum allowed length for a given task

Copy link
Member

@lewtun lewtun left a comment

Choose a reason for hiding this comment

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

Thanks a lot for porting these over - LGTM!

@NathanHB NathanHB merged commit 4c9af85 into main Feb 25, 2025
4 checks passed
hynky1999 pushed a commit that referenced this pull request May 22, 2025
* commit

* Apply suggestions from code review

* commit

* add prompt to math 500

* add prompt to math 500
NathanHB added a commit that referenced this pull request Sep 19, 2025
* commit

* Apply suggestions from code review

* commit

* add prompt to math 500

* add prompt to math 500
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.

4 participants