Skip to content

Commit 1f3096a

Browse files
committed
Updated deprecated llama_token_is_eog -> llama_vocab_is_eog
1 parent d1dbd0c commit 1f3096a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llama_cpp/llama.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1332,7 +1332,7 @@ def logit_bias_processor(
13321332
logits_processor=logits_processor,
13331333
grammar=grammar,
13341334
):
1335-
if llama_cpp.llama_token_is_eog(self._model.model, token):
1335+
if llama_cpp.llama_vocab_is_eog(self._model.model, token):
13361336
text = self.detokenize(completion_tokens, prev_tokens=prompt_tokens)
13371337
finish_reason = "stop"
13381338
break

0 commit comments

Comments
 (0)