From 09b6068929076d824a504d4e104db87eb6a08d58 Mon Sep 17 00:00:00 2001 From: Sarvesh Date: Tue, 9 Jun 2026 17:03:33 +0530 Subject: [PATCH] Patch lora forward in modulated model before applying lora to layers in QA inference --- demo.ipynb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/demo.ipynb b/demo.ipynb index 1d2f469..2067ebc 100644 --- a/demo.ipynb +++ b/demo.ipynb @@ -613,6 +613,9 @@ " ).strip()\n", "\n", " # === Part B: Video2LoRA Inference (zero visual tokens) ===\n", + " # Re-patch the base model layers with the LoRA forward function before binding weights\n", + " model.patch_lora_forward()\n", + "\n", " apply_lora_to_layers(\n", " model.base_model,\n", " model.hypernet.layer_indices,\n",