Skip to content

fix(dvclive): pass fake dataset to avoid exception in trainer init - #34455

Merged
LysandreJik merged 1 commit into
huggingface:mainfrom
shcheklein:fix-dvclive-integration
Nov 7, 2024
Merged

LysandreJik merged 1 commit into
huggingface:mainfrom
shcheklein:fix-dvclive-integration

Conversation

@shcheklein

Copy link
Copy Markdown
Contributor

Fixes these failing tests https://github.com/iterative/dvclive/actions/runs/11545815176/job/32134865977?pr=846 downstream.

The cause is this change: #33743 which made trainer ctr a bit more strict.

I see that WandbCallback is also using the same technique (initializing fake trainer). @parambharat could you check if we need to add a similar fix there.

@shcheklein
shcheklein force-pushed the fix-dvclive-integration branch 2 times, most recently from 56fa988 to 303873c Compare October 28, 2024 03:51
@shcheklein shcheklein changed the title fix(dvclive): force eval str no to avoid init error fix(dvclive): pass fake dataset to avoid exception in trainer init Oct 28, 2024
@shcheklein
shcheklein force-pushed the fix-dvclive-integration branch from 303873c to 8e9d512 Compare October 28, 2024 03:56
@Rocketknight1

Copy link
Copy Markdown
Member

cc @SunMarc @jackyjinjing for the original PR!

@SunMarc SunMarc left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for fixing ! To fix the CI, please rebase the PR on main

@SunMarc
SunMarc requested a review from LysandreJik November 5, 2024 17:44
@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

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.

@shcheklein
shcheklein force-pushed the fix-dvclive-integration branch from 8e9d512 to b16bf54 Compare November 5, 2024 18:37
@shcheklein

Copy link
Copy Markdown
Contributor Author

@SunMarc done, rebased

@LysandreJik LysandreJik left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you!

@LysandreJik
LysandreJik merged commit 6938524 into huggingface:main Nov 7, 2024
cezapasc added a commit to cezapasc/transformers that referenced this pull request Nov 13, 2024
BernardZach pushed a commit to BernardZach/transformers that referenced this pull request Dec 5, 2024
…uggingface#34455)

fix(dvclive): pass fake dataset to avoid exception in trainer
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.

5 participants