mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-09-05 16:34:34 +08:00
fix loading adapters
This commit is contained in:
@@ -394,7 +394,7 @@ if __name__ == "__main__":
|
|||||||
f"Adapter file {args.adapter_file} missing. "
|
f"Adapter file {args.adapter_file} missing. "
|
||||||
"Use --train to learn and save the adapters.npz."
|
"Use --train to learn and save the adapters.npz."
|
||||||
)
|
)
|
||||||
model.load_weights(args.adapter_file)
|
model.load_weights(args.adapter_file, strict=False)
|
||||||
|
|
||||||
if args.test:
|
if args.test:
|
||||||
print("Testing")
|
print("Testing")
|
||||||
|
Reference in New Issue
Block a user