rtiktoken

A Byte-Pair-Encoding (BPE) Tokenizer for OpenAI's Large Language Models

CRAN Package

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.

  • Version0.0.6
  • R versionunknown
  • LicenseMIT
  • Needs compilation?Yes
  • Last release11/06/2024

Documentation


Team


Insights

Last 30 days

This package has been downloaded 502 times in the last 30 days. More downloads than an obscure whitepaper, but not enough to bring down any servers. A solid effort! The following heatmap shows the distribution of downloads per day. Yesterday, it was downloaded 43 times.

Sun
Mon
Tue
Wed
Thu
Fri
Sat
0 downloadsFeb 9, 2025
0 downloadsFeb 10, 2025
0 downloadsFeb 11, 2025
7 downloadsFeb 12, 2025
5 downloadsFeb 13, 2025
46 downloadsFeb 14, 2025
2 downloadsFeb 15, 2025
8 downloadsFeb 16, 2025
44 downloadsFeb 17, 2025
11 downloadsFeb 18, 2025
11 downloadsFeb 19, 2025
47 downloadsFeb 20, 2025
4 downloadsFeb 21, 2025
2 downloadsFeb 22, 2025
43 downloadsFeb 23, 2025
4 downloadsFeb 24, 2025
6 downloadsFeb 25, 2025
42 downloadsFeb 26, 2025
1 downloadsFeb 27, 2025
4 downloadsFeb 28, 2025
48 downloadsMar 1, 2025
4 downloadsMar 2, 2025
3 downloadsMar 3, 2025
42 downloadsMar 4, 2025
6 downloadsMar 5, 2025
8 downloadsMar 6, 2025
5 downloadsMar 7, 2025
40 downloadsMar 8, 2025
1 downloadsMar 9, 2025
2 downloadsMar 10, 2025
5 downloadsMar 11, 2025
8 downloadsMar 12, 2025
43 downloadsMar 13, 2025
0 downloadsMar 14, 2025
0 downloadsMar 15, 2025
1
48

The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.

Last 365 days

This package has been downloaded 2,044 times in the last 365 days. Now we’re talking! This work is officially 'heard of in academic circles', just like those wild research papers on synthetic bananas. The day with the most downloads was Feb 08, 2025 with 50 downloads.

The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.

Data provided by CRAN


Binaries


Dependencies

  • Suggests1 package