feat(tokenization): refactor and improve tokenization support - #685
Draft
binaryaaron wants to merge 18 commits into
Draft
feat(tokenization): refactor and improve tokenization support#685binaryaaron wants to merge 18 commits into
binaryaaron wants to merge 18 commits into
Conversation
Contributor
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
binaryaaron
force-pushed
the
feature/full-tokenizer
branch
from
August 3, 2026 18:49
d551849 to
63c7362
Compare
binaryaaron
changed the base branch from
main
to
agonzales/timeseries-prefill-serialization
August 3, 2026 18:50
binaryaaron
force-pushed
the
feature/full-tokenizer
branch
from
August 4, 2026 16:52
e5f0823 to
0845a30
Compare
binaryaaron
force-pushed
the
feature/full-tokenizer
branch
from
August 4, 2026 17:01
0845a30 to
b6cffeb
Compare
binaryaaron
changed the base branch from
agonzales/timeseries-prefill-serialization
to
main
August 4, 2026 17:01
binaryaaron
force-pushed
the
feature/full-tokenizer
branch
from
August 4, 2026 17:09
b6cffeb to
5711f66
Compare
| for count in range(10): | ||
| tokenization.capacity_for(prompt, context_limit=1000, sequence_count=count) | ||
|
|
||
| assert calls == 1 |
|
|
||
| class _PromptConfig(Protocol): | ||
| @property | ||
| def template(self) -> str: ... |
| def template(self) -> str: ... | ||
|
|
||
| @property | ||
| def add_bos_token_to_prompt(self) -> bool: ... |
| def add_bos_token_to_prompt(self) -> bool: ... | ||
|
|
||
| @property | ||
| def add_eos_token_to_prompt(self) -> bool: ... |
| def add_eos_token_to_prompt(self) -> bool: ... | ||
|
|
||
| @property | ||
| def bos_token(self) -> str: ... |
| def bos_token(self) -> str: ... | ||
|
|
||
| @property | ||
| def bos_token_id(self) -> int: ... |
| def bos_token_id(self) -> int: ... | ||
|
|
||
| @property | ||
| def eos_token(self) -> str: ... |
| def eos_token(self) -> str: ... | ||
|
|
||
| @property | ||
| def eos_token_id(self) -> int: ... |
|
|
||
| class _Metadata(Protocol): | ||
| @property | ||
| def prompt_config(self) -> _PromptConfig: ... |
binaryaaron
force-pushed
the
feature/full-tokenizer
branch
from
August 10, 2026 13:35
0408f2d to
358bb2b
Compare
Comment on lines
+272
to
+275
| def resolve_masks( | ||
| sequences: Sequence[Sequence[int]], | ||
| attention_masks: Sequence[Sequence[int]] | None, | ||
| ) -> tuple[tuple[int, ...], ...]: |
Signed-off-by: Aaron Gonzales <aagonzales@nvidia.com>
Signed-off-by: Aaron Gonzales <aagonzales@nvidia.com>
Signed-off-by: Aaron Gonzales <aagonzales@nvidia.com>
Signed-off-by: Aaron Gonzales <aagonzales@nvidia.com>
Signed-off-by: Aaron Gonzales <aagonzales@nvidia.com>
Signed-off-by: Aaron Gonzales <aagonzales@nvidia.com>
Signed-off-by: Aaron Gonzales <aagonzales@nvidia.com>
Signed-off-by: Aaron Gonzales <aagonzales@nvidia.com>
Signed-off-by: Aaron Gonzales <aagonzales@nvidia.com>
Signed-off-by: Aaron Gonzales <aagonzales@nvidia.com>
Signed-off-by: Aaron Gonzales <aagonzales@nvidia.com>
Signed-off-by: Aaron Gonzales <aagonzales@nvidia.com>
Signed-off-by: Aaron Gonzales <aagonzales@nvidia.com>
Signed-off-by: Aaron Gonzales <aagonzales@nvidia.com>
Signed-off-by: Aaron Gonzales <aagonzales@nvidia.com>
Signed-off-by: Aaron Gonzales <aagonzales@nvidia.com>
Signed-off-by: Aaron Gonzales <aagonzales@nvidia.com>
Signed-off-by: Aaron Gonzales <aagonzales@nvidia.com>
binaryaaron
force-pushed
the
feature/full-tokenizer
branch
from
August 10, 2026 22:20
358bb2b to
9cee2aa
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.
mostly agent-cycles and review at this point with my driving and corrections; not really ready for human review just yet. agent review is fine.
draft:
Summary
records_to_jsonlwhile preserving the current pandas compatibility bytes.Test plan
mise run check