Clockwork Diffusion: Efficient Generation With Model-Step Distillation#10
Closed
remyx-ai[bot] wants to merge 2 commits into
Closed
Clockwork Diffusion: Efficient Generation With Model-Step Distillation#10remyx-ai[bot] wants to merge 2 commits into
remyx-ai[bot] wants to merge 2 commits into
Conversation
6b5e606 to
cd79877
Compare
Convention-shape patches extracted from huggingface/diffusers's recent merged PRs. Algorithm logic is left untouched. Ruff auto-fixed lint-trivial issues on patched files.
fc0e0cb to
31c3bbf
Compare
Owner
|
Closing to unblock a controlled cocoindex-code A/B on the same paper (REMYX-165 experiment). Diff preserved for baseline comparison against the re-run. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Adds Clockwork Diffusion (arXiv:2312.08128) as a new caching hook in the
hooks/gallery, alongside FBC, FasterCache, MAG, and TaylorSeer — wired in exactly asapply_clockwork()+Config+ a statefulModelHook.Clockwork reuses cross-step computation through the existing
StateManagermechanism (the samehead_block_output/tail_block_residualscaches FBC holds across steps), and as a cache hook it attaches to every DiT/UNet pipeline rather than introducing a single net-new pipeline. The one adaptation needed: existing caches are transformer-block-centric while Clockwork targets UNet low-resolution resblocks, but thefqnmechanism already supports UNet (per thelayer_skipdocstring: "For UNet models, you must provide the correct fqn").Before submitting
Tests: the suite did not run in CI — the runner is missing the repo's dependencies (
ModuleNotFoundError: No module named 'accelerate', surfacing during collection onexamples/advanced_diffusion_training,examples/consistency_distillation, andexamples/controlnet). This is an environment/import error, not a code failure; run locally to validate.Who can review?
@sayakpaul @yiyixuxu
Drafted by Outrider — paper: arXiv:2312.08128.
Discovery context
How this candidate was selected. Surfaced by an Outrider deep-search refine query (
distillation few step consistency model rectified flow diffusion) against/search/assets. The engine's normal ranking did not place this paper in the interest's broad pool; it was promoted because the audit pass identified an under-represented theme this paper covers. Confidence 🟡 moderate (Remyx relevance 0.65); research interest: diffusers.Why this paper fits the team. Clockwork shares the contribution shape of the repo's
hooks/caching gallery — each of FBC, FasterCache, MAG, and TaylorSeer is one paper wired in exactly asapply_<name>()+Config+ statefulModelHook, and that gallery is the team's active investment in inference-caching acceleration. As a cache hook it maximizes call-site coverage (attaches to every DiT/UNet pipeline) versus a single net-new pipeline, and it reuses the sameStateManagercross-step cache mechanism.License & code availability. 🟡 No code repository surfaced — a
LICENSEcould not be fetched to evaluate. No repository or model URL appeared in the paper, the recommendation envelope, or the arXiv abstract page; license reported as(none detected)(class:no-code-link, compat: 0.30). Worth confirming the paper has an open release before investing in adoption.Suggested experiment. None.