Skip to content

Commit

Permalink
lora soup only train the routing
Browse files Browse the repository at this point in the history
  • Loading branch information
shuishen112 committed Dec 30, 2024
1 parent d5a8728 commit dc2868c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions projects/modular_llm/finetune_experts.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,8 @@ def finetune_lib_lora_soup(args: FinetuneConfig, dm):
""" """
args.router_selector = "lora_soup_router"

args.trainable_param_names = "|.*module_logits_dict.*|.*selector.*"

module = MultiExpertModule(**vars(args)).to("cuda")
module.add_experts_from_library(args.library_id)

Expand Down

0 comments on commit dc2868c

Please sign in to comment.