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 sentencepiece_stream_split_minimal.json
Raw

test/fixtures/sentencepiece_stream_split_minimal.json

{
"normalizer": {
"type": "Sequence",
"normalizers": [
{
"type": "Prepend",
"prepend": "▁"
},
{
"type": "Replace",
"pattern": {
"String": " "
},
"content": "▁"
}
]
},
"model": {
"type": "BPE",
"vocab": {
"▁h": 0,
"ello": 1,
"▁hello": 2
},
"merges": [
"▁h ello"
]
}
}