mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-11-03 09:22:01 +00:00 
			
		
		
		
	llama : the WPM vocabs use the CLS token as BOS (#10930)
* llama : the WPM vocabs use the CLS token as BOS ggml-ci * llama : add comment
This commit is contained in:
		@@ -1657,7 +1657,7 @@ bool llama_token_is_control_impl(const struct llama_vocab & vocab, llama_token t
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
llama_token llama_token_bos_impl(const struct llama_vocab & vocab) {
 | 
			
		||||
    return vocab.special_bos_id;
 | 
			
		||||
    return vocab.type != LLAMA_VOCAB_TYPE_WPM ? vocab.special_bos_id : vocab.special_cls_id;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
llama_token llama_token_eos_impl(const struct llama_vocab & vocab) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user