Python
added Hunyuan Lora accelerator profile
DeepBeepMeep2a663d76c949
diff --git a/README.md b/README.mdindex bd9c4b3..2740b88 100644--- a/README.md+++ b/README.md@@ -36,7 +36,7 @@ WanGP supports the Wan (and derived models), Hunyuan Video and LTV Video models-----## 🔥 Latest Updates :-### November 24 2025: WanGP v9.61, The Return of the King+### November 24 2025: WanGP v9.62, The Return of the KingSo here is *Tencet* who is back in the race: let's welcome **Hunyuan Video 1.5**@@ -48,7 +48,9 @@ Despite only 8B parameters it offers quite a high level of quality. It is not juEach model comes on day one with several finetunes specialized for a specific resolution.The downside right now is that to get the best quality you need to use guidance > 1 and a high number of Steps (20+).-But dont go away yet ! *LightX2V* (https://huggingface.co/lightx2v/Hy1.5-Distill-Models/) is on deck and has already delivered an *Accelerated 4 steps Finetune* for the *t2v 480p* model. It is part of today's delivery.+But dont go away yet ! **LightX2V** (https://huggingface.co/lightx2v/Hy1.5-Distill-Models/) is on deck and has already delivered an *Accelerated 4 steps Finetune* for the *t2v 480p* model. It is part of today's delivery.++I have extracted *LighX2V Magic* into an *8 steps Accelerator Lora* that seems to work for i2v and the other resolutions. This should be good enough while waiting for other the official LighX2V releases (just select this lora in the *Settings* Dropdown Box).WanGP implementation of Hunyuan 1.5 is quite complete as you will get straight away *Video Gen Preview* (WanGP exclusivity!) and *Sliding Window* support. It is also ready for *Tea Cache* or *Mag Cache* (just waiting for the official parameters)@@ -56,6 +58,9 @@ WanGP implementation of Hunyuan 1.5 is quite complete as you will get straight aPlease note Hunyuan v1 Loras are not compatible since the latent space is different. You can add loras for Hunyuan Video 1.5 in the *loras_hunyuan/1.5* folder.+*Update 9.62* : Added Lora Accelerator\+*Update 9.61* : Added VAE Temporal Tiling+### November 21 2025: WanGP v9.52, And there was motionIn this release WanGP turns you into a Motion Master:diff --git a/defaults/hunyuan_1_5_480_t2v_lightx2v.json b/defaults/hunyuan_1_5_480_t2v_lightx2v.jsonindex 7b20eb2..8fbce51 100644--- a/defaults/hunyuan_1_5_480_t2v_lightx2v.json+++ b/defaults/hunyuan_1_5_480_t2v_lightx2v.json@@ -3,6 +3,7 @@"name": "Hunyuan Video 1.5 Text2video 480p Lightx2v 8B","architecture": "hunyuan_1_5_t2v","description": "HunyuanVideo-1.5 is a video generation model that delivers top-tier quality with only 8.3B parameters, significantly lowering the barrier to usage. This is the Text2video 480p version accelerated by lightx2v.",+ "profiles_dir": [""],"URLs": ["https://huggingface.co/DeepBeepMeep/HunyuanVideo1.5/resolve/main/hy1.5_t2v_480p_lightx2v_4step_bf16.safetensors","https://huggingface.co/DeepBeepMeep/HunyuanVideo1.5/resolve/main/hy1.5_t2v_480p_lightx2v_4step_quanto_int8_bf16.safetensors"diff --git a/models/hyvideo/hunyuan_handler.py b/models/hyvideo/hunyuan_handler.pyindex aa3ae9f..16ae38d 100644--- a/models/hyvideo/hunyuan_handler.py+++ b/models/hyvideo/hunyuan_handler.py@@ -50,7 +50,11 @@ class family_handler():if test_hunyuan_1_5(base_model_type):extra_model_def["group"] = "hunyuan_1_5"-+ if base_model_type in ["hunyuan_1_5_upsampler"]:+ extra_model_def["profiles_dir"] = [""]+ else:+ extra_model_def["profiles_dir"] = ["hunyuan_1_5"]+extra_model_def["fps"] = fpsextra_model_def["frames_minimum"] = 5diff --git a/profiles/hunyuan_1_5/LightX2V dpm - 8 steps.json b/profiles/hunyuan_1_5/LightX2V dpm - 8 steps.jsonnew file mode 100644index 0000000..8dcf615--- /dev/null+++ b/profiles/hunyuan_1_5/LightX2V dpm - 8 steps.json@@ -0,0 +1,11 @@+{++ "activated_loras": [+ "https://huggingface.co/DeepBeepMeep/HunyuanVideo1.5/resolve/main/loras_accelerators/Hunyuan_video_1_5_LigthX2V_dpm_rank32.safetensors"+ ],+ "loras_multipliers": "1",+ "num_inference_steps": 8,+ "guidance_phases": 1,+ "guidance_scale": 1,+ "flow_shift": 3+}\ No newline at end of filediff --git a/shared/extract_lora.py b/shared/extract_lora.pyindex 2a23582..7ededf4 100644--- a/shared/extract_lora.py+++ b/shared/extract_lora.py@@ -540,8 +540,8 @@ if __name__ == "__main__":# Load original and fine-tuned models from safetensors files- original_state_dict = load_safetensors("ckpts/wan2.2_text2video_14B_high_mbf16.safetensors")- finetuned_state_dict = load_safetensors("ckpts/wan2.2_text2video_14B_low_mbf16.safetensors")+ original_state_dict = load_safetensors("ckpts/hunyuan_video_1.5_480_bf16.safetensors")+ finetuned_state_dict = load_safetensors("c:/temp/hy1.5_t2v_480p_lightx2v_4step_bf16.safetensors")# original_state_dict = load_safetensors("ckpts/flux1-dev_bf16.safetensors")# finetuned_state_dict = load_safetensors("ckpts/flux1-schnell_bf16.safetensors")@@ -551,7 +551,7 @@ if __name__ == "__main__":# extractor_test = LoRAExtractor(test_mode=True)- extractor_test = LoRAExtractor(show_reconstruction_errors=True, rank=128)+ extractor_test = LoRAExtractor(show_reconstruction_errors=True, rank=32)lora_tensors_test = extractor_test.extract_lora_from_state_dicts(original_state_dict,diff --git a/wgp.py b/wgp.pyindex cbd7665..0d4487b 100644--- a/wgp.py+++ b/wgp.py@@ -82,7 +82,7 @@ global_queue_ref = []AUTOSAVE_FILENAME = "queue.zip"PROMPT_VARS_MAX = 10target_mmgp_version = "3.6.8"-WanGP_version = "9.61"+WanGP_version = "9.62"settings_version = 2.41max_source_video_frames = 3000prompt_enhancer_image_caption_model, prompt_enhancer_image_caption_processor, prompt_enhancer_llm_model, prompt_enhancer_llm_tokenizer = None, None, None, None