mirror of
				https://github.com/hiyouga/LLaMA-Factory.git
				synced 2025-11-04 18:02:19 +08:00 
			
		
		
		
	[model] add lora dropout to unsloth (#8548)
Co-authored-by: viyer <vivek_iyer2@apple.com>
This commit is contained in:
		
							parent
							
								
									16f13d304b
								
							
						
					
					
						commit
						0686206020
					
				@ -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,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user