Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/diffusers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@
)
_import_structure["hooks"].extend(
[
"BudgetCacheConfig",
"FasterCacheConfig",
"FirstBlockCacheConfig",
"HookRegistry",
Expand All @@ -184,6 +185,7 @@
"SmoothedEnergyGuidanceConfig",
"TaylorSeerCacheConfig",
"TextKVCacheConfig",
"apply_budget_cache",
"apply_faster_cache",
"apply_first_block_cache",
"apply_layer_skip",
Expand Down Expand Up @@ -1036,6 +1038,7 @@
TangentialClassifierFreeGuidance,
)
from .hooks import (
BudgetCacheConfig,
FasterCacheConfig,
FirstBlockCacheConfig,
HookRegistry,
Expand All @@ -1045,6 +1048,7 @@
SmoothedEnergyGuidanceConfig,
TaylorSeerCacheConfig,
TextKVCacheConfig,
apply_budget_cache,
apply_faster_cache,
apply_first_block_cache,
apply_layer_skip,
Expand Down
1 change: 1 addition & 0 deletions src/diffusers/hooks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@


if is_torch_available():
from .budget_cache import BudgetCacheConfig, apply_budget_cache, search_cache_schedule
from .context_parallel import apply_context_parallel
from .faster_cache import FasterCacheConfig, apply_faster_cache
from .first_block_cache import FirstBlockCacheConfig, apply_first_block_cache
Expand Down
Loading
Loading