Categories: None [Edit]
ruby_llm-tokenizer
Pure-Ruby facade over Hugging Face `tokenizers`, OpenAI `tiktoken_ruby`, and
SentencePiece bindings that maps ruby_llm model identifiers (gpt-4o,
llama-3, mistral, ...) to the correct tokenizer and exposes a small API for
counting, analyzing, and truncating text against a model's context window.
Includes an opt-in approximation backend for models with no published
tokenizer (Claude).
Total
Ranking: 189,680 of 197,744
Downloads: 1,031
Daily
Ranking: 19,511 of 197,724
Downloads: 18
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 196,723 | 290 | ruby_llm-toolbox |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 2,698 | 7,777,460 | tiktoken_ruby |
| 4,933 | 1,752,231 | tokenizers |
| 166,478 | 3,262 | sentencepiece |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | washu214 |