mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-09-01 04:14:38 +08:00
Pass use_dora parameter to linear_to_lora_layers (#885)
This commit is contained in:
@@ -166,7 +166,7 @@ def train_model(
|
||||
model.freeze()
|
||||
|
||||
# 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.
|
||||
if args.resume_adapter_file is not None:
|
||||
|
Reference in New Issue
Block a user