mirror of
				https://github.com/hiyouga/LLaMA-Factory.git
				synced 2025-11-04 18:02:19 +08:00 
			
		
		
		
	remove dup template
Former-commit-id: 5fec12203b24608af4d4993f44a657eb5a0348e5
This commit is contained in:
		
							parent
							
								
									f29c1ac6e5
								
							
						
					
					
						commit
						4513a2cc75
					
				@ -511,25 +511,6 @@ _register_template(
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
_register_template(
 | 
			
		||||
    name="chatglm3_system",
 | 
			
		||||
    format_user=StringFormatter(slots=[{"token": "<|user|>"}, "\n", "{{content}}", {"token": "<|assistant|>"}]),
 | 
			
		||||
    format_assistant=StringFormatter(slots=["\n", "{{content}}"]),
 | 
			
		||||
    format_system=StringFormatter(slots=[{"token": "<|system|>"}, "\n", "{{content}}"]),
 | 
			
		||||
    format_function=FunctionFormatter(slots=["{{name}}\n{{arguments}}"]),
 | 
			
		||||
    format_observation=StringFormatter(
 | 
			
		||||
        slots=[{"token": "<|observation|>"}, "\n", "{{content}}", {"token": "<|assistant|>"}]
 | 
			
		||||
    ),
 | 
			
		||||
    format_prefix=EmptyFormatter(slots=[{"token": "[gMASK]"}, {"token": "sop"}]),
 | 
			
		||||
    default_system=(
 | 
			
		||||
        "You are ChatGLM3, a large language model trained by Zhipu.AI. "
 | 
			
		||||
        "Follow the user's instructions carefully. Respond using markdown."
 | 
			
		||||
    ),
 | 
			
		||||
    stop_words=["<|user|>", "<|observation|>"],
 | 
			
		||||
    efficient_eos=True,
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
_register_template(
 | 
			
		||||
    name="chatml",
 | 
			
		||||
    format_user=StringFormatter(slots=["<|im_start|>user\n{{content}}<|im_end|>\n<|im_start|>assistant\n"]),
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user