Skip to content

Remove legacy export#57

Merged
IlyasMoutawwakil merged 26 commits into
mainfrom
remove-legacy
Sep 26, 2025
Merged

Remove legacy export#57
IlyasMoutawwakil merged 26 commits into
mainfrom
remove-legacy

Conversation

@IlyasMoutawwakil
Copy link
Copy Markdown
Member

@IlyasMoutawwakil IlyasMoutawwakil commented Sep 24, 2025

  • Remove legacy export of decoders
  • Remove deprecated arguments: use_auth_token, fp16 vs dtype, for_ort, some optimization arguments
  • Add some missing optimization arguments (added clip optimization to catch them) following FusionOptions args
  • Fixed CI by adding a Hub token with access to optimum-internal-testing and optimum orgs
  • removed direct imports from namespaces packages (optimum.exporters, optimum.commands, etc) for compatibility with native namespace packages (see Native namespace packages (PEP 420) optimum#2361).

Didn't remove support for loading and inference with legacy models entirely as it would break many tests that still use them.

@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.

@IlyasMoutawwakil IlyasMoutawwakil marked this pull request as ready for review September 24, 2025 14:31
Comment thread pyproject.toml Outdated
Copy link
Copy Markdown
Collaborator

@echarlaix echarlaix left a comment

Choose a reason for hiding this comment

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

Awesome, thanks a lot @IlyasMoutawwakil !

@echarlaix
Copy link
Copy Markdown
Collaborator

Didn't remove support for loading and inference with legacy models

completely agree with this but we can add a warning stating that in couple of release (something like v2.3) support will be deprecated, wdyt ?

@IlyasMoutawwakil
Copy link
Copy Markdown
Member Author

@echarlaix agree and done in last commit !

@echarlaix
Copy link
Copy Markdown
Collaborator

Looks good, thanks @IlyasMoutawwakil

@IlyasMoutawwakil IlyasMoutawwakil merged commit 96ea89b into main Sep 26, 2025
36 checks passed
@IlyasMoutawwakil IlyasMoutawwakil deleted the remove-legacy branch September 26, 2025 15:51
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