Package: rtiktoken 0.11.0.3

David Zimmermann-Kollenda
rtiktoken: A Byte-Pair-Encoding (BPE) Tokenizer for OpenAI's Large Language Models
A thin wrapper around the tiktoken-rs crate, allowing to encode text into Byte-Pair-Encoding (BPE) tokens and decode tokens back to text. This is useful to understand how Large Language Models (LLMs) perceive text.
Authors:
rtiktoken_0.11.0.3.tar.gz
rtiktoken_0.11.0.3.zip(r-4.7-x86_64)rtiktoken_0.11.0.3.zip(r-4.7-arm64)rtiktoken_0.11.0.3.zip(r-4.6-x86_64)rtiktoken_0.11.0.3.zip(r-4.6-arm64)rtiktoken_0.11.0.3.zip(r-4.5-x86_64)
rtiktoken_0.11.0.3.tgz(r-4.6-x86_64)rtiktoken_0.11.0.3.tgz(r-4.6-arm64)rtiktoken_0.11.0.3.tgz(r-4.5-x86_64)rtiktoken_0.11.0.3.tgz(r-4.5-arm64)
rtiktoken_0.11.0.3.tar.gz(r-4.7-arm64)rtiktoken_0.11.0.3.tar.gz(r-4.7-x86_64)rtiktoken_0.11.0.3.tar.gz(r-4.6-arm64)rtiktoken_0.11.0.3.tar.gz(r-4.6-x86_64)
rtiktoken_0.11.0.3.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
rtiktoken/json (API)
| # Install 'rtiktoken' in R: |
| install.packages('rtiktoken', repos = c('https://davzim.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/davzim/rtiktoken/issues
Pkgdown/docs site:https://davzim.github.io
bpeopenairusttokenizationcargo
Last updated from:73ffc2d6f3. Checks:15 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | OK | 112 | ||
| linux-devel-x86_64 | OK | 125 | ||
| source / vignettes | OK | 188 | ||
| linux-release-arm64 | OK | 142 | ||
| linux-release-x86_64 | OK | 168 | ||
| macos-release-arm64 | OK | 216 | ||
| macos-release-x86_64 | OK | 330 | ||
| macos-oldrel-arm64 | OK | 132 | ||
| macos-oldrel-x86_64 | OK | 338 | ||
| windows-devel-arm64 | OK | 412 | ||
| windows-devel-x86_64 | OK | 181 | ||
| windows-release-arm64 | OK | 407 | ||
| windows-release-x86_64 | OK | 143 | ||
| windows-oldrel-x86_64 | OK | 162 | ||
| wasm-release | OK | 114 |
Exports:decode_tokensget_token_countget_tokensmodel_to_tokenizer
Dependencies:
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Decodes tokens back to text | decode_tokens |
| Returns the number of tokens in a text | get_token_count |
| Converts text to tokens | get_tokens |
| Gets the name of the tokenizer used by a model | model_to_tokenizer |
