Skip to content

Magcache Support. #12697

Description

@Meatfucker

Id like to see magcache acceleration supported if possible. My own testing shows it to cut video generation times in half with almost no quality loss at all. It seems to be considerably better quality than something like teacache or more efficient attention mechanisms.

https://github.com/Zehong-Ma/MagCache

Kandinsky5 I2V Normal inference: 1168 seconds

The_chili_pepper_monster_explo.mp4

Kandinsky5 I2V Magcache Inference: 592 seconds

The_chili_pepper_monster_explo_copy.mp4

@leffff
@Zehong-Ma

Activity

  1. leffff commented on Nov 24, 2025

    @leffff
    Contributor

    Hi!
    We have a MagCache version in our main repo.

    @sayakpaul hiw can we integrate MagCache into Diffusers pipeline?

  2. sayakpaul commented on Nov 24, 2025

    @sayakpaul
    Member

    We support a bunch of caching techniques in Diffusers:
    https://huggingface.co/docs/diffusers/main/en/api/cache

    I think we could ship MagCache in a similar manner. Good reference would be FirstBlock cache:
    https://huggingface.co/docs/diffusers/main/en/api/cache#diffusers.FirstBlockCacheConfig

  3. added
    performanceAnything related to performance improvements, profiling and benchmarking
    on Dec 17, 2025
  4. github-actions commented on Jan 10, 2026

    @github-actions
    Contributor

    This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

    Please note that issues that do not follow the contributing guidelines are likely to be ignored.

  5. removed
    staleIssues that haven't received updates
    on Jan 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions