Skip to content

Conversation

albertvillanova
Copy link
Member

@albertvillanova albertvillanova commented May 12, 2025

Fix deprecation of HfApiModel:

  • raise FutureWarning instead of DeprecationWarning: the latter is not intended for end users and is filtered out by default
  • fix warning message specifying in which version the class will be removed
  • fix tests: testing deprecated HfApiModel raises deprecation warnings in the CI
  • explicitly test HfApiModel raises deprecation warning when instantiated

Follow up to:

@albertvillanova albertvillanova merged commit 1e0e6a4 into huggingface:main May 12, 2025
3 checks passed
@albertvillanova albertvillanova deleted the fix-deprecated-hf-api-model branch May 12, 2025 08:41
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.

2 participants