Skip to content

Commit

Permalink
fix layer_replication arg to peft (#1446)
Browse files Browse the repository at this point in the history
  • Loading branch information
winglian authored Mar 27, 2024
1 parent 47627a9 commit c63c913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/axolotl/utils/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@ def load_lora(model, cfg, inference=False, config_only=False):
if cfg.peft_use_rslora:
lora_config_kwargs["use_rslora"] = cfg.peft_use_rslora
if cfg.peft_layer_replication:
lora_config_kwargs["peft_layer_replication"] = cfg.peft_layer_replication
lora_config_kwargs["layer_replication"] = cfg.peft_layer_replication

lora_config = LoraConfig(
r=cfg.lora_r,
Expand Down

0 comments on commit c63c913

Please sign in to comment.