Back to Diffusers

DiscreteDDIMScheduler

docs/source/en/api/schedulers/discrete_ddim.md

0.39.01.4 KB
Original Source
<!--Copyright 2025 The HuggingFace Team. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -->

DiscreteDDIMScheduler

The DiscreteDDIMScheduler samples each canvas position from the exact discrete posterior of the uniform corruption process (D3PM), following Structured Denoising Diffusion Models in Discrete State-Spaces. It is parameter free, and the final step deterministically commits the predicted tokens. An optional predictor-corrector mode adds the leave-one-out Gibbs sweeps of Uniform Diffusion Models Revisited: Leave-One-Out Denoiser and Absorbing State Reformulation through corrector_steps.

This scheduler is used by [DiffusionGemmaPipeline].

DiscreteDDIMScheduler

[[autodoc]] DiscreteDDIMScheduler

DiscreteDDIMSchedulerOutput

[[autodoc]] schedulers.scheduling_discrete_ddim.DiscreteDDIMSchedulerOutput