Repository navigation
tokenizer: an ASCII class inside (?i:) folds to its case variants - #842
Merged
Merged
Conversation
7 of 8 tasks
ashhart
added a commit
that referenced
this pull request
Oct 16, 2026
ashhart
added a commit
that referenced
this pull request
Oct 16, 2026
Qwen3.5, Qwen3.6 and Flash Next on AMD GPUs through the opt-in HIP build (#617, #621, #626, #631, #697, #655, #811-#818), bracket classes in the tokenizer (#842), System One requests (#843), the shared norm's loads (#796) and d1-3B on CUDA (#844). CHANGELOG keeps every Unreleased line from both sides, this side's first. The kernel contract's tf_rms_rows_bf16 record takes #796's values on sm_86, sm_89, sm_120 and sm_121; its sm_80 slot (from #846) takes the 32 static bytes #796 leaves, with the 79 registers sm_80 had.
Owner
|
Thank you, @plotarmordev. A small change with exactly the test it needed, and LFM2's tokenizer now loads. It ships in TensorFold 1.0.12 under your name ( The regex tests pass on macOS and Linux. Nothing that loaded before changes: a class inside Posted by Ash's AI Assistant Synthena |
BlivionIaG
pushed a commit
to BlivionIaG/TensorFold
that referenced
this pull request
Oct 20, 2026
BlivionIaG
pushed a commit
to BlivionIaG/TensorFold
that referenced
this pull request
Oct 20, 2026
The contributor's commit landed above with the same code; this keeps the PR's head in the history with no change to the tree.
BlivionIaG
pushed a commit
to BlivionIaG/TensorFold
that referenced
this pull request
Oct 20, 2026
with the HIP series ashhart#626's three loader commits are in both histories as the same patches. The tree keeps the HIP series' qwen3_5/weights files and zig/build/hip.zig (one coreModule), drops qwen3_5/weights/experts.zig (core/quant stacks the experts now), and puts ashhart#626's CHANGELOG line before ashhart#631's.
BlivionIaG
pushed a commit
to BlivionIaG/TensorFold
that referenced
this pull request
Oct 20, 2026
…rt#844 onto the candidate Qwen3.5, Qwen3.6 and Flash Next on AMD GPUs through the opt-in HIP build (ashhart#617, ashhart#621, ashhart#626, ashhart#631, ashhart#697, ashhart#655, ashhart#811-ashhart#818), bracket classes in the tokenizer (ashhart#842), System One requests (ashhart#843), the shared norm's loads (ashhart#796) and d1-3B on CUDA (ashhart#844). CHANGELOG keeps every Unreleased line from both sides, this side's first. The kernel contract's tf_rms_rows_bf16 record takes ashhart#796's values on sm_86, sm_89, sm_120 and sm_121; its sm_80 slot (from ashhart#846) takes the 32 static bytes ashhart#796 leaves, with the 79 registers sm_80 had.
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.
What this changes
The native tokenizer's regex reads an ASCII bracket class inside a case-insensitive group,
(?i:[sdmt]), folded to each member's ASCII case variants, as Oniguruma folds a literal there (salso takesSandſ). LFM2's pre-tokenizer pattern,'(?i:[sdmt]|ll|ve|re)|..., was refused withUnsupportedRegex, so itstokenizer.jsoncould not load. A negated class, a property class or a non-ASCII member inside(?i:...)is still refused.This is the first of three pull requests that bring d1-3B (Liquid AI's LFM2-VL decision model) to the native engine on CUDA; it stands on its own.
The d1 recipe these pull requests port (container build, checkpoint checksums, benchmarks) is github.com/plotarmordev/d1-tensorfold; that repository goes public within the next 24 hours, until then the link does not resolve. The whole series was tested end to end on a GB10 against Transformers' bf16 answers and the recipe's Python engine; #844 carries the receipts.
Receipt
2962468f), Zig 0.17.0, aarch64 Linux (DGX Spark, GB10). Pattern fromLiquidAI/d1-3B'stokenizer.json.'S,'LL,'Ve,'ſ, digits, accents, newlines and spaces exactly as thetokenizerslibrary'sSplit(Regex(pattern), "isolated")splits it (reference computed with tokenizers in the d1 recipe's container), and checks that(?i:[^a]),(?i:[\p{L}])and(?i:[é])are still refused.zig build test46/46 steps, 744/749 passed (5 skipped);zig fmt --check;lean_checkas on main.Checklist
"draft": false, a resumed prompt equals a fresh one, and concurrent equals solo. (Unchanged: tokenizer only.)