In finetune.py line 305, when initializing LoraConfig, the parameter target_modules is set to target_modules, but it should likely be lora_target_modules (a typo).
Current code:
config = LoraConfig(
# ... other params ...
target_modules=target_modules, # Possible typo here
)
Suggested fix:
config = LoraConfig(
# ... other params ...
target_modules=lora_target_modules, # Use LoRA-specific target modules
)