8000
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 caff127 commit 67c70ccCopy full SHA for 67c70cc
docs/index.md
@@ -69,6 +69,8 @@ python3 setup.py develop
69
- create_embedding
70
- create_completion
71
- __call__
72
+ - token_bos
73
+ - token_eos
74
show_root_heading: true
75
76
::: llama_cpp.llama_cpp
llama_cpp/llama.py
@@ -446,3 +446,13 @@ def __del__(self):
446
if self.ctx is not None:
447
llama_cpp.llama_free(self.ctx)
448
self.ctx = None
449
+
450
+ @staticmethod
451
+ def token_eos() -> llama_cpp.llama_token:
452
+ """Return the end-of-sequence token."""
453
+ return llama_cpp.llama_token_eos()
454
455
456
+ def token_bos() -> llama_cpp.llama_token:
457
+ """Return the beginning-of-sequence token."""
458
+ return llama_cpp.llama_token_bos()
0 commit comments