model = FastLanguageModel.get_peft_model(
model,
r = 8,
target_modules = "all-linear",
lora_alpha = 32,
lora_dropout = 0,
bias = "none",
use_gradient_checkpointing = "unsloth",
random_state = 3407,
use_rslora = False, # rank stabilized LoRA
loftq_config = None, # LoftQ
)
I was trying to deviate from the notebook as I heard targetting all modules is benefital by replacing:
target_modules = ["q_proj", "k_proj", "v_proj", "o_proj",
"gate_proj", "up_proj", "down_proj",],```
with
`target_modules = "all-linear",`
However this gave the error:
```Traceback (most recent call last):
File "/home/volts/AI/ModelCreation/modelcreation/training/unslothtrainer.py", line 32, in <module>
model = FastLanguageModel.get_peft_model(
File "/home/volts/AI/ModelCreation/.venv/lib/python3.10/site-packages/unsloth/models/llama.py", line 1465, in get_peft_model
assert(module in accepted_modules)
AssertionError```
I'm aware I'm wrong but I'm not sure how, I think I'm getting confused on syntax across multiple articles and would really appreciate some help. Thankyou.