Update parser.py

This commit is contained in:
hoshi-hiyouga 2024-06-16 02:57:00 +08:00 committed by GitHub
parent 0a2ec5fe20
commit 29c1f31baa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -90,8 +90,8 @@ def _verify_model_args(model_args: "ModelArguments", finetuning_args: "Finetunin
if finetuning_args.finetuning_type != "lora":
raise ValueError("Quantization is only compatible with the LoRA method.")
if finetuning_args.use_pissa:
raise ValueError("Please use scripts/pissa_init.py for quantized PiSSA.")
if finetuning_args.pissa_init:
raise ValueError("Please use scripts/pissa_init.py to initialize PiSSA for a quantized model.")
if model_args.resize_vocab:
raise ValueError("Cannot resize embedding layers of a quantized model.")