We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c493df commit 5f60250Copy full SHA for 5f60250
Llama3.java
@@ -2045,7 +2045,7 @@ public ChatFormat(Tokenizer tokenizer) {
2045
this.endHeader = specialTokens.get("<|end_header_id|>");
2046
this.endOfTurn = specialTokens.get("<|eot_id|>");
2047
this.endOfText = specialTokens.get("<|end_of_text|>");
2048
- this.endOfMessage = specialTokens.get("<|eom_id|>");
+ this.endOfMessage = specialTokens.getOrDefault("<|eom_id|>", -1); // only in 3.1
2049
}
2050
2051
public Tokenizer getTokenizer() {
0 commit comments