mirror of
https://github.com/SakanaAI/doc-to-lora.git
synced 2026-07-23 17:01:04 +02:00
Patch lora forward in modulated model before applying lora to layers in QA inference
This commit is contained in:
parent
51ef4f3d8d
commit
09b6068929
1 changed files with 3 additions and 0 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue