fix gptq training
Former-commit-id: bec58e3dc575aa4247e563881a456328ee5ef496
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user