Skip to content

Remove copied froms for deprecated models#31153

Merged
amyeroberts merged 2 commits intohuggingface:mainfrom
amyeroberts:remove-copied-from-deprecated
Jun 3, 2024
Merged

Remove copied froms for deprecated models#31153
amyeroberts merged 2 commits intohuggingface:mainfrom
amyeroberts:remove-copied-from-deprecated

Conversation

@amyeroberts
Copy link
Contributor

What does this PR do?

Remove copied from statements for deprecated models.

As deprecated models are no longer tested, this prevents changes being propagated which aren't compatible with the current architecture which we would no longer catch.

Adds a line in the utils/deprecate_models.py script to remove these lines from the files automatically when deprecating

@HuggingFaceDocBuilderDev

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.

Copy link
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

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

Yes, awesome! Thanks @amyeroberts!

@amyeroberts amyeroberts merged commit 5b5b48b into huggingface:main Jun 3, 2024
@amyeroberts amyeroberts deleted the remove-copied-from-deprecated branch June 3, 2024 08:42
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