Packages

Fast Hugging Face tokenizer.json, OpenAI tiktoken, and SentencePiece model bindings for Elixir via the IREE tokenizer runtime

Current section

Files

Jump to
iree_tokenizers test fixtures minimal_wordpiece.json
Raw

test/fixtures/minimal_wordpiece.json

{
"version": "1.0",
"model": {
"type": "WordPiece",
"unk_token": "[UNK]",
"continuing_subword_prefix": "##",
"max_input_chars_per_word": 100,
"vocab": {
"[UNK]": 0,
"hello": 1,
"world": 2
}
},
"pre_tokenizer": {
"type": "Whitespace"
},
"decoder": {
"type": "WordPiece",
"prefix": "##",
"cleanup": false
}
}