fix gptq training

Former-commit-id: bec58e3dc575aa4247e563881a456328ee5ef496
This commit is contained in:
hiyouga
2023-12-02 00:27:15 +08:00
parent 679bd3ab30
commit 5f572cbd77
3 changed files with 12 additions and 10 deletions

View File

@@ -87,7 +87,7 @@ def init_adapter(
if is_trainable and checkpoint_to_resume is None: # create new lora weights while training
if len(finetuning_args.lora_target) == 1 and finetuning_args.lora_target[0] == "all":
target_modules = find_all_linear_modules(model, model_args.quantization_bit)
target_modules = find_all_linear_modules(model)
else:
target_modules = finetuning_args.lora_target