[Feat] Support teacache for SenseNova-U1 (#4164)

Signed-off-by: hanzheli <hanzheli@kuaishou.com>
Signed-off-by: princepride <wangzhipeng628@gmail.com>
Signed-off-by: 汪志鹏 <wangzhipeng628@gmail.com>
Co-authored-by: princepride <wangzhipeng628@gmail.com>
This commit is contained in:
fywcandprincepride authored and GitHub committed 2026-06-30 09:24:46 +00:00
1 parent bb8614595d
commit 9a105bf90d
7 files changed
+130 -11

No files matched your search

@@ -38,9 +38,9 @@ python end2end.py --modality text2text \
python end2end.py --prompt "A futuristic cityscape at sunset" \
--width 2048 --height 1024 --think
# Text-to-image with Cache-DiT acceleration
# Text-to-image with cache acceleration (cache_dit or tea_cache)
python end2end.py --prompt "A cute cat" \
--cache-backend cache_dit \
--cache-backend tea_cache
```
> **Note**: Default configuration works on a single **NVIDIA A100 (80GB)** or **H100** GPU.
@@ -139,7 +139,7 @@ python end2end.py \
| `--tensor-parallel-size` | 1 | Number of GPUs for tensor parallelism |
| `--enforce-eager` | False | Disable torch.compile |
| `--enable-cpu-offload` | False | Enable module-wise (sequential) CPU offload to reduce peak VRAM |
| `--cache-backend` | None | Set to `cache_dit` for Cache-DiT acceleration |
| `--cache-backend` | None | Set to `cache_dit` or `tea_cache` for image generation acceleration |
| `--enable-cache-dit-summary` | False | Print Cache-DiT cache statistics after generation |
## Reducing GPU Memory Usage
@@ -211,4 +211,4 @@ The img2img counterpart lives at
## Online Serving
For OpenAI-compatible API serving, see
[`examples/online_serving/sensenova_u1/`](../../examples/online_serving/sensenova_u1/).
[`examples/online_serving/sensenova_u1/`](../../online_serving/sensenova_u1/README.md).
@@ -164,7 +164,7 @@ def parse_args():
"--cache-backend",
type=str,
default=None,
choices=["cache_dit"],
choices=["cache_dit", "tea_cache"],
help="Cache backend to use for image generation acceleration.",
)
parser.add_argument(
@@ -6,11 +6,11 @@
vllm serve SenseNova/SenseNova-U1-8B-MoT --omni --port 8091
```
With Cache-DiT acceleration:
With cache acceleration (`cache_dit` or `tea_cache`):
```bash
vllm serve SenseNova/SenseNova-U1-8B-MoT --omni --port 8091 \
--cache-backend cache_dit
--cache-backend tea_cache
```
Or use the convenience script:
@@ -19,8 +19,8 @@ Or use the convenience script:
cd examples/online_serving/sensenova_u1
bash run_server.sh
# Cache-DiT
CACHE_BACKEND=cache_dit bash run_server.sh
# Cache acceleration (cache_dit or tea_cache)
CACHE_BACKEND=tea_cache bash run_server.sh
```
### Tensor Parallelism (TP)