Skip to content

Commit cc55198

Browse files
author
jaime-m-p
committed
debug: print token before exception
1 parent 01c9229 commit cc55198

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llama.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4890,6 +4890,7 @@ static void llm_load_vocab(
48904890
};
48914891

48924892
auto _set_token_attrib = [&] (const std::string & token, llama_token_attrib attrib, bool value) {
4893+
LLAMA_LOG_INFO("_set_token_attrib: token='%s' attrib=%x value=%d\n", token.c_str(), (int)attrib, (int)value);
48934894
_set_tokenid_attrib(vocab.token_to_id.at(token), attrib, value);
48944895
};
48954896

0 commit comments

Comments
 (0)