Repository navigation
Add sCM and MeanFlow distillation losses - #2096
Closed
CharlelieLrt wants to merge 1 commit into
Closed
CharlelieLrt wants to merge 1 commit into
CharlelieLrt wants to merge 1 commit into
Conversation
Contributor
CODEOWNERS review mapCurrent for commit ⏳ @CharlelieLrt — 19 file(s)
⏳ @coreyjadams — 1 file(s)
⏳ @ktangsali — 2 file(s)
⏳ @megnvidia — 2 file(s)
No CODEOWNER
Comment |
This was referenced Oct 14, 2026
CharlelieLrt
force-pushed
the
codex/diffusion-distillation
branch
from
October 14, 2026 05:35
e03650a to
5788d8a
Compare
This was referenced Oct 14, 2026
CharlelieLrt
force-pushed
the
codex/diffusion-distillation
branch
from
October 14, 2026 17:03
5788d8a to
d1b90c9
Compare
CharlelieLrt
force-pushed
the
codex/diffusion-trigflow
branch
from
October 16, 2026 01:19
bda6a91 to
ab1841d
Compare
CharlelieLrt
force-pushed
the
codex/diffusion-distillation
branch
from
October 16, 2026 01:19
d1b90c9 to
ac6b31b
Compare
CharlelieLrt
force-pushed
the
codex/diffusion-trigflow
branch
from
October 16, 2026 02:52
ab1841d to
fbfcd1b
Compare
CharlelieLrt
force-pushed
the
codex/diffusion-distillation
branch
2 times, most recently
from
October 16, 2026 20:15
e0d31b0 to
7d40640
Compare
CharlelieLrt
force-pushed
the
codex/diffusion-trigflow
branch
2 times, most recently
from
October 17, 2026 01:44
901fe94 to
a9b6d79
Compare
CharlelieLrt
force-pushed
the
codex/diffusion-distillation
branch
from
October 17, 2026 01:44
7d40640 to
036fccc
Compare
CharlelieLrt
force-pushed
the
codex/diffusion-trigflow
branch
from
October 28, 2026 03:42
a9b6d79 to
ff99456
Compare
CharlelieLrt
force-pushed
the
codex/diffusion-distillation
branch
from
October 28, 2026 03:42
036fccc to
d87a58a
Compare
Signed-off-by: Charlelie Laurent <claurent@nvidia.com>
CharlelieLrt
force-pushed
the
codex/diffusion-trigflow
branch
from
October 29, 2026 02:23
ff99456 to
d4a40d7
Compare
CharlelieLrt
force-pushed
the
codex/diffusion-distillation
branch
from
October 29, 2026 02:23
d87a58a to
0a3860d
Compare
This was referenced Oct 29, 2026
This was referenced Oct 29, 2026
Collaborator
Author
|
Continued in PhysicsNeMo #2201, from branch |
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.
Description
This PR introduces the alpha
DistillationLossAPI for training existingPhysicsNeMo models with sCM or MeanFlow. Users install the optional
diffusion-fastgenextra, create a loss object, and call it from their ownoptimizer loop:
WeightedDistillationLosssupports pixel masks and soft weights, while theBaseDistillationLosscontract lets users define native methods without FastGen.The adapters remain private, so users continue to work with PhysicsNeMo models
and noise schedulers. The loss does not load teacher weights or manage
optimizers, and inference continues to use PhysicsNeMo samplers.
MeanFlow students receive
(t, DiffusionExtraTimes(r=r, batch_size=[B])).For sCM, models return their prediction paired with
DiffusionExtraOutputs(logvar=logvar, batch_size=[B]). Every forward callreturns a prediction tensor.
Checklist
Dependencies
Depends on
Earlier prerequisites
Depends on this PR
Later follow-ups
Parallel FastGen work
Conditional follow-up
If FastGen maintainers decline FastGen #44, we would close PhysicsNeMo #2100.
The preceding PhysicsNeMo stack would remain available.
Review process
Reviewers can compare this PR with its immediate parent. After a parent merges,
we update the remaining branches and their PR bases to keep each diff focused.