← All work

Interactive BPE Tokenizer

03 / 2024

A full-stack tool that makes subword tokenisation steppable and inspectable, one merge at a time.

01

Uploaded corpus

02

Merge table

03

Encoder (Python)

04

Steppable inspector

Each merge is a step the user can walk forward and back through.
Type
Personal project
My role
Sole engineer
Stack
PythonDjango REST FrameworkReact

Byte pair encoding sits underneath every modern language model, but the merge process is usually invisible. This makes it steppable.

I defined the REST API contract from scratch, implemented the encoder in Python behind Django REST Framework, and iterated the React interface until the merge process was legible to someone seeing it for the first time.

The interface work was the harder half. Getting a first-time user to understand what a merge does, without explaining it to them, took more revisions than the encoder did.

Next project

Hotel Booking Management System