mirror of
				https://github.com/hiyouga/LLaMA-Factory.git
				synced 2025-11-04 18:02:19 +08:00 
			
		
		
		
	[script] add seed args (#7058)
* add seed args * add seed args * update seed Former-commit-id: eb9770b2c01a840b6a0ac119210c22bdbb81e18b
This commit is contained in:
		
							parent
							
								
									2986bef530
								
							
						
					
					
						commit
						0f54a78144
					
				@ -45,6 +45,7 @@ def vllm_infer(
 | 
			
		||||
    top_k: int = 50,
 | 
			
		||||
    max_new_tokens: int = 1024,
 | 
			
		||||
    repetition_penalty: float = 1.0,
 | 
			
		||||
    seed: int = None,
 | 
			
		||||
    pipeline_parallel_size: int = 1,
 | 
			
		||||
    image_max_pixels: int = 768 * 768,
 | 
			
		||||
    image_min_pixels: int = 32 * 32,
 | 
			
		||||
@ -108,6 +109,7 @@ def vllm_infer(
 | 
			
		||||
        stop_token_ids=template_obj.get_stop_token_ids(tokenizer),
 | 
			
		||||
        max_tokens=generating_args.max_new_tokens,
 | 
			
		||||
        skip_special_tokens=False,
 | 
			
		||||
        seed=seed,
 | 
			
		||||
    )
 | 
			
		||||
    if model_args.adapter_name_or_path is not None:
 | 
			
		||||
        lora_request = LoRARequest("default", 1, model_args.adapter_name_or_path[0])
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user