TIThe Inference
Inference & Models·Core · 4–8h

Build your own tokenizer

Encode and decode text exactly like the models do.

What you'll build

A BPE encoder/decoder matching tiktoken r50k_base.