Implement a byte-level BPE end-to-end (train ++ encode ++ decode) over arbitrary UTF-8 b

Tokenization and Embeddings4 / 4

Chapter 024 / 4

Tokenization and Embeddings

Implement a byte-level BPE end-to-end (train ++ encode ++ decode) over arbitrary UTF-8 b

Super-hard

Implement a byte-level BPE end-to-end (train ++ encode ++ decode) over arbitrary UTF-8 bytes.

Target interface
class ByteBPE

Complete the starter code in the editor. Any correct approach is accepted.

Hints0 / 2
Reference solution
Your own code stays in the editor.