Skip to content

Add cache_context wrapping to all Flux pipelines - #14923

Open
Reis-McMillan wants to merge 2 commits into
huggingface:mainfrom
Reis-McMillan:flux-kontext-pipeline-taylorseer
Open

Reis-McMillan wants to merge 2 commits into
huggingface:mainfrom
Reis-McMillan:flux-kontext-pipeline-taylorseer

Conversation

@Reis-McMillan

@Reis-McMillan Reis-McMillan commented Oct 1, 2026 •

Copy link
Copy Markdown

What does this PR do?

All self.transformer calls get wrapped with self.transformer.cache_context(...) in the Flux pipelines. This enables TaylorSeer caching to be enabled with all Flux pipelines.

Fixes #14922

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 the forum? 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) of the model/pipeline (only applicable for model/pipeline related PRs)?

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.
@yiyixuxu @dg845 and @asomoza

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable Taylorseer for all Flux Pipelines

1 participant