Skip to content

Teach text-to-Token IDs through fixed BPE merges - #2

Merged
hash-panda merged 1 commit into
mainfrom
ai-tokenization-20261027
Oct 26, 2026
Merged

hash-panda merged 1 commit into
mainfrom
ai-tokenization-20261027

Conversation

@hash-panda

Copy link
Copy Markdown
Contributor

Adds the second reviewed AI learning scene: a bounded character-level BPE demonstration. A fixed English word expands into symbols, applies ranked adjacent merges, maps pieces to teaching IDs and decodes back to the same input. Switching rule versions isolates why character, word and Token counts differ.

Includes five words, source/spec, independent golden split/ID tests, span conservation, reversible decode and deterministic seeking. Learners predict a new word, receive intermediate-step feedback, then verify the result in the scene. The toy vocabulary, omitted byte/space/Chinese processing and lack of a real LLM are explicit.

Validation: npm run check passes including existing 721 planetary constraints. Desktop playback/completion, backward seeking, rule version 0↔3 and the fixed slider event-overwrite bug were checked; 390×844 layout and wrong/right quiz-to-diagram flow were inspected. No measured learner study or physical-device/screen-reader claim. Production record remains pending until the merged deployment is READY.

@vercel

vercel Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
explain3d Building Building Preview Oct 26, 2026 6:46pm UTC

@hash-panda
hash-panda merged commit bb9c7d9 into main Oct 26, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant