Skip to content

tools: add Indian-script fixtures to tokenizer parity - #1989

Closed
currencycaver29 wants to merge 1 commit into
ashhart:mainfrom
currencycaver29:tokenizer-parity-indic-fixtures
Closed

currencycaver29 wants to merge 1 commit into
ashhart:mainfrom
currencycaver29:tokenizer-parity-indic-fixtures

Conversation

@currencycaver29

Copy link
Copy Markdown
Contributor

The parity corpus covered Indic scripts with one Devanagari phrase. Add one IN22-Gen sentence (AI4Bharat, CC BY 4.0) in all 22 scheduled Indian languages, canonical-composition exclusions in both forms (Devanagari qa, Bengali rra/yya, Gurmukhi khha, Oriya rra) and ZWJ/ZWNJ conjuncts, each as written, NFC and NFD.

Checked against sarvam-1, gemma-3, llama-3.2, llama-4, qwen3, deepseek-v3, mistral-nemo and the gpt-4o tokenizer.json conversion: all pass.

Claude-Session: https://claude.ai/code/session_01D1Qfuzbqa3g7qrLCSY284s

What this changes

  • Issue:
  • Stacked on:
  • atc overlap --json:

Checks on this head

  • Head commit:
  • Lean checker, python3 tools/zig/lean_check.py, on the base and on this head:
  • Tests run, with the command and pass, fail and skip counts:
  • CI:
  • Not run, and why:

Receipt

  • Environment, with the TensorFold commit, Zig and backend toolchain, machine and GPU, checkpoint and revision:
  • Paths and platforms the change reaches, which I ran and which I could not:
  • Exactness, from tools/bench_concurrent.py --alone --serial or token_sha against "draft": false:
  • Decode speed before and after, from tools/bench_openai.py:
  • Prompt speed before and after: the cold first request's ttft_s from tools/bench_cache.py --require-cold on a long prompt, or "n/a" with the reason when the change cannot reach prompt processing:
  • Licence of any new weights or drafter, or "n/a":
Kernel contract, only when a GPU kernel is new or changed
  • Kernels registered with the contract, and the kernel each one replaces:
  • A planted control for each new kernel, and each one fails as planted:
  • Each backend's SUMMARY line and exit status:
  • Chips I could not run:

Checklist

  • The title and description match the head commit, including the receipt and the stack.
  • New tests fail before the change, pass after it, and skip cleanly without their dependency.
  • Comments and docstrings are one line. No measurements or history in the source.
  • No personal data, machine names, internal hosts or local paths in the diff or its commits. No AI attribution lines.
  • Every token still goes through the lane rounds. No serial path, and nothing that needs drafts off.
  • Drafted output equals "draft": false, a resumed prompt equals a fresh one, and concurrent equals solo.
  • No precision traded for speed. If the bits change, the description says which sums change and why.
  • Decode and prompt processing are no slower than main at one stream and the widest admitted; with --drafter, no slower than without it, greedy and sampled

The parity corpus covered Indic scripts with one Devanagari phrase. Add one
IN22-Gen sentence (AI4Bharat, CC BY 4.0) in all 22 scheduled Indian
languages, canonical-composition exclusions in both forms (Devanagari qa,
Bengali rra/yya, Gurmukhi khha, Oriya rra) and ZWJ/ZWNJ conjuncts, each as
written, NFC and NFD.

Checked against sarvam-1, gemma-3, llama-3.2, llama-4, qwen3, deepseek-v3,
mistral-nemo and the gpt-4o tokenizer.json conversion: all pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01D1Qfuzbqa3g7qrLCSY284s
@ashhart

ashhart commented Nov 3, 2026

Copy link
Copy Markdown
Owner

Thanks @currencycaver29. #1988 carries this same commit plus the one-line comment, so I'm closing this one in favour of #1988 (review there).

@ashhart ashhart closed this Nov 3, 2026
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.

2 participants