repo stringlengths 7 90 | file_url stringlengths 81 315 | file_path stringlengths 4 228 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 14:38:15 2026-01-05 02:33:18 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/embeddings_flax.py | src/diffusers/models/embeddings_flax.py | # 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 applicabl... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/attention_flax.py | src/diffusers/models/attention_flax.py | # 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 applicabl... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/vq_model.py | src/diffusers/models/vq_model.py | # 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 applicabl... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/modeling_flax_pytorch_utils.py | src/diffusers/models/modeling_flax_pytorch_utils.py | # coding=utf-8
# Copyright 2025 The HuggingFace Inc. team.
#
# 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... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/resnet.py | src/diffusers/models/resnet.py | # Copyright 2025 The HuggingFace Team. All rights reserved.
# `TemporalConvLayer` Copyright 2025 Alibaba DAMO-VILAB, The ModelScope Team and 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.
#... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/lora.py | src/diffusers/models/lora.py | # 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 applicabl... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/modeling_outputs.py | src/diffusers/models/modeling_outputs.py | from dataclasses import dataclass
from ..utils import BaseOutput
@dataclass
class AutoencoderKLOutput(BaseOutput):
"""
Output of AutoencoderKL encoding method.
Args:
latent_dist (`DiagonalGaussianDistribution`):
Encoded outputs of `Encoder` represented as the mean and logvar of `Diag... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/auto_model.py | src/diffusers/models/auto_model.py | # 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 applicabl... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/__init__.py | src/diffusers/models/__init__.py | # 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 applicabl... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/attention.py | src/diffusers/models/attention.py | # 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 applicabl... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | true |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/upsampling.py | src/diffusers/models/upsampling.py | # 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 applicabl... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/embeddings.py | src/diffusers/models/embeddings.py | # 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 applicabl... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | true |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/controlnet.py | src/diffusers/models/controlnet.py | # 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 applicabl... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/normalization.py | src/diffusers/models/normalization.py | # coding=utf-8
# Copyright 2025 HuggingFace Inc.
#
# 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 ag... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/controlnet_flux.py | src/diffusers/models/controlnet_flux.py | # Copyright 2025 Black Forest Labs, The HuggingFace Team and The InstantX 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/LIC... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/adapter.py | src/diffusers/models/adapter.py | # Copyright 2022 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 applicabl... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/modeling_flax_utils.py | src/diffusers/models/modeling_flax_utils.py | # coding=utf-8
# Copyright 2025 The HuggingFace Inc. team.
#
# 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... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/model_loading_utils.py | src/diffusers/models/model_loading_utils.py | # coding=utf-8
# Copyright 2025 The HuggingFace Inc. team.
# Copyright (c) 2022, NVIDIA CORPORATION. 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.a... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/_modeling_parallel.py | src/diffusers/models/_modeling_parallel.py | # 🚨🚨🚨 Experimental parallelism support for Diffusers 🚨🚨🚨
# Experimental changes are subject to change and APIs may break without warning.
# 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 complianc... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/controlnet_sd3.py | src/diffusers/models/controlnet_sd3.py | # Copyright 2025 Stability AI, The HuggingFace Team and The InstantX 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-... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/controlnet_sparsectrl.py | src/diffusers/models/controlnet_sparsectrl.py | # 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 applicabl... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/activations.py | src/diffusers/models/activations.py | # coding=utf-8
# Copyright 2025 HuggingFace Inc.
#
# 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 ag... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/unets/unet_motion_model.py | src/diffusers/models/unets/unet_motion_model.py | # 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 applicabl... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | true |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/unets/uvit_2d.py | src/diffusers/models/unets/uvit_2d.py | # coding=utf-8
# Copyright 2025 The HuggingFace Inc. team.
#
# 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... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/unets/unet_i2vgen_xl.py | src/diffusers/models/unets/unet_i2vgen_xl.py | # Copyright 2025 Alibaba DAMO-VILAB and 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
#
# Unles... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/unets/unet_2d_blocks.py | src/diffusers/models/unets/unet_2d_blocks.py | # 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 applicabl... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | true |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/unets/unet_2d_blocks_flax.py | src/diffusers/models/unets/unet_2d_blocks_flax.py | # 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 applicabl... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/unets/unet_stable_cascade.py | src/diffusers/models/unets/unet_stable_cascade.py | # 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 applicabl... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/unets/unet_3d_blocks.py | src/diffusers/models/unets/unet_3d_blocks.py | # 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 applicabl... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | true |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/unets/unet_2d_condition.py | src/diffusers/models/unets/unet_2d_condition.py | # 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 applicabl... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | true |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/unets/unet_kandinsky3.py | src/diffusers/models/unets/unet_kandinsky3.py | # 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 applicabl... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/unets/unet_3d_condition.py | src/diffusers/models/unets/unet_3d_condition.py | # Copyright 2025 Alibaba DAMO-VILAB and The HuggingFace Team. All rights reserved.
# Copyright 2025 The ModelScope Team.
#
# 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.apa... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/unets/unet_1d.py | src/diffusers/models/unets/unet_1d.py | # 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 applicabl... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/unets/unet_2d.py | src/diffusers/models/unets/unet_2d.py | # 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 applicabl... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/unets/__init__.py | src/diffusers/models/unets/__init__.py | from ...utils import is_flax_available, is_torch_available
if is_torch_available():
from .unet_1d import UNet1DModel
from .unet_2d import UNet2DModel
from .unet_2d_condition import UNet2DConditionModel
from .unet_3d_condition import UNet3DConditionModel
from .unet_i2vgen_xl import I2VGenXLUNet
... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/unets/unet_1d_blocks.py | src/diffusers/models/unets/unet_1d_blocks.py | # 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 applicabl... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/unets/unet_spatio_temporal_condition.py | src/diffusers/models/unets/unet_spatio_temporal_condition.py | from dataclasses import dataclass
from typing import Optional, Tuple, Union
import torch
import torch.nn as nn
from ...configuration_utils import ConfigMixin, register_to_config
from ...loaders import UNet2DConditionLoadersMixin
from ...utils import BaseOutput, logging
from ..attention import AttentionMixin
from ..at... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/unets/unet_2d_condition_flax.py | src/diffusers/models/unets/unet_2d_condition_flax.py | # 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 applicabl... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/controlnets/controlnet_hunyuan.py | src/diffusers/models/controlnets/controlnet_hunyuan.py | # Copyright 2025 HunyuanDiT Authors, Qixun Wang and 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... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/controlnets/controlnet_sana.py | src/diffusers/models/controlnets/controlnet_sana.py | # 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 applicabl... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/controlnets/controlnet_qwenimage.py | src/diffusers/models/controlnets/controlnet_qwenimage.py | # Copyright 2025 Black Forest Labs, The HuggingFace Team and The InstantX 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/LIC... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/controlnets/controlnet_flax.py | src/diffusers/models/controlnets/controlnet_flax.py | # 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 applicabl... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/controlnets/controlnet_union.py | src/diffusers/models/controlnets/controlnet_union.py | # 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 applicabl... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | true |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/controlnets/__init__.py | src/diffusers/models/controlnets/__init__.py | from ...utils import is_flax_available, is_torch_available
if is_torch_available():
from .controlnet import ControlNetModel, ControlNetOutput
from .controlnet_flux import FluxControlNetModel, FluxControlNetOutput, FluxMultiControlNetModel
from .controlnet_hunyuan import (
HunyuanControlNetOutput,
... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/controlnets/controlnet_z_image.py | src/diffusers/models/controlnets/controlnet_z_image.py | # Copyright 2025 Alibaba Z-Image Team and 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
#
# Unl... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | true |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/controlnets/multicontrolnet.py | src/diffusers/models/controlnets/multicontrolnet.py | import os
from typing import Any, Callable, Dict, List, Optional, Tuple, Union
import torch
from torch import nn
from ...utils import logging
from ..controlnets.controlnet import ControlNetModel, ControlNetOutput
from ..modeling_utils import ModelMixin
logger = logging.get_logger(__name__)
class MultiControlNetMo... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/controlnets/controlnet_xs.py | src/diffusers/models/controlnets/controlnet_xs.py | # 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 applicabl... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | true |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/controlnets/controlnet.py | src/diffusers/models/controlnets/controlnet.py | # 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 applicabl... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | true |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/controlnets/controlnet_flux.py | src/diffusers/models/controlnets/controlnet_flux.py | # Copyright 2025 Black Forest Labs, The HuggingFace Team and The InstantX 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/LIC... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/controlnets/controlnet_sd3.py | src/diffusers/models/controlnets/controlnet_sd3.py | # Copyright 2025 Stability AI, The HuggingFace Team and The InstantX 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-... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/controlnets/multicontrolnet_union.py | src/diffusers/models/controlnets/multicontrolnet_union.py | import os
from typing import Any, Callable, Dict, List, Optional, Tuple, Union
import torch
from torch import nn
from ...utils import logging
from ..controlnets.controlnet import ControlNetOutput
from ..controlnets.controlnet_union import ControlNetUnionModel
from ..modeling_utils import ModelMixin
logger = logging... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/controlnets/controlnet_sparsectrl.py | src/diffusers/models/controlnets/controlnet_sparsectrl.py | # 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 applicabl... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | true |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/lumina_nextdit2d.py | src/diffusers/models/transformers/lumina_nextdit2d.py | # Copyright 2025 Alpha-VLLM Authors and 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
#
# Unles... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/transformer_mochi.py | src/diffusers/models/transformers/transformer_mochi.py | # Copyright 2025 The Genmo team and 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 ... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/transformer_hidream_image.py | src/diffusers/models/transformers/transformer_hidream_image.py | from typing import Any, Dict, List, Optional, Tuple, Union
import torch
import torch.nn as nn
import torch.nn.functional as F
from ...configuration_utils import ConfigMixin, register_to_config
from ...loaders import FromOriginalModelMixin, PeftAdapterMixin
from ...models.modeling_outputs import Transformer2DModelOutp... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | true |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/transformer_ovis_image.py | src/diffusers/models/transformers/transformer_ovis_image.py | # Copyright 2025 Alibaba Ovis-Image Team and The HuggingFace. 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
#
# Unles... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/transformer_chronoedit.py | src/diffusers/models/transformers/transformer_chronoedit.py | # Copyright 2025 The ChronoEdit Team and 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
#
# Unle... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/transformer_kandinsky.py | src/diffusers/models/transformers/transformer_kandinsky.py | # Copyright 2025 The Kandinsky Team and 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
#
# Unles... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/transformer_hunyuan_video15.py | src/diffusers/models/transformers/transformer_hunyuan_video15.py | # Copyright 2025 The Hunyuan Team and 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 ... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/latte_transformer_3d.py | src/diffusers/models/transformers/latte_transformer_3d.py | # Copyright 2025 the Latte Team and 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 re... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/transformer_wan_vace.py | src/diffusers/models/transformers/transformer_wan_vace.py | # Copyright 2025 The Wan Team and 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 requ... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/transformer_bria_fibo.py | src/diffusers/models/transformers/transformer_bria_fibo.py | # Copyright (c) Bria.ai. All rights reserved.
#
# This file is licensed under the Creative Commons Attribution-NonCommercial 4.0 International Public License (CC-BY-NC-4.0).
# You may obtain a copy of the license at https://creativecommons.org/licenses/by-nc/4.0/
#
# You are free to share and adapt this material for no... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/transformer_cogview3plus.py | src/diffusers/models/transformers/transformer_cogview3plus.py | # Copyright 2025 The CogView team, Tsinghua University & ZhipuAI and 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/l... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/pixart_transformer_2d.py | src/diffusers/models/transformers/pixart_transformer_2d.py | # 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 applicabl... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/transformer_easyanimate.py | src/diffusers/models/transformers/transformer_easyanimate.py | # Copyright 2025 The EasyAnimate team and 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
#
# U... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/cogvideox_transformer_3d.py | src/diffusers/models/transformers/cogvideox_transformer_3d.py | # Copyright 2025 The CogVideoX team, Tsinghua University & ZhipuAI and 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.o... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/transformer_wan.py | src/diffusers/models/transformers/transformer_wan.py | # Copyright 2025 The Wan Team and 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 requ... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/transformer_chroma.py | src/diffusers/models/transformers/transformer_chroma.py | # Copyright 2025 Black Forest Labs, The HuggingFace Team and loadstone-rock . 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/LICEN... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/transformer_hunyuan_video.py | src/diffusers/models/transformers/transformer_hunyuan_video.py | # Copyright 2025 The Hunyuan Team and 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 ... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | true |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/consisid_transformer_3d.py | src/diffusers/models/transformers/consisid_transformer_3d.py | # Copyright 2025 ConsisID Authors and 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 ... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | true |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/transformer_bria.py | src/diffusers/models/transformers/transformer_bria.py | import inspect
from typing import Any, Dict, List, Optional, Tuple, Union
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from ...configuration_utils import ConfigMixin, register_to_config
from ...loaders import FromOriginalModelMixin, PeftAdapterMixin
from ...utils import USE_PE... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/transformer_hunyuan_video_framepack.py | src/diffusers/models/transformers/transformer_hunyuan_video_framepack.py | # Copyright 2025 The Framepack Team, The Hunyuan Team and 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/LIC... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/hunyuan_transformer_2d.py | src/diffusers/models/transformers/hunyuan_transformer_2d.py | # Copyright 2025 HunyuanDiT Authors, Qixun Wang and 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... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/sana_transformer.py | src/diffusers/models/transformers/sana_transformer.py | # 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 applicabl... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/stable_audio_transformer.py | src/diffusers/models/transformers/stable_audio_transformer.py | # Copyright 2025 Stability AI and 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 requ... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/transformer_cogview4.py | src/diffusers/models/transformers/transformer_cogview4.py | # Copyright 2025 The CogView team, Tsinghua University & ZhipuAI and 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/l... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | true |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/transformer_flux2.py | src/diffusers/models/transformers/transformer_flux2.py | # Copyright 2025 Black Forest Labs, The HuggingFace Team and The InstantX 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/LIC... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | true |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/transformer_z_image.py | src/diffusers/models/transformers/transformer_z_image.py | # Copyright 2025 Alibaba Z-Image Team and 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
#
# Unl... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | true |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/transformer_prx.py | src/diffusers/models/transformers/transformer_prx.py | # Copyright 2025 The Photoroom and The HuggingFace Teams. 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 re... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/t5_film_transformer.py | src/diffusers/models/transformers/t5_film_transformer.py | # 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 applicabl... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/transformer_temporal.py | src/diffusers/models/transformers/transformer_temporal.py | # 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 applicabl... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/transformer_ltx.py | src/diffusers/models/transformers/transformer_ltx.py | # Copyright 2025 The Lightricks team and 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
#
# Un... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/transformer_allegro.py | src/diffusers/models/transformers/transformer_allegro.py | # Copyright 2025 The RhymesAI and 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 re... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/transformer_qwenimage.py | src/diffusers/models/transformers/transformer_qwenimage.py | # Copyright 2025 Qwen-Image Team, 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 requ... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | true |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/__init__.py | src/diffusers/models/transformers/__init__.py | from ...utils import is_torch_available
if is_torch_available():
from .auraflow_transformer_2d import AuraFlowTransformer2DModel
from .cogvideox_transformer_3d import CogVideoXTransformer3DModel
from .consisid_transformer_3d import ConsisIDTransformer3DModel
from .dit_transformer_2d import DiTTransfor... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/transformer_skyreels_v2.py | src/diffusers/models/transformers/transformer_skyreels_v2.py | # Copyright 2025 The SkyReels Team, The Wan Team and 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-... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | true |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/transformer_sana_video.py | src/diffusers/models/transformers/transformer_sana_video.py | # Copyright 2025 The HuggingFace Team and SANA-Video 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 r... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/dual_transformer_2d.py | src/diffusers/models/transformers/dual_transformer_2d.py | # 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 applicabl... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/transformer_cosmos.py | src/diffusers/models/transformers/transformer_cosmos.py | # Copyright 2025 The NVIDIA Team and 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 r... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/transformer_hunyuanimage.py | src/diffusers/models/transformers/transformer_hunyuanimage.py | # Copyright 2025 The Hunyuan Team and 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 ... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | true |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/prior_transformer.py | src/diffusers/models/transformers/prior_transformer.py | from dataclasses import dataclass
from typing import Optional, Union
import torch
import torch.nn.functional as F
from torch import nn
from ...configuration_utils import ConfigMixin, register_to_config
from ...loaders import PeftAdapterMixin, UNet2DConditionLoadersMixin
from ...utils import BaseOutput
from ..attentio... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/transformer_2d.py | src/diffusers/models/transformers/transformer_2d.py | # 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 applicabl... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/transformer_longcat_image.py | src/diffusers/models/transformers/transformer_longcat_image.py | # Copyright 2025 MeiTuan LongCat-Image Team and 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
#... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/transformer_sd3.py | src/diffusers/models/transformers/transformer_sd3.py | # Copyright 2025 Stability AI, The HuggingFace Team and The InstantX 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-... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/auraflow_transformer_2d.py | src/diffusers/models/transformers/auraflow_transformer_2d.py | # Copyright 2025 AuraFlow Authors, 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 req... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/transformer_wan_animate.py | src/diffusers/models/transformers/transformer_wan_animate.py | # Copyright 2025 The Wan Team and 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 requ... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | true |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/transformer_omnigen.py | src/diffusers/models/transformers/transformer_omnigen.py | # Copyright 2025 OmniGen team and 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 requ... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/dit_transformer_2d.py | src/diffusers/models/transformers/dit_transformer_2d.py | # 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 applicabl... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/transformer_lumina2.py | src/diffusers/models/transformers/transformer_lumina2.py | # Copyright 2025 Alpha-VLLM Authors and 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
#
# Unles... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | false |
huggingface/diffusers | https://github.com/huggingface/diffusers/blob/47378066c002573613a1dba686570fbd5a1cf48a/src/diffusers/models/transformers/transformer_flux.py | src/diffusers/models/transformers/transformer_flux.py | # Copyright 2025 Black Forest Labs, The HuggingFace Team and The InstantX 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/LIC... | python | Apache-2.0 | 47378066c002573613a1dba686570fbd5a1cf48a | 2026-01-04T14:42:56.953111Z | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.