[model] add lora dropout to unsloth (#8548)

Co-authored-by: viyer <vivek_iyer2@apple.com>
This commit is contained in:
Vivek Iyer 2025-07-04 02:56:36 -04:00 committed by GitHub
parent 8e7727f4ee
commit 62c6943699
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,6 +40,7 @@ def _get_unsloth_kwargs(
"load_in_4bit": model_args.quantization_bit == 4,
"token": model_args.hf_hub_token,
"full_finetuning": finetuning_args.finetuning_type == "full",
"lora_dropout": finetuning_args.lora_dropout,
"device_map": {"": get_current_device()},
"rope_scaling": getattr(config, "rope_scaling", None),
"fix_tokenizer": False,