2025-06-04 19:50:41 +08:00
11
2025-06-04 19:47:21 +08:00
2025-06-04 19:41:41 +08:00
2025-06-04 19:41:41 +08:00
11
2025-06-04 19:47:21 +08:00
2025-06-04 19:50:41 +08:00
11
2025-06-04 19:47:21 +08:00

cui-teacache-lu2

referenced from https://github.com/spawner1145/TeaCache/blob/main/TeaCache4Lumina2/teacache_lumina2.py

firstly transplanted by @fexli

retransplanted by @spawner

usage

image

reference

TeaCache can speedup Lumina-Image-2.0 without much visual quality degradation, in a training-free manner. The following image shows the results generated by TeaCache-Lumina-Image-2.0 with various rel_l1_thresh values: 0 (original), 0.2 (1.25x speedup), 0.3 (1.5625x speedup), 0.4 (2.0833x speedup), 0.5 (2.5x speedup).

📈 Inference Latency Comparisons on a single 4090 (step 50)

Lumina-Image-2.0 TeaCache (0.2) TeaCache (0.3) TeaCache (0.4) TeaCache (0.5)
~25 s ~20 s ~16 s ~12 s ~10 s

special thanks

fexli

The original TeaCache transplant of Lumina2 in cui

welltop-cn

model patch code design

S
Description
No description provided
Readme GPL-3.0
161 KiB
Languages
Python 100%