APR-NEU-008 // apr-v2-vocab

Byte-Level BPE Tokenizer

Deterministic UTF-8 byte-pair encoder/decoder compiled into an immutable .apr vocabulary table with O(n log n) merge heap.

Byte-Level BPE Tokenizer architecture poster

Runtime: Loading .apr...

Inference: --

Artifact Format
apr-v2-vocab
Parameters
50.3K merge rules
Family
neural

CLI Execution & Inspection

$ apr run bpe-tokenizer --text "Sovereign AI Stack"
$ apr inspect bpe-tokenizer.apr --verify-sha256

Mathematical Formulation

Greedy Pair Merge

(a*,b*)=arg min(a,b)rank(a,b)

Numerical Contract

Lossless round-trip decode(encode(s)) == s for 100% of valid UTF-8 strings.