Skip to content

Commit c715470

Browse files
committed
add a note on changing guidance_scale on doc
1 parent 2c018f8 commit c715470

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

docs/source/en/api/pipelines/hunyuan_video15.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,41 @@ Refer to the [Attention backends](../../optimization/attention_backends) guide f
6767
pipe.transformer.set_attention_backend("flash_varlen") # or your preferred backend
6868
```
6969

70+
- [`HunyuanVideo15Pipeline`] use guider and does not take `guidance_scale` parameter at runtime.
71+
72+
You can check the default guider configuration using `pipe.guider`:
73+
74+
```py
75+
>>> pipe.guider
76+
ClassifierFreeGuidance {
77+
"_class_name": "ClassifierFreeGuidance",
78+
"_diffusers_version": "0.36.0.dev0",
79+
"enabled": true,
80+
"guidance_rescale": 0.0,
81+
"guidance_scale": 6.0,
82+
"start": 0.0,
83+
"stop": 1.0,
84+
"use_original_formulation": false
85+
}
86+
87+
State:
88+
step: None
89+
num_inference_steps: None
90+
timestep: None
91+
count_prepared: 0
92+
enabled: True
93+
num_conditions: 2
94+
```
95+
96+
To update guider configuration, you can run `pipe.guider = pipe.guider.new(...)`
97+
98+
```py
99+
pipe.guider = pipe.guider.new(guidance_scale=5.0)
100+
```
101+
102+
Read more on Guider [here](../../modular_diffusers/guider).
103+
104+
70105

71106
## HunyuanVideo15Pipeline
72107

0 commit comments

Comments
 (0)