Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
goliaro committed Jul 19, 2024
1 parent bac88c6 commit 55eb7ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ops/lora_linear.cc
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ PEFTModelID *FFModel::add_lora_layer(LoraLinearConfig const peft_config) {
0,
true /*create_grad*/);
}
layers.insert(it + 1, peft_layer);
it = layers.insert(it + 1, peft_layer);
++it;
base_layer_to_peft_layer[target_module] = peft_layer;
peft_layer_to_peft_id[peft_layer] = std::vector<PEFTModelID>();
Expand Down

0 comments on commit 55eb7ed

Please sign in to comment.