@@ -2768,26 +2768,26 @@ void llama_vocab::impl::print_info() const {
27682768 LLAMA_LOG_INFO (" %s: n_merges = %u\n " , __func__, (uint32_t ) bpe_ranks.size ());
27692769
27702770 // special tokens
2771- if (special_bos_id != LLAMA_TOKEN_NULL) { LLAMA_LOG_INFO ( " %s: BOS token = %d '%s'\n " , __func__, special_bos_id, id_to_token[ special_bos_id] .text .c_str () ); }
2772- if (special_eos_id != LLAMA_TOKEN_NULL) { LLAMA_LOG_INFO ( " %s: EOS token = %d '%s'\n " , __func__, special_eos_id, id_to_token[ special_eos_id] .text .c_str () ); }
2773- if (special_eot_id != LLAMA_TOKEN_NULL) { LLAMA_LOG_INFO ( " %s: EOT token = %d '%s'\n " , __func__, special_eot_id, id_to_token[ special_eot_id] .text .c_str () ); }
2774- if (special_eom_id != LLAMA_TOKEN_NULL) { LLAMA_LOG_INFO ( " %s: EOM token = %d '%s'\n " , __func__, special_eom_id, id_to_token[ special_eom_id] .text .c_str () ); }
2775- if (special_unk_id != LLAMA_TOKEN_NULL) { LLAMA_LOG_INFO ( " %s: UNK token = %d '%s'\n " , __func__, special_unk_id, id_to_token[ special_unk_id] .text .c_str () ); }
2776- if (special_sep_id != LLAMA_TOKEN_NULL) { LLAMA_LOG_INFO ( " %s: SEP token = %d '%s'\n " , __func__, special_sep_id, id_to_token[ special_sep_id] .text .c_str () ); }
2777- if (special_pad_id != LLAMA_TOKEN_NULL) { LLAMA_LOG_INFO ( " %s: PAD token = %d '%s'\n " , __func__, special_pad_id, id_to_token[ special_pad_id] .text .c_str () ); }
2778- if (special_mask_id != LLAMA_TOKEN_NULL) { LLAMA_LOG_INFO ( " %s: MASK token = %d '%s'\n " , __func__, special_mask_id, id_to_token[ special_mask_id] .text .c_str () ); }
2779-
2780- if (linefeed_id != LLAMA_TOKEN_NULL) { LLAMA_LOG_INFO ( " %s: LF token = %d '%s'\n " , __func__, linefeed_id, id_to_token[ linefeed_id] .text .c_str () ); }
2781-
2782- if (special_fim_pre_id != LLAMA_TOKEN_NULL) { LLAMA_LOG_INFO ( " %s: FIM PRE token = %d '%s'\n " , __func__, special_fim_pre_id, id_to_token[ special_fim_pre_id] .text .c_str () ); }
2783- if (special_fim_suf_id != LLAMA_TOKEN_NULL) { LLAMA_LOG_INFO ( " %s: FIM SUF token = %d '%s'\n " , __func__, special_fim_suf_id, id_to_token[ special_fim_suf_id] .text .c_str () ); }
2784- if (special_fim_mid_id != LLAMA_TOKEN_NULL) { LLAMA_LOG_INFO ( " %s: FIM MID token = %d '%s'\n " , __func__, special_fim_mid_id, id_to_token[ special_fim_mid_id] .text .c_str () ); }
2785- if (special_fim_pad_id != LLAMA_TOKEN_NULL) { LLAMA_LOG_INFO ( " %s: FIM PAD token = %d '%s'\n " , __func__, special_fim_pad_id, id_to_token[ special_fim_pad_id] .text .c_str () ); }
2786- if (special_fim_rep_id != LLAMA_TOKEN_NULL) { LLAMA_LOG_INFO ( " %s: FIM REP token = %d '%s'\n " , __func__, special_fim_rep_id, id_to_token[ special_fim_rep_id] .text .c_str () ); }
2787- if (special_fim_sep_id != LLAMA_TOKEN_NULL) { LLAMA_LOG_INFO ( " %s: FIM SEP token = %d '%s'\n " , __func__, special_fim_sep_id, id_to_token[ special_fim_sep_id] .text .c_str () ); }
2771+ if (special_bos_id != LLAMA_TOKEN_NULL) { LLAMA_LOG_INFO ( " %s: BOS token = %d '%s'\n " , __func__, special_bos_id, id_to_token. at ( special_bos_id) .text .c_str () ); }
2772+ if (special_eos_id != LLAMA_TOKEN_NULL) { LLAMA_LOG_INFO ( " %s: EOS token = %d '%s'\n " , __func__, special_eos_id, id_to_token. at ( special_eos_id) .text .c_str () ); }
2773+ if (special_eot_id != LLAMA_TOKEN_NULL) { LLAMA_LOG_INFO ( " %s: EOT token = %d '%s'\n " , __func__, special_eot_id, id_to_token. at ( special_eot_id) .text .c_str () ); }
2774+ if (special_eom_id != LLAMA_TOKEN_NULL) { LLAMA_LOG_INFO ( " %s: EOM token = %d '%s'\n " , __func__, special_eom_id, id_to_token. at ( special_eom_id) .text .c_str () ); }
2775+ if (special_unk_id != LLAMA_TOKEN_NULL) { LLAMA_LOG_INFO ( " %s: UNK token = %d '%s'\n " , __func__, special_unk_id, id_to_token. at ( special_unk_id) .text .c_str () ); }
2776+ if (special_sep_id != LLAMA_TOKEN_NULL) { LLAMA_LOG_INFO ( " %s: SEP token = %d '%s'\n " , __func__, special_sep_id, id_to_token. at ( special_sep_id) .text .c_str () ); }
2777+ if (special_pad_id != LLAMA_TOKEN_NULL) { LLAMA_LOG_INFO ( " %s: PAD token = %d '%s'\n " , __func__, special_pad_id, id_to_token. at ( special_pad_id) .text .c_str () ); }
2778+ if (special_mask_id != LLAMA_TOKEN_NULL) { LLAMA_LOG_INFO ( " %s: MASK token = %d '%s'\n " , __func__, special_mask_id, id_to_token. at ( special_mask_id) .text .c_str () ); }
2779+
2780+ if (linefeed_id != LLAMA_TOKEN_NULL) { LLAMA_LOG_INFO ( " %s: LF token = %d '%s'\n " , __func__, linefeed_id, id_to_token. at ( linefeed_id) .text .c_str () ); }
2781+
2782+ if (special_fim_pre_id != LLAMA_TOKEN_NULL) { LLAMA_LOG_INFO ( " %s: FIM PRE token = %d '%s'\n " , __func__, special_fim_pre_id, id_to_token. at ( special_fim_pre_id) .text .c_str () ); }
2783+ if (special_fim_suf_id != LLAMA_TOKEN_NULL) { LLAMA_LOG_INFO ( " %s: FIM SUF token = %d '%s'\n " , __func__, special_fim_suf_id, id_to_token. at ( special_fim_suf_id) .text .c_str () ); }
2784+ if (special_fim_mid_id != LLAMA_TOKEN_NULL) { LLAMA_LOG_INFO ( " %s: FIM MID token = %d '%s'\n " , __func__, special_fim_mid_id, id_to_token. at ( special_fim_mid_id) .text .c_str () ); }
2785+ if (special_fim_pad_id != LLAMA_TOKEN_NULL) { LLAMA_LOG_INFO ( " %s: FIM PAD token = %d '%s'\n " , __func__, special_fim_pad_id, id_to_token. at ( special_fim_pad_id) .text .c_str () ); }
2786+ if (special_fim_rep_id != LLAMA_TOKEN_NULL) { LLAMA_LOG_INFO ( " %s: FIM REP token = %d '%s'\n " , __func__, special_fim_rep_id, id_to_token. at ( special_fim_rep_id) .text .c_str () ); }
2787+ if (special_fim_sep_id != LLAMA_TOKEN_NULL) { LLAMA_LOG_INFO ( " %s: FIM SEP token = %d '%s'\n " , __func__, special_fim_sep_id, id_to_token. at ( special_fim_sep_id) .text .c_str () ); }
27882788
27892789 for (const auto & id : special_eog_ids) {
2790- LLAMA_LOG_INFO ( " %s: EOG token = %d '%s'\n " , __func__, id, id_to_token[id] .text .c_str () );
2790+ LLAMA_LOG_INFO ( " %s: EOG token = %d '%s'\n " , __func__, id, id_to_token. at (id) .text .c_str () );
27912791 }
27922792
27932793 LLAMA_LOG_INFO (" %s: max token length = %d\n " , __func__, max_token_len);
0 commit comments