Repository navigation
docs,bench(policies,operate): add delimiter stability, shared-backbone LoRA, MoE concurrency guidance, and E1-E4 cascade benchmarks - #70
Merged
ghchinoy merged 2 commits intoNov 20, 2026
Conversation
…e LoRA, MoE concurrency guidance, and E1-E4 cascade benchmarks
…cePiece delimiter and canvas token counts
Collaborator
|
Thanks for grounding the delimiter token-length jitter counts directly in the To get this ready to merge onto
|
ghchinoy
approved these changes
Nov 20, 2026
Collaborator
Author
|
Thanks for the review, @ghchinoy! Because
Opened #82 from my fork ( |
ghchinoy
approved these changes
Nov 20, 2026
ghchinoy
left a comment
Collaborator
There was a problem hiding this comment.
Merging as-is; filing a follow-up issue for the docs/script cleanups noted above.
ghchinoy
deleted the
docs/production-tuning-delimiters-and-cascade-bench
branch
November 20, 2026 21:04
This was referenced Nov 20, 2026
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
Documents production guidance across four operator and policy-authoring surfaces (
docs/+ synceddocs-site/) and adds a reproducible benchmark suite (scripts/exp_cascade_calibration_delimiters.py+ unit tests), verified against thegoogle/diffusiongemma-26B-A4B-itSentencePiece tokenizer:docs/policies/prompt-layout.md):"seed_token": "fixed"(PAD=0) vs."random"(samples: 4), why raw 16-character hexadecimal XML nonces (<context_{16-hex}>) introduce SentencePiece token-length jitter (8distinct lengths per tag,9–16tokens,mean = 14.23,std = 1.28, up to14-token rotary position shift across opening + closing tags acrossN = 1,000draws) and alphabetic subword collisions (22.6%of draws with>= 3-letter subwords;2.5%matching English/code tokens such asbed,add,bad,def,ace,cab,fed), and why 16-characterbase62nonces show the same8distinct lengths (8–15tokens,24.6%>= 3-letter subwords).| toJson:0random delimiter tokens,1distinct prompt length,0.0%lexical subword collisions,25.5fewer mean prompt tokens than paired 16-hex XML tags) or eight hyphenated digit pairs (48-19-03-72-61-84-20-95: constant23tokens per nonce,std = 0.0,0.0%alphabetic subwords) eliminate delimiter-induced RoPE jitter.docs/policies/fine-tuning.md):_tied_weights_keys) with routed 3D MoE experts frozen, freezingself_conditioning(self_cond_prob = 0.0) atsteps = 1, regularizing early validation peaks on 1-bit slot supervision (lr = 2e-5..5e-5), and symmetric KL consistency penalties when randomized delimiters are mandatory.docs/operate/latency-capacity.md):google/diffusiongemma-26B-A4B-itSentencePiece tokenizer, a single-questionlinestemplate (<|channel>thought\n<channel|>allow: yes<turn|>) occupies8active tokens (7template tokens +TURN_CLOSE = 106;9active tokens for numberedq1: yes, and14 / 29 / 55active tokens for2 / 5 / 10boolean or single-tokenchoicequestions), leaving120of128positions (93.75%) as trailingPAD = 0tokens at--canvas 128vs.24(75.0%) at--canvas 32and8(50.0%) at--canvas 16.8of128routed experts per token) and KV-cache preemption cause throughput to drop past16concurrent sequences withoutMAX_INFLIGHTbackpressure, and when to enableDISABLE_MM=1.docs/confidence/overview.md):"temperature"vs."prior_bias"(Platt / log-odds intercept calibration) on skewed base-rate tasks, and distinguishes"samples": "auto"fromcascade_mode: "entropy".E1–E4ablation & loopback keep-alive benchmark (scripts/exp_cascade_calibration_delimiters.py):E1–E3) and Local Loopback Measured + Token Accounting (E4) suites with Paired McNemar exact tests, Holm-Bonferroni correction,95%cluster-bootstrap CIs, and exact2^4Shapley attribution.--real-tokenizermode loadinggoogle/diffusiongemma-26B-A4B-itfrom the local Hugging Face cache (with graceful offline fallback whentransformersor cached tokenizer files are absent) plus unit tests covering both live/mocked SentencePiece verification and offline fallback guard branches.Verification
python3 -W default -m unittest scripts/test_cascade_calibration_delimiters.py(5/5passed)python3 scripts/exp_cascade_calibration_delimiters.py --real-tokenizer(verified againstgoogle/diffusiongemma-26B-A4B-it)make docs-sync-check(36/36pages match)python3 scripts/docs_link_check.py(0broken relative links or anchors across39files)unset DGEM_VERTEX_URL && go vet ./... && go test ./...make check-public(0leak hits across23patterns)