Skip to content

Commit

Permalink
add layers_to_transform support
Browse files Browse the repository at this point in the history
  • Loading branch information
xzuyn authored and winglian committed Jan 16, 2024
1 parent c1b741d commit 40ef185
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/axolotl/utils/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,7 @@ def load_lora(model, cfg, inference=False):
r=cfg.lora_r,
lora_alpha=cfg.lora_alpha,
target_modules=lora_target_modules,
layers_to_transform=cfg.layers_to_transform,
lora_dropout=cfg.lora_dropout,
fan_in_fan_out=cfg.lora_fan_in_fan_out,
modules_to_save=cfg.lora_modules_to_save if cfg.lora_modules_to_save else None,
Expand Down

0 comments on commit 40ef185

Please sign in to comment.