Skip to content

feat(ml): implement BPE and WordPiece tokenizers with tokenizer.json … - #17

Merged
Lotargo merged 1 commit into
mainfrom
feature-ml-tokenizers-4952407479940899025
Mar 11, 2026
Merged

Lotargo merged 1 commit into
mainfrom
feature-ml-tokenizers-4952407479940899025

Conversation

@Lotargo

@Lotargo Lotargo commented Mar 11, 2026

Copy link
Copy Markdown
Owner

…parsing

Implemented custom C++ tokenizers (BPE and WordPiece) as outlined in the roadmap's Embedded AI module. Both tokenizers support loading their respective vocabularies and configurations (like merges for BPE and max input chars for WordPiece) from a HuggingFace-compatible tokenizer.json file. Tests and benchmarks are included, utilizing nlohmann-json via vcpkg for robust JSON parsing. Roadmap updated.

…parsing

Implemented custom C++ tokenizers (BPE and WordPiece) as outlined in the
roadmap's Embedded AI module. Both tokenizers support loading their
respective vocabularies and configurations (like merges for BPE and max
input chars for WordPiece) from a HuggingFace-compatible
`tokenizer.json` file. Tests and benchmarks are included, utilizing
`nlohmann-json` via vcpkg for robust JSON parsing. Roadmap updated.
@Lotargo
Lotargo merged commit d007bec into main Mar 11, 2026
0 of 4 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