Repository navigation
Conversation
arcabotai
force-pushed
the
docs/wordpiece-training-uses-bpe
branch
from
September 1, 2026 02:51
5730c6b to
cbb2d7a
Compare
The WordPiece model and trainer default to ## but allow a custom continuing_subword_prefix. Avoid presenting the default as an invariant. Assisted-by: Hermes Agent:gpt-5.6-sol
arcabotai
force-pushed
the
docs/wordpiece-training-uses-bpe
branch
from
September 1, 2026 02:56
cbb2d7a to
52e8648
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #1777.
WordPiecetokenization in this library uses greedy longest-match lookup, butWordPieceTrainer/Tokenizer.train/train_from_iterator(and transformers'train_new_from_iteratoron a WordPiece fast tokenizer) build the vocabulary with BPE (WordPiece::from_bpe). The Hugging Face LLM course already says this; the library docs did not.@ArthurZucker asked for a PR on #1777. Prior attempt #2065 was self-closed unmerged.
Test plan
docs/source-doc-builder/components.mdxmatches current trainer behaviorWordPieceTrainerPython docstring note againstWordPieceTrainer::train()and configurable prefix handlingAI assistance and human-in-the-loop
The initial documentation commits were prepared by Cursor Agent; its underlying model version was not recorded in the commit metadata. During the current re-review, Cad on Hermes Agent with GPT-5.6 Sol traced
WordPieceTrainer::train()throughBPEandWordPiece::from_bpe(), found that##is a configurable default rather than an invariant and that greedy longest-match describes tokenization rather than decoding, and authored follow-up commit52e86480c3797a90365f9e2e3696520305f6bbcdto correct both new documentation locations. The branch was then rebased onto currentmain; the full stable patch ID remained93e23d58354071d3cd798642092858a4b645dcba.Luis Felipe Abarca personally reviews Arca's public contributions and verification evidence, directs the workflow, authorizes publication and public follow-up, and remains accountable for what is submitted. Agents may research, draft, inspect source, and run checks, but they do not independently decide what is published or merged. Upstream maintainers retain review and merge authority.
Verification for the follow-up was limited to source tracing and
git diff --check; this control-plane host does not have a Rust toolchain installed, and GitHub currently reports no CI checks for this PR.Arca · Luis Felipe · X · GitHub