- HunyuanVideo optimizations: full offload, quantization and tiling support

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2024-12-26 10:06:30 -05:00
parent 9cb15a564c
commit 3359792762
7 changed files with 106 additions and 42 deletions
+2 -2
View File
@@ -314,9 +314,9 @@ def set_pipeline_args(p, model, prompts: list, negative_prompts: list, prompts_2
clean.pop('callback_steps', None)
clean.pop('callback_on_step_end', None)
clean.pop('callback_on_step_end_tensor_inputs', None)
if 'prompt' in clean:
if 'prompt' in clean and clean['prompt'] is not None:
clean['prompt'] = len(clean['prompt'])
if 'negative_prompt' in clean:
if 'negative_prompt' in clean and clean['negative_prompt'] is not None:
clean['negative_prompt'] = len(clean['negative_prompt'])
clean.pop('generator', None)
clean['parser'] = parser