We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67649a9 commit 9a3b3e8Copy full SHA for 9a3b3e8
1 file changed
xtra_labs/llm_finetune/draft.py
@@ -139,7 +139,6 @@ def replace_linear_with_lora(module):
139
for name, child in module.named_children():
140
if isinstance(child, nn.Linear):
141
setattr(module, name, LoRALinear(child.in_features, child.out_features, child.weight, child.bias))
142
- break
143
else:
144
replace_linear_with_lora(child)
145
0 commit comments