Skip to content

[core] Make torch a required dependency - #15435

Open
DN6 wants to merge 5 commits into
mainfrom
add-torch-dep
Open

DN6 wants to merge 5 commits into
mainfrom
add-torch-dep

Conversation

@DN6

@DN6 DN6 commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator

What does this PR do?

We no longer support Flax or ONNX pipelines and it is not possible to run anything significant in diffusers without torch. Adding it as a required dependency in order to remove a lot of boilerplate around availability.

Fixes # (issue)

Before submitting

  • Did you use an AI agent (Claude Code, Codex, Cursor, etc.) to help with this PR? If so:
    • Did you read the Coding with AI agents guide?
    • Did you run the self-review skill on the diff?
    • Did you share the final self-review notes in the PR description or a comment?
  • Did you read the contributor guideline?
  • Did you read our philosophy doc? (important for complex PRs)
  • Was this discussed/approved via a GitHub issue or GitHub Discussions? Please add a link to it if that's the case.
  • Did you make sure to update the documentation with your changes? Here are the
    documentation guidelines, and
    here are tips on formatting docstrings.
  • Did you write any new necessary tests?
  • Are you the author (or part of the team we work with) of the model/pipeline this PR relates to?

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@harishpiyer

Copy link
Copy Markdown

NA

@DN6
DN6 requested review from sayakpaul and yiyixuxu December 1, 2026 08:07

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants