Skip to content

Conversation

@aymeric-roucher
Copy link
Collaborator

@aymeric-roucher aymeric-roucher commented May 23, 2025

This fixes some bugs introduced by changing token usage reporting in #1337.

In particular, it makes sure to properly serialize model outputs before logging them while running the benchmark.

" ds.push_to_hub(\n",
" push_to_hub_dataset, config_name=config, set_default=set_default, commit_message=f\"Upload {config} results\"\n",
" )\n",
" ds.push_to_hub(push_to_hub_dataset, config_name=config, commit_message=f\"Upload {config} results\")\n",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@albertvillanova removed the set_default argument, because for me it was trying to pop the default from a previous dataset, which didn't exist, thus raised an error. But there's probably a better way to fix this issue?

Copy link
Member

Choose a reason for hiding this comment

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

I am trying to figure out what the error was, when it was generated, and how to fix it...

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Until the fix is released, I would suggest not passing set_default, as you did.

Copy link
Member

@albertvillanova albertvillanova left a comment

Choose a reason for hiding this comment

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

Thanks!

Co-authored-by: Albert Villanova del Moral <[email protected]>
@aymeric-roucher aymeric-roucher merged commit b5818fa into main May 26, 2025
4 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