mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-06-24 09:21:18 +08:00
Pass use_dora parameter to linear_to_lora_layers (#885)
This commit is contained in:
parent
fbe3247772
commit
8bf397e450
@ -166,7 +166,7 @@ def train_model(
|
|||||||
model.freeze()
|
model.freeze()
|
||||||
|
|
||||||
# Convert linear layers to lora layers and unfreeze in the process
|
# Convert linear layers to lora layers and unfreeze in the process
|
||||||
linear_to_lora_layers(model, args.lora_layers, args.lora_parameters)
|
linear_to_lora_layers(model, args.lora_layers, args.lora_parameters, args.use_dora)
|
||||||
|
|
||||||
# Resume training the given adapters.
|
# Resume training the given adapters.
|
||||||
if args.resume_adapter_file is not None:
|
if args.resume_adapter_file is not None:
|
||||||
|
Loading…
Reference in New Issue
Block a user