mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-06-24 17:31:18 +08:00
Fixing "NameError: name 'resume_adapter_file' is not defined" (#817)
args. is missing from resume_adapter_file so the name is not defined.
This commit is contained in:
parent
43d6deb3c1
commit
4872727f14
@ -170,7 +170,7 @@ def train_model(
|
|||||||
|
|
||||||
# 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:
|
||||||
print(f"Loading pretrained adapters from {resume_adapter_file}")
|
print(f"Loading pretrained adapters from {args.resume_adapter_file}")
|
||||||
model.load_weights(args.resume_adapter_file, strict=False)
|
model.load_weights(args.resume_adapter_file, strict=False)
|
||||||
|
|
||||||
print_trainable_parameters(model)
|
print_trainable_parameters(model)
|
||||||
|
Loading…
Reference in New Issue
Block a user