Packages
Pure-Elixir TikToken-style byte-level BPE tokenizer, with helpers for Kimi K2 encodings.
Current section
Files
Jump to
Current section
Files
lib/tiktoken_ex.ex
defmodule TiktokenEx do
@moduledoc """
Pure-Elixir implementation of TikToken-style byte-level BPE encoding.
This project targets the subset needed to match MoonshotAI Kimi tokenizers
that ship a `tiktoken.model` file and a TikToken-compatible `pat_str`.
"""
end