diffusers
[Discrete Diffusion] Add LLaDA2 pipeline
#13226
Merged

[Discrete Diffusion] Add LLaDA2 pipeline #13226

sayakpaul merged 65 commits into huggingface:main from kashif:llada2-support
kashif
kashif feat: add LLaDA2 and BlockRefinement pipelines for discrete text diff…
929522f3
kashif feat: add BlockRefinementScheduler for commit-by-confidence scheduling
b3f6cb58
kashif test: add unit tests for BlockRefinementScheduler
f8220db1
kashif kashif force pushed from 67188438 to f8220db1 35 days ago
kashif docs: add toctree entries and standalone scheduler doc page
bbc3592d
kashif kashif changed the title [Discrete Diffusion] Add LLaDA pipeline [Discrete Diffusion] Add LLaDA2 pipeline 35 days ago
kashif kashif requested a review from dg845 dg845 35 days ago
kashif Merge branch 'main' into llada2-support
2ec8083e
HuggingFaceDocBuilderDev
kashif Merge branch 'main' into llada2-support
4bec0470
kashif feat: add --revision flag and fix dtype deprecation in sample_llada2.py
152b5bd2
kashif fix: use 1/0 attention mask instead of 0/-inf for LLaDA2 compat
12c27ebf
kashif refactor: consolidate training scripts into single train_block_refine…
bf42b4a5
kashif fix formatting
c6a6109b
kashif docs: improve LLaDA2 and BlockRefinement documentation
73e91fd7
kashif feat: set LLaDA2Pipeline defaults to recommended model parameters
3d76f0c4
kashif feat: default editing_threshold=0.5 for LLaDA2.1 quality mode
c9d0a24f
kashif fix: align sampling utilities with official LLaDA2 implementation
3cfc78c7
kashif refactor: remove duplicate prompt encoding, reuse mixin's _prepare_in…
68a73dbd
kashif formatting
f434a9df
kashif fix: replace deprecated torch_dtype with dtype in examples and docstr…
317160ab
kashif Merge branch 'main' into llada2-support
cb676518
yiyixuxu
yiyixuxu commented on 2026-03-18
kashif Merge branch 'main' into llada2-support
dceb6147
kashif remove BlockRefinementPipeline
a74514ed
kashif cleanup
f16cfb27
kashif fix readme
841b5d25
kashif
yiyixuxu
yiyixuxu commented on 2026-03-18
kashif Update src/diffusers/pipelines/llada2/pipeline_llada2.py
dd0be369
kashif Update src/diffusers/pipelines/llada2/pipeline_llada2.py
0f2e62af
kashif Update src/diffusers/pipelines/llada2/pipeline_llada2.py
e12b66d0
kashif Update src/diffusers/pipelines/llada2/pipeline_llada2.py
ab94b943
kashif Update src/diffusers/pipelines/llada2/pipeline_llada2.py
fffe3710
kashif Update src/diffusers/pipelines/llada2/pipeline_llada2.py
2edc179b
kashif Update src/diffusers/pipelines/llada2/pipeline_llada2.py
d83bac05
kashif Update src/diffusers/pipelines/llada2/pipeline_llada2.py
46708815
kashif Update src/diffusers/pipelines/llada2/pipeline_llada2.py
954ed0f2
kashif Update src/diffusers/pipelines/llada2/pipeline_llada2.py
d857afd5
kashif Update src/diffusers/pipelines/llada2/pipeline_llada2.py
a0cc832b
kashif Update src/diffusers/pipelines/llada2/pipeline_llada2.py
a1153651
kashif Update src/diffusers/pipelines/llada2/pipeline_llada2.py
edfae84e
kashif Update src/diffusers/pipelines/llada2/pipeline_llada2.py
5628769b
kashif Update src/diffusers/pipelines/llada2/pipeline_llada2.py
93c340ba
kashif removed DiscreteDiffusionPipelineMixin
1f79c50a
kashif add support for 2d masks for flash attn
c4ed8ec4
dg845
dg845 commented on 2026-03-19
dg845
dg845 commented on 2026-03-19
dg845
dg845 commented on 2026-03-19
dg845
dg845 commented on 2026-03-19
dg845
dg845 commented on 2026-03-19
dg845
dg845 commented on 2026-03-19
dg845
dg845 commented on 2026-03-19
dg845
dg845 commented on 2026-03-19
dg845
dg845 commented on 2026-03-19
dg845
dg845 commented on 2026-03-19
dg845
dg845 commented on 2026-03-19
dg845
dg845 commented on 2026-03-19
kashif Update src/diffusers/training_utils.py
44d2101e
kashif Update src/diffusers/training_utils.py
d00d1ad2
kashif fix issues from review
b195ee82
kashif Merge branch 'main' into llada2-support
3d2ef8d1
kashif added tests
31698b64
kashif Merge branch 'llada2-support' of https://github.com/kashif/diffusers …
4b09f40e
kashif formatting
872eee9f
kashif add check_eos_finished to scheduler
f600f257
dg845
dg845 commented on 2026-03-21
dg845
dg845 commented on 2026-03-21
dg845
dg845 commented on 2026-03-21
dg845
dg845 commented on 2026-03-21
dg845
dg845 commented on 2026-03-21
dg845
dg845 commented on 2026-03-21
dg845
dg845 commented on 2026-03-21
dg845
dg845 commented on 2026-03-21
dg845
dg845 commented on 2026-03-21
dg845
dg845 commented on 2026-03-21
dg845
dg845 commented on 2026-03-21
dg845
dg845 commented on 2026-03-21
kashif Update src/diffusers/pipelines/llada2/pipeline_llada2.py
3a5b9621
kashif Update src/diffusers/pipelines/llada2/pipeline_llada2.py
c3b6c1e3
kashif Update src/diffusers/pipelines/llada2/pipeline_llada2.py
8fb41240
kashif Update src/diffusers/pipelines/llada2/pipeline_llada2.py
65b625d7
kashif Update src/diffusers/schedulers/scheduling_block_refinement.py
8f58057d
kashif Update src/diffusers/pipelines/llada2/pipeline_llada2.py
766cc1fd
kashif Update src/diffusers/pipelines/llada2/pipeline_llada2.py
53d42376
kashif Update src/diffusers/pipelines/llada2/pipeline_llada2.py
e03d63a2
kashif Update src/diffusers/schedulers/scheduling_block_refinement.py
86fbcfab
kashif fix renaming issues and types
33925ac7
kashif remove duplicate check
b8551282
kashif Merge branch 'main' into llada2-support
11da0785
dg845
dg845 commented on 2026-03-24
dg845
dg845 commented on 2026-03-24
dg845
dg845 commented on 2026-03-24
kashif
kashif Merge branch 'main' into llada2-support
6a9ca8e8
kashif Update docs/source/en/api/pipelines/llada2.md
946d443e
kashif Merge branch 'main' into llada2-support
7eaf099b
yiyixuxu
dg845
dg845 commented on 2026-03-25
dg845
dg845 commented on 2026-03-25
dg845
dg845 approved these changes on 2026-03-25
kashif Update src/diffusers/pipelines/llada2/pipeline_llada2.py
bde9849b
kashif Update src/diffusers/pipelines/llada2/pipeline_llada2.py
5466fba1
kashif Merge branch 'main' into llada2-support
825d50f2
sayakpaul sayakpaul merged 5d207e75 into main 18 days ago
kashif kashif deleted the llada2-support branch 18 days ago
sayakpaul sayakpaul added roadmap

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone