Skip to content

Commit 37f8826

Browse files
committed
add imports
1 parent bb0a069 commit 37f8826

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/diffusers/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@
168168
"HookRegistry",
169169
"LayerSkipConfig",
170170
"MagCacheConfig",
171+
"FLUX_MAG_RATIOS",
171172
"PyramidAttentionBroadcastConfig",
172173
"SmoothedEnergyGuidanceConfig",
173174
"apply_faster_cache",
@@ -897,6 +898,7 @@
897898
from .hooks import (
898899
FasterCacheConfig,
899900
FirstBlockCacheConfig,
901+
FLUX_MAG_RATIOS,
900902
HookRegistry,
901903
LayerSkipConfig,
902904
MagCacheConfig,

src/diffusers/hooks/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@
2323
from .hooks import HookRegistry, ModelHook
2424
from .layer_skip import LayerSkipConfig, apply_layer_skip
2525
from .layerwise_casting import apply_layerwise_casting, apply_layerwise_casting_hook
26-
from .mag_cache import MagCacheConfig, apply_mag_cache
26+
from .mag_cache import FLUX_MAG_RATIOS, MagCacheConfig, apply_mag_cache
2727
from .pyramid_attention_broadcast import PyramidAttentionBroadcastConfig, apply_pyramid_attention_broadcast
2828
from .smoothed_energy_guidance_utils import SmoothedEnergyGuidanceConfig

src/diffusers/hooks/_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
_ATTENTION_CLASSES = (Attention, MochiAttention, AttentionModuleMixin)
2424
_FEEDFORWARD_CLASSES = (FeedForward, LuminaFeedForward)
2525

26-
_SPATIAL_TRANSFORMER_BLOCK_IDENTIFIERS = ("blocks", "transformer_blocks", "single_transformer_blocks", "layers")
26+
_SPATIAL_TRANSFORMER_BLOCK_IDENTIFIERS = ("blocks", "transformer_blocks", "single_transformer_blocks", "layers", "visual_transformer_blocks",)
2727
_TEMPORAL_TRANSFORMER_BLOCK_IDENTIFIERS = ("temporal_transformer_blocks",)
2828
_CROSS_TRANSFORMER_BLOCK_IDENTIFIERS = ("blocks", "transformer_blocks", "layers")
2929

0 commit comments

Comments
 (0)