Skip to content

Add diff_infer_steps support to generation - #99

Open
kechengliu97 wants to merge 1 commit into
Tencent-Hunyuan:mainfrom
kechengliu97:Test
Open

Add diff_infer_steps support to generation#99
kechengliu97 wants to merge 1 commit into
Tencent-Hunyuan:mainfrom
kechengliu97:Test

Conversation

@kechengliu97

Copy link
Copy Markdown

Accept a new kwargs key diff_infer_steps and, when provided, create a copy of the model's generation_config to set diff_infer_steps on. Pass this modified generation_config into self.generate(...) so callers can override the diffusion inference steps for image generation without changing the global config. Default behavior remains unchanged when diff_infer_steps is not supplied.

Accept a new kwargs key `diff_infer_steps` and, when provided, create a copy of the model's `generation_config` to set `diff_infer_steps` on. Pass this modified `generation_config` into `self.generate(...)` so callers can override the diffusion inference steps for image generation without changing the global config. Default behavior remains unchanged when `diff_infer_steps` is not supplied.

Signed-off-by: John Liu BUAA <liukecheng97@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant