Skip to content

[core] deprecate onnx - #14658

Merged
sayakpaul merged 4 commits into
mainfrom
deprecate-onnx
Sep 1, 2026
Merged

sayakpaul merged 4 commits into
mainfrom
deprecate-onnx

Conversation

@sayakpaul

Copy link
Copy Markdown
Member

It's time we did this.

@sayakpaul
sayakpaul requested review from DN6 and yiyixuxu August 31, 2026 07:19
@github-actions github-actions Bot added tests pipelines CI size/L PR with diff > 200 LOC labels Aug 31, 2026

class OnnxStableDiffusionInpaintPipelineLegacy(DiffusionPipeline):
class OnnxStableDiffusionInpaintPipelineLegacy(DeprecatedPipelineMixin, DiffusionPipeline):
_last_supported_version = "0.42.0"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Or should we increase it?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Usage on these is quite low, but we can bump to 0.43 to be safe.

gc.collect()
backend_empty_cache(torch_device)

def test_onnx_runtime_model_deprecation(self):

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Test to ensure we catch it when the deprecation cycle is done and remove the remaining ONNX related things.

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


class OnnxStableDiffusionInpaintPipelineLegacy(DiffusionPipeline):
class OnnxStableDiffusionInpaintPipelineLegacy(DeprecatedPipelineMixin, DiffusionPipeline):
_last_supported_version = "0.42.0"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Usage on these is quite low, but we can bump to 0.43 to be safe.

@sayakpaul
sayakpaul merged commit 7c79e70 into main Sep 1, 2026
20 checks passed
@sayakpaul
sayakpaul deleted the deprecate-onnx branch September 1, 2026 12:54
@sayakpaul sayakpaul added the roadmap Add to current release roadmap label Sep 2, 2026
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Diffusers Roadmap Sep 2, 2026
@github-project-automation github-project-automation Bot moved this to In Progress in Diffusers Roadmap Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI pipelines roadmap Add to current release roadmap size/L PR with diff > 200 LOC tests

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants