mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-11-04 09:32:00 +00:00 
			
		
		
		
	rerank : use [SEP] token instead of [BOS] (#9737)
* rerank : use [SEP] token instead of [BOS] ggml-ci * common : sanity check for non-NULL tokens ggml-ci * ci : adjust rank score interval ggml-ci * ci : add shebang to run.sh ggml-ci
This commit is contained in:
		@@ -40,17 +40,17 @@ struct llama_vocab {
 | 
			
		||||
    id special_bos_id  = 1;
 | 
			
		||||
    id special_eos_id  = 2;
 | 
			
		||||
    id special_unk_id  = 0;
 | 
			
		||||
    id special_sep_id  = -1;
 | 
			
		||||
    id special_pad_id  = -1;
 | 
			
		||||
    id special_cls_id  = -1;
 | 
			
		||||
    id special_mask_id = -1;
 | 
			
		||||
    id special_sep_id  = LLAMA_TOKEN_NULL;
 | 
			
		||||
    id special_pad_id  = LLAMA_TOKEN_NULL;
 | 
			
		||||
    id special_cls_id  = LLAMA_TOKEN_NULL;
 | 
			
		||||
    id special_mask_id = LLAMA_TOKEN_NULL;
 | 
			
		||||
 | 
			
		||||
    id linefeed_id       = 13;
 | 
			
		||||
    id special_prefix_id = -1;
 | 
			
		||||
    id special_suffix_id = -1;
 | 
			
		||||
    id special_middle_id = -1;
 | 
			
		||||
    id special_eot_id    = -1; // TODO: move above after "eos_id", and here add "file separator" token
 | 
			
		||||
    id special_eom_id    = -1;
 | 
			
		||||
    id special_prefix_id = LLAMA_TOKEN_NULL;
 | 
			
		||||
    id special_suffix_id = LLAMA_TOKEN_NULL;
 | 
			
		||||
    id special_middle_id = LLAMA_TOKEN_NULL;
 | 
			
		||||
    id special_eot_id    = LLAMA_TOKEN_NULL; // TODO: move above after "eos_id", and here add "file separator" token
 | 
			
		||||
    id special_eom_id    = LLAMA_TOKEN_NULL;
 | 
			
		||||
 | 
			
		||||
    // set of all tokens that cause "end of generation"
 | 
			
		||||
    std::set<id> special_eog_ids;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user