Files
vllm-omni/vllm_omni/diffusion/cache/__init__.py
T

37 lines
1.2 KiB
Python
Raw Normal View History

2025-12-12 09:59:56 +05:30
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
"""
Cache module for diffusion model inference acceleration.
This module provides a unified cache backend system for different caching strategies:
2025-12-12 09:59:56 +05:30
- TeaCache: Timestep Embedding Aware Cache for adaptive transformer caching
- cache-dit: DBCache, SCM, and TaylorSeer caching strategies
2025-12-12 09:59:56 +05:30
Cache backends are instantiated directly via their constructors and configured via OmniDiffusionConfig.
2025-12-12 09:59:56 +05:30
"""
from vllm_omni.diffusion.cache.base import CacheBackend
from vllm_omni.diffusion.cache.prompt_embed_cache import (
PromptEmbedCache,
install_prompt_embed_cache,
resolve_prompt_embed_cache_config,
uninstall_prompt_embed_cache,
)
2025-12-12 09:59:56 +05:30
from vllm_omni.diffusion.cache.teacache import (
CacheContext,
TeaCacheConfig,
apply_teacache_hook,
)
from vllm_omni.diffusion.cache.teacache.backend import TeaCacheBackend
2025-12-12 09:59:56 +05:30
__all__ = [
"CacheBackend",
2025-12-12 09:59:56 +05:30
"TeaCacheConfig",
"CacheContext",
"TeaCacheBackend",
2025-12-12 09:59:56 +05:30
"apply_teacache_hook",
"PromptEmbedCache",
"install_prompt_embed_cache",
"resolve_prompt_embed_cache_config",
"uninstall_prompt_embed_cache",
2025-12-12 09:59:56 +05:30
]