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:
Robin Glauser 2024-06-05 19:07:31 +02:00 committed by GitHub
parent 43d6deb3c1
commit 4872727f14
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -170,7 +170,7 @@ def train_model(
# Resume training the given adapters.
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)
print_trainable_parameters(model)