Skip to main content
Challenges BPE: decoding tokenizer output
Artificial Intelligence Easy LLM tokenization: a GPT-2 style byte-level BPE vocabulary and decoding token IDs Solves: 4

BPE: decoding tokenizer output

Author: CyberSamSU
Points
15

In a laboratory, the diagnostic response of a small language model was recorded as token IDs. You are given the bpe_model.zip archive, which contains two files: tokenizer.json (a GPT-2 byte-level BPE vocabulary in the HuggingFace Fast Tokenizer format: model.vocab and model.merges) and output_ids.txt (token IDs separated by spaces).

In a GPT-2 style byte-level BPE tokenizer, each raw byte (0..255) is first mapped through the bytes_to_unicode() table to a visible Unicode character: printable ASCII (0x21..0x7E) and Latin-1 (0xA1..0xAC, 0xAE..0xFF) characters stay as they are, while the remaining 68 bytes (0x00..0x20, 0x7F..0xA0, 0xAD) are mapped in sequence to characters starting from U+0100 (256) (for example, the space 0x20 → Ġ (U+0120), the newline 0x0A → Ċ (U+010A)).

Note that the added_tokens list contains decoy (canary) special tokens left for a security scanner. To obtain the real message, convert the IDs in output_ids.txt to token strings through model.vocab, join them, apply the inverse of bytes_to_unicode and find the BAYROQ{BPE_DEKOD_...} flag inside the UTF-8 text (the last 16 characters are lowercase hex).

Attached files
bpe_model.zip Log in to download
Hints 3
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −1 pts Log in
Hint 2 −3 pts Log in
Hint 3 −4 pts Log in
To submit a flag, log in.

First solvers

1. Mirjaxon Qaxxarov 24.11.2026
2. Asmaa Mottery 25.11.2026
3. Odam 25.11.2026
4. Doston Allayarov 28.11.2026