Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
huggingface
/
diffusers
Public
Notifications
You must be signed in to change notification settings
Fork
7.3k
Star
34.5k
Code
Issues
839
Pull requests
591
Discussions
Actions
Projects
Security and quality
3
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
[WIP] Consistency models distillation examples
- #3992
#3992
Closed
ayushtues
wants to merge 80 commits into
huggingface:main
huggingface/diffusers:main
from
ayushtues:consistency-models-examples
ayushtues/diffusers:consistency-models-examples
Copy head branch name to clipboard
Conversation
Commits
80
聽(80)
Checks
Files changed
Closed
[WIP] Consistency models distillation examples
#3992
ayushtues
wants to merge 80 commits into
huggingface:main
huggingface/diffusers:main
from
ayushtues:consistency-models-examples
ayushtues/diffusers:consistency-models-examples
Copy head branch name to clipboard
Commits
Commits on May 15, 2023
initial commit
dg845
committed
799ab23
View commit details
Copy full SHA for 799ab23
Browse repository at this point
Commits on May 17, 2023
Improve consistency models sampling implementation.
dg845
committed
63b7f01
View commit details
Copy full SHA for 63b7f01
Browse repository at this point
Commits on May 18, 2023
Add CMStochasticIterativeScheduler, which implements the multi-step sampler (stochastic_iterative_sampler) in the original code, and make further improvements to sampling.
dg845
committed
f2e53da
View commit details
Copy full SHA for f2e53da
Browse repository at this point
Commits on May 22, 2023
Merge branch 'main2' into consistency_unet
ayushmangal
committed
37e1895
View commit details
Copy full SHA for 37e1895
Browse repository at this point
Add Unet blocks for consistency models
ayushmangal
committed
7c1e81f
View commit details
Copy full SHA for 7c1e81f
Browse repository at this point
Add conversion script for Unet
ayushmangal
committed
3a151bd
View commit details
Copy full SHA for 3a151bd
Browse repository at this point
Fix bug in new unet blocks
ayushmangal
committed
b6c5e15
View commit details
Copy full SHA for b6c5e15
Browse repository at this point
Commits on May 23, 2023
Fix attention weight loading
ayushmangal
committed
4e93f09
View commit details
Copy full SHA for 4e93f09
Browse repository at this point
Commits on May 25, 2023
Merge pull request #1 from ayushtues/consistency_unet
Show description for d137d11
dg845
authored
d137d11
View commit details
Copy full SHA for d137d11
Browse repository at this point
Commits on May 26, 2023
Make design improvements to ConsistencyModelPipeline and CMStochasticIterativeScheduler and add initial version of tests.
dg845
committed
9ae7669
View commit details
Copy full SHA for 9ae7669
Browse repository at this point
make style
dg845
committed
54b287e
View commit details
Copy full SHA for 54b287e
Browse repository at this point
Add initial training script
ayushtues
committed
067a9ef
View commit details
Copy full SHA for 067a9ef
Browse repository at this point
Commits on May 30, 2023
Make small random test UNet class conditional and set resnet_time_scale_shift to 'scale_shift' to better match consistency model checkpoints.
dg845
committed
5a27c2f
View commit details
Copy full SHA for 5a27c2f
Browse repository at this point
Add support for converting a test UNet and non-class-conditional UNets to the consistency models conversion script.
dg845
committed
f2783a8
View commit details
Copy full SHA for f2783a8
Browse repository at this point
make style
dg845
committed
ed53b85
View commit details
Copy full SHA for ed53b85
Browse repository at this point
Change num_class_embeds to 1000 to better match the original consistency models implementation.
dg845
committed
a505c6c
View commit details
Copy full SHA for a505c6c
Browse repository at this point
Add support for distillation in pipeline_consistency_models.py.
dg845
committed
a927a4a
View commit details
Copy full SHA for a927a4a
Browse repository at this point
Improve consistency model tests:
Show description for b2e6424
dg845
committed
b2e6424
View commit details
Copy full SHA for b2e6424
Browse repository at this point
make style
dg845
committed
c37e302
View commit details
Copy full SHA for c37e302
Browse repository at this point
Improve ConsistencyModelPipeline:
Show description for a0a164c
dg845
committed
a0a164c
View commit details
Copy full SHA for a0a164c
Browse repository at this point
make style
dg845
committed
0d1de08
View commit details
Copy full SHA for 0d1de08
Browse repository at this point
Improve ConsistencyModelPipeline:
Show description for 5f4f406
dg845
committed
5f4f406
View commit details
Copy full SHA for 5f4f406
Browse repository at this point
make style
dg845
committed
213b25d
View commit details
Copy full SHA for 213b25d
Browse repository at this point
Fix bug when randomly generating class labels for class-conditional generation.
dg845
committed
fbe34c3
View commit details
Copy full SHA for fbe34c3
Browse repository at this point
Commits on Jun 1, 2023
Switch CMStochasticIterativeScheduler to configuring a sigma schedule and make related changes to the pipeline and tests.
dg845
committed
0e53d8b
View commit details
Copy full SHA for 0e53d8b
Browse repository at this point
Remove some unused code and make style.
dg845
committed
c3b242e
View commit details
Copy full SHA for c3b242e
Browse repository at this point
Fix small bug in CMStochasticIterativeScheduler.
dg845
committed
43e4379
View commit details
Copy full SHA for 43e4379
Browse repository at this point
Commits on Jun 2, 2023
Add expected slices for multistep sampling tests and make them pass.
dg845
committed
94c99ca
View commit details
Copy full SHA for 94c99ca
Browse repository at this point
Work on consistency model fast tests:
Show description for 0773b27
dg845
committed
0773b27
View commit details
Copy full SHA for 0773b27
Browse repository at this point
make style
dg845
committed
6867a3a
View commit details
Copy full SHA for 6867a3a
Browse repository at this point
Commits on Jun 4, 2023
Refactor conversion script to make it easier to add more model architectures to convert in the future.
dg845
committed
f0c85d3
View commit details
Copy full SHA for f0c85d3
Browse repository at this point
Work on ConsistencyModelPipeline tests:
Show description for 6adb589
dg845
committed
6adb589
View commit details
Copy full SHA for 6adb589
Browse repository at this point
make style
dg845
committed
c213bf7
View commit details
Copy full SHA for c213bf7
Browse repository at this point
Remove the add_noise and add_noise_to_input methods from CMStochasticIterativeScheduler for now.
dg845
committed
3be6e08
View commit details
Copy full SHA for 3be6e08
Browse repository at this point
Run python utils/check_copies.py --fix_and_overwrite
Show description for 660909f
dg845
committed
660909f
View commit details
Copy full SHA for 660909f
Browse repository at this point
Make fast tests from PipelineTesterMixin pass.
dg845
committed
ad5abdc
View commit details
Copy full SHA for ad5abdc
Browse repository at this point
make style
dg845
committed
a1c11d3
View commit details
Copy full SHA for a1c11d3
Browse repository at this point
Commits on Jun 5, 2023
Merge branch 'consistency-models-pipeline' into consistency-models-examples
ayushtues
committed
a15c168
View commit details
Copy full SHA for a15c168
Browse repository at this point
Commits on Jun 7, 2023
Refactor consistency models pipeline and scheduler:
Show description for 2dc2fa3
dg845
committed
2dc2fa3
View commit details
Copy full SHA for 2dc2fa3
Browse repository at this point
make style
dg845
committed
7d3dbe3
View commit details
Copy full SHA for 7d3dbe3
Browse repository at this point
Add docstrings and further refactor pipeline and scheduler.
dg845
committed
55f80ed
View commit details
Copy full SHA for 55f80ed
Browse repository at this point
make style
dg845
committed
3234543
View commit details
Copy full SHA for 3234543
Browse repository at this point
Commits on Jun 9, 2023
Add initial version of the consistency models documentation.
dg845
committed
dc4349c
View commit details
Copy full SHA for dc4349c
Browse repository at this point
Minor
ayushtues
committed
787e65a
View commit details
Copy full SHA for 787e65a
Browse repository at this point
Merge branch 'consistency-models-pipeline' into consistency-models-examples
ayushtues
committed
50136d0
View commit details
Copy full SHA for 50136d0
Browse repository at this point
Add training code
ayushtues
committed
6530b17
View commit details
Copy full SHA for 6530b17
Browse repository at this point
Fix bugs in training
ayushtues
committed
8f858cb
View commit details
Copy full SHA for 8f858cb
Browse repository at this point
Remove some args, add target model
ayushtues
committed
e56b870
View commit details
Copy full SHA for e56b870
Browse repository at this point
Commits on Jun 10, 2023
Refactor custom timesteps logic following DDPMScheduler/IFPipeline and temporarily add torch 2.0 SDPA kernel selection logic for debugging.
dg845
committed
85eb796
View commit details
Copy full SHA for 85eb796
Browse repository at this point
make style
dg845
committed
bf3a405
View commit details
Copy full SHA for bf3a405
Browse repository at this point
Commits on Jun 12, 2023
attention weight loading fix
ayushtues
committed
1488180
View commit details
Copy full SHA for 1488180
Browse repository at this point
Commits on Jun 13, 2023
Convert current slow tests to use fp16 and flash attention.
dg845
committed
fd0a253
View commit details
Copy full SHA for fd0a253
Browse repository at this point
make style
dg845
committed
7c03ff6
View commit details
Copy full SHA for 7c03ff6
Browse repository at this point
Add slow tests for normal attention on cuda device.
dg845
committed
80d7745
View commit details
Copy full SHA for 80d7745
Browse repository at this point
make style
dg845
committed
0662f63
View commit details
Copy full SHA for 0662f63
Browse repository at this point
Fix attention weights loading
ayushtues
committed
cce04c0
View commit details
Copy full SHA for cce04c0
Browse repository at this point
Merge pull request #3 from ayushtues/fix-attention-loading
Show description for c1ba8b9
dg845
authored
c1ba8b9
View commit details
Copy full SHA for c1ba8b9
Browse repository at this point
Update consistency model fast tests for new test checkpoints with attention fix.
dg845
committed
62a49a2
View commit details
Copy full SHA for 62a49a2
Browse repository at this point
make style
dg845
committed
58f12ca
View commit details
Copy full SHA for 58f12ca
Browse repository at this point
Commits on Jun 15, 2023
Renaming ema model to target
ayushtues
committed
98e1381
View commit details
Copy full SHA for 98e1381
Browse repository at this point
Add some comments
ayushtues
committed
baefc87
View commit details
Copy full SHA for baefc87
Browse repository at this point
Commits on Jun 16, 2023
apply suggestions
dg845
committed
071f850
View commit details
Copy full SHA for 071f850
Browse repository at this point
Commits on Jun 17, 2023
Remove xformers, refactor ckpt resuming
ayushtues
committed
cd460ca
View commit details
Copy full SHA for cd460ca
Browse repository at this point
Commits on Jun 18, 2023
Add add_noise method to CMStochasticIterativeScheduler (copied from EulerDiscreteScheduler).
dg845
committed
6968615
View commit details
Copy full SHA for 6968615
Browse repository at this point
Merge branch 'consistency-models-pipeline' into consistency-models-examples
ayushtues
committed
9bc3167
View commit details
Copy full SHA for 9bc3167
Browse repository at this point
Commits on Jun 19, 2023
Add input scaling, disable gradients
ayushtues
committed
9a81642
View commit details
Copy full SHA for 9a81642
Browse repository at this point
Commits on Jun 21, 2023
Conversion script now outputs pipeline instead of UNet and add support for LSUN-256 models and different schedulers.
dg845
committed
ca15734
View commit details
Copy full SHA for ca15734
Browse repository at this point
When both timesteps and num_inference_steps are supplied, raise warning instead of error (timesteps take precedence).
dg845
committed
a56d3d2
View commit details
Copy full SHA for a56d3d2
Browse repository at this point
make style
dg845
committed
a17847e
View commit details
Copy full SHA for a17847e
Browse repository at this point
Add remaining diffusers model checkpoints for models in the original consistency model release and update usage example.
dg845
committed
8214a33
View commit details
Copy full SHA for 8214a33
Browse repository at this point
Commits on Jun 29, 2023
apply suggestions from review
dg845
committed
2606d82
View commit details
Copy full SHA for 2606d82
Browse repository at this point
make style
dg845
committed
075351a
View commit details
Copy full SHA for 075351a
Browse repository at this point
Merge branch 'consistency-models-pipeline' into consistency-models-examples
ayushtues
committed
0240407
View commit details
Copy full SHA for 0240407
Browse repository at this point
Commits on Jul 7, 2023
Merge branch 'main_hf' into consistency-models-examples
ayushtues
committed
88356e6
View commit details
Copy full SHA for 88356e6
Browse repository at this point
Commits on Jul 10, 2023
Update training script to main, fix timesteps
ayushtues
committed
ea7d75f
View commit details
Copy full SHA for ea7d75f
Browse repository at this point
Fix bug in timestep ordering
ayushtues
committed
a32b869
View commit details
Copy full SHA for a32b869
Browse repository at this point
Commits on Jul 11, 2023
Add review suggestions
ayushtues
committed
8742e4e
View commit details
Copy full SHA for 8742e4e
Browse repository at this point
Commits on Jul 12, 2023
Integrate accelerator better, change model upload
ayushtues
committed
943c88b
View commit details
Copy full SHA for 943c88b
Browse repository at this point
Commits on Jul 13, 2023
Fix checkpointing and add test
ayushtues
committed
6b58d81
View commit details
Copy full SHA for 6b58d81
Browse repository at this point
Commits on Jul 19, 2023
Remove hardcoded configs, add DiffusionPipeline
ayushtues
committed
180b3e8
View commit details
Copy full SHA for 180b3e8
Browse repository at this point
You can鈥檛 perform that action at this time.