Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
xuwx1
LightX2V
Commits
8db2daa3
Commit
8db2daa3
authored
Jul 10, 2025
by
helloyongyang
Browse files
update doc
parent
8ec850b8
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
1 deletion
+24
-1
configs/caching/adacache/wan_i2v_ada.json
configs/caching/adacache/wan_i2v_ada.json
+15
-0
configs/caching/teacache/wan_t2v_14b_tea_480p.json
configs/caching/teacache/wan_t2v_14b_tea_480p.json
+0
-0
configs/caching/teacache/wan_t2v_1_3b_tea_480p.json
configs/caching/teacache/wan_t2v_1_3b_tea_480p.json
+0
-0
docs/EN/source/method_tutorials/cache.md
docs/EN/source/method_tutorials/cache.md
+4
-0
docs/ZH_CN/source/method_tutorials/cache.md
docs/ZH_CN/source/method_tutorials/cache.md
+4
-0
scripts/cache/run_wan_t2v_tea.sh
scripts/cache/run_wan_t2v_tea.sh
+1
-1
No files found.
configs/caching/adacache/wan_i2v_ada.json
0 → 100755
View file @
8db2daa3
{
"infer_steps"
:
40
,
"target_video_length"
:
81
,
"target_height"
:
480
,
"target_width"
:
832
,
"self_attn_1_type"
:
"flash_attn3"
,
"cross_attn_1_type"
:
"flash_attn3"
,
"cross_attn_2_type"
:
"flash_attn3"
,
"seed"
:
442
,
"sample_guide_scale"
:
5
,
"sample_shift"
:
3
,
"enable_cfg"
:
true
,
"cpu_offload"
:
false
,
"feature_caching"
:
"Ada"
}
configs/caching/teacache/wan_t2v_14b.json
→
configs/caching/teacache/wan_t2v_14b
_tea_480p
.json
View file @
8db2daa3
File moved
configs/caching/teacache/wan_t2v_1_3b.json
→
configs/caching/teacache/wan_t2v_1_3b
_tea_480p
.json
View file @
8db2daa3
File moved
docs/EN/source/method_tutorials/cache.md
View file @
8db2daa3
...
@@ -18,6 +18,7 @@ In actual effect, TeaCache achieves significant acceleration while ensuring gene
...
@@ -18,6 +18,7 @@ In actual effect, TeaCache achieves significant acceleration while ensuring gene
| Single H200 inference time: 58s | Single H200 inference time: 17.9s |
| Single H200 inference time: 58s | Single H200 inference time: 17.9s |
| !
[
Effect before acceleration
](
../../../../assets/gifs/1.gif
)
| !
[
Effect after acceleration
](
../../../../assets/gifs/2.gif
)
|
| !
[
Effect before acceleration
](
../../../../assets/gifs/1.gif
)
| !
[
Effect after acceleration
](
../../../../assets/gifs/2.gif
)
|
-
Speedup ratio:
**3.24**
-
Speedup ratio:
**3.24**
-
config:
[
wan_t2v_1_3b_tea_480p.json
](
../../../../configs/caching/teacache/wan_t2v_1_3b_tea_480p.json
)
-
Reference paper:
[
https://arxiv.org/abs/2411.19108
](
https://arxiv.org/abs/2411.19108
)
-
Reference paper:
[
https://arxiv.org/abs/2411.19108
](
https://arxiv.org/abs/2411.19108
)
### TaylorSeer Cache
### TaylorSeer Cache
...
@@ -28,6 +29,7 @@ The core of `TaylorSeer Cache` lies in using Taylor formula to recalculate cache
...
@@ -28,6 +29,7 @@ The core of `TaylorSeer Cache` lies in using Taylor formula to recalculate cache
| Single H200 inference time: 57.7s | Single H200 inference time: 41.3s |
| Single H200 inference time: 57.7s | Single H200 inference time: 41.3s |
| !
[
Effect before acceleration
](
../../../../assets/gifs/3.gif
)
| !
[
Effect after acceleration
](
../../../../assets/gifs/4.gif
)
|
| !
[
Effect before acceleration
](
../../../../assets/gifs/3.gif
)
| !
[
Effect after acceleration
](
../../../../assets/gifs/4.gif
)
|
-
Speedup ratio:
**1.39**
-
Speedup ratio:
**1.39**
-
config:
[
wan_t2v_taylorseer
](
../../../../configs/caching/taylorseer/wan_t2v_taylorseer.json
)
-
Reference paper:
[
https://arxiv.org/abs/2503.06923
](
https://arxiv.org/abs/2503.06923
)
-
Reference paper:
[
https://arxiv.org/abs/2503.06923
](
https://arxiv.org/abs/2503.06923
)
### AdaCache
### AdaCache
...
@@ -42,6 +44,7 @@ This allows flexible adjustment of cache strategies based on dynamic changes in
...
@@ -42,6 +44,7 @@ This allows flexible adjustment of cache strategies based on dynamic changes in
| Single H200 inference time: 227s | Single H200 inference time: 83s |
| Single H200 inference time: 227s | Single H200 inference time: 83s |
| !
[
Effect before acceleration
](
../../../../assets/gifs/5.gif
)
| !
[
Effect after acceleration
](
../../../../assets/gifs/6.gif
)
|
| !
[
Effect before acceleration
](
../../../../assets/gifs/5.gif
)
| !
[
Effect after acceleration
](
../../../../assets/gifs/6.gif
)
|
-
Speedup ratio:
**2.73**
-
Speedup ratio:
**2.73**
-
config:
[
wan_i2v_ada
](
../../../../configs/caching/adacache/wan_i2v_ada.json
)
-
Reference paper:
[
https://arxiv.org/abs/2411.02397
](
https://arxiv.org/abs/2411.02397
)
-
Reference paper:
[
https://arxiv.org/abs/2411.02397
](
https://arxiv.org/abs/2411.02397
)
### CustomCache
### CustomCache
...
@@ -56,6 +59,7 @@ This not only efficiently determines the timing of cache reuse, but also maximiz
...
@@ -56,6 +59,7 @@ This not only efficiently determines the timing of cache reuse, but also maximiz
| Single H200 inference time: 57.9s | Single H200 inference time: 16.6s |
| Single H200 inference time: 57.9s | Single H200 inference time: 16.6s |
| !
[
Effect before acceleration
](
../../../../assets/gifs/7.gif
)
| !
[
Effect after acceleration
](
../../../../assets/gifs/8.gif
)
|
| !
[
Effect before acceleration
](
../../../../assets/gifs/7.gif
)
| !
[
Effect after acceleration
](
../../../../assets/gifs/8.gif
)
|
-
Speedup ratio:
**3.49**
-
Speedup ratio:
**3.49**
-
config:
[
wan_t2v_custom_1_3b
](
../../../../configs/caching/custom/wan_t2v_custom_1_3b.json
)
## How to Run
## How to Run
...
...
docs/ZH_CN/source/method_tutorials/cache.md
View file @
8db2daa3
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
| 单卡H200推理耗时:58s | 单卡H200推理耗时:17.9s |
| 单卡H200推理耗时:58s | 单卡H200推理耗时:17.9s |
| !
[
加速前效果
](
../../../../assets/gifs/1.gif
)
| !
[
加速后效果
](
../../../../assets/gifs/2.gif
)
|
| !
[
加速前效果
](
../../../../assets/gifs/1.gif
)
| !
[
加速后效果
](
../../../../assets/gifs/2.gif
)
|
-
加速比为:
**3.24**
-
加速比为:
**3.24**
-
config:
[
wan_t2v_1_3b_tea_480p.json
](
../../../../configs/caching/teacache/wan_t2v_1_3b_tea_480p.json
)
-
参考论文:
[
https://arxiv.org/abs/2411.19108
](
https://arxiv.org/abs/2411.19108
)
-
参考论文:
[
https://arxiv.org/abs/2411.19108
](
https://arxiv.org/abs/2411.19108
)
### TaylorSeer Cache
### TaylorSeer Cache
...
@@ -28,6 +29,7 @@
...
@@ -28,6 +29,7 @@
| 单卡H200推理耗时:57.7s | 单卡H200推理耗时:41.3s |
| 单卡H200推理耗时:57.7s | 单卡H200推理耗时:41.3s |
| !
[
加速前效果
](
../../../../assets/gifs/3.gif
)
| !
[
加速后效果
](
../../../../assets/gifs/4.gif
)
|
| !
[
加速前效果
](
../../../../assets/gifs/3.gif
)
| !
[
加速后效果
](
../../../../assets/gifs/4.gif
)
|
-
加速比为:
**1.39**
-
加速比为:
**1.39**
-
config:
[
wan_t2v_taylorseer
](
../../../../configs/caching/taylorseer/wan_t2v_taylorseer.json
)
-
参考论文:
[
https://arxiv.org/abs/2503.06923
](
https://arxiv.org/abs/2503.06923
)
-
参考论文:
[
https://arxiv.org/abs/2503.06923
](
https://arxiv.org/abs/2503.06923
)
### AdaCache
### AdaCache
...
@@ -42,6 +44,7 @@
...
@@ -42,6 +44,7 @@
| 单卡H200推理耗时:227s | 单卡H200推理耗时:83s |
| 单卡H200推理耗时:227s | 单卡H200推理耗时:83s |
| !
[
加速前效果
](
../../../../assets/gifs/5.gif
)
| !
[
加速后效果
](
../../../../assets/gifs/6.gif
)
|
| !
[
加速前效果
](
../../../../assets/gifs/5.gif
)
| !
[
加速后效果
](
../../../../assets/gifs/6.gif
)
|
-
加速比为:
**2.73**
-
加速比为:
**2.73**
-
config:
[
wan_i2v_ada
](
../../../../configs/caching/adacache/wan_i2v_ada.json
)
-
参考论文:
[
https://arxiv.org/abs/2411.02397
](
https://arxiv.org/abs/2411.02397
)
-
参考论文:
[
https://arxiv.org/abs/2411.02397
](
https://arxiv.org/abs/2411.02397
)
### CustomCache
### CustomCache
...
@@ -56,6 +59,7 @@
...
@@ -56,6 +59,7 @@
| 单卡H200推理耗时:57.9s | 单卡H200推理耗时:16.6s |
| 单卡H200推理耗时:57.9s | 单卡H200推理耗时:16.6s |
| !
[
加速前效果
](
../../../../assets/gifs/7.gif
)
| !
[
加速后效果
](
../../../../assets/gifs/8.gif
)
|
| !
[
加速前效果
](
../../../../assets/gifs/7.gif
)
| !
[
加速后效果
](
../../../../assets/gifs/8.gif
)
|
-
加速比为:
**3.49**
-
加速比为:
**3.49**
-
config:
[
wan_t2v_custom_1_3b
](
../../../../configs/caching/custom/wan_t2v_custom_1_3b.json
)
## 使用方式
## 使用方式
...
...
scripts/cache/run_wan_t2v_tea.sh
View file @
8db2daa3
...
@@ -32,7 +32,7 @@ python -m lightx2v.infer \
...
@@ -32,7 +32,7 @@ python -m lightx2v.infer \
--model_cls
wan2.1
\
--model_cls
wan2.1
\
--task
t2v
\
--task
t2v
\
--model_path
$model_path
\
--model_path
$model_path
\
--config_json
${
lightx2v_path
}
/configs/caching/teacache/wan_t2v_1_3b.json
\
--config_json
${
lightx2v_path
}
/configs/caching/teacache/wan_t2v_1_3b
_tea_480p
.json
\
--prompt
"Two anthropomorphic cats in comfy boxing gear and bright gloves fight intensely on a spotlighted stage."
\
--prompt
"Two anthropomorphic cats in comfy boxing gear and bright gloves fight intensely on a spotlighted stage."
\
--negative_prompt
"镜头晃动,色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走"
\
--negative_prompt
"镜头晃动,色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走"
\
--save_video_path
${
lightx2v_path
}
/save_results/output_lightx2v_wan_t2v_tea.mp4
--save_video_path
${
lightx2v_path
}
/save_results/output_lightx2v_wan_t2v_tea.mp4
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment