modules_to_save=modules_to_save, bias="none", task_type="CAUSAL_LM", ) model = get_peft_model(model, config) model.print_trainable_parameters() # Be more transparent about the % of trainable params. print(model.get_nb_trainable_parameters()) print(model.num_parameters(only_trainable=...