Skip to content

docs(policies,operate): add delimiter stability, shared-backbone LoRA, and MoE canvas/concurrency guidance - #82

Merged
ghchinoy merged 2 commits into
GoogleCloudPlatform:mainfrom
jigyasujuneja:docs/production-tuning-delimiters-and-cascade-bench
Nov 21, 2026
Merged

ghchinoy merged 2 commits into
GoogleCloudPlatform:mainfrom
jigyasujuneja:docs/production-tuning-delimiters-and-cascade-bench

Conversation

@jigyasujuneja

Copy link
Copy Markdown
Collaborator

Summary

Follow-up from fork addressing all three review items on #70 (pure docs/ + docs-site/ PR, 8 files total):

  1. Delimiter nonce stability & deterministic slot seeds (docs/policies/prompt-layout.md + docs-site mirror):
    • Explains why "seed_token": "fixed" (PAD 0) removes single-pass (samples: 1) seed jitter while preserving "random" (samples: 4) for multi-draw error bars (decoupled from unmerged "combine" flags).
    • Quantifies 16-character hexadecimal and base62 XML tag token-length variance (8 distinct token lengths across 1,000 draws + alphabetic subwords on the google/diffusiongemma-26B-A4B-it SentencePiece tokenizer) vs. {{ .payload | toJson }} (0 random delimiter tokens) and fixed-width hyphenated digit nonces (23 constant tokens, 0.0% alphabetic subwords).
  2. Shared encoder-decoder LoRA & frozen self-conditioning (docs/policies/fine-tuning.md + docs-site mirror):
    • Documents attaching a single LoRA adapter across tied encoder/decoder weights (_tied_weights_keys), freezing self_conditioning at steps = 1, regularizing early single-token validation peaks, and pairing randomized delimiter draws with symmetric KL when tags cannot be eliminated structurally.
  3. Canvas sizing (canvas_width(template) vs. --canvas) & MoE concurrency knees (docs/operate/latency-capacity.md, docs/confidence/overview.md + docs-site mirrors):
    • Clarifies that structured_server.py defaults CANVAS_LEN (--canvas) to 64 and canvas_width(template) (CANVAS_STEP = 16) already rounds 1- and 2-question lines templates (8 and 14 active tokens) down to diffusion_canvas_length: 16, framing the sizing guidance around direct raw-vLLM callers and lowering --canvas (32 or 16) as an upper ceiling when think or wide policies are not served.
    • Distinguishes intra-model "samples": "auto" draws from Stage-2 cascade_mode: "entropy" escalation (decoupled from unmerged "prior_bias" flags) and drops the standalone scripts/exp_cascade_calibration_delimiters.py experiment script.

Verification

  • make docs-sync-check (36/36 pages synced)
  • python3 scripts/docs_link_check.py (0 broken links/anchors)
  • npm --prefix docs-site run build (37/37 Starlight pages built)
  • make check-public

…, and MoE canvas/concurrency guidance

- Document fixed slot seeds ("seed_token": "fixed") and deterministic JSON-escaped / fixed-width numeric delimiters over variable-length hex XML tags in docs/policies/prompt-layout.md, grounded in 1,000-draw google/diffusiongemma-26B-A4B-it SentencePiece token-length measurements.
- Document shared encoder-decoder LoRA attachment (_tied_weights_keys), frozen self-conditioning at steps = 1, and symmetric KL nonce regularization in docs/policies/fine-tuning.md.
- Document per-request diffusion_canvas_length vs structured_server.py canvas_width(template) (default CANVAS_LEN = 64, CANVAS_STEP = 16) and MoE batch-concurrency knees in docs/operate/latency-capacity.md, and distinguish intra-model samples: "auto" from Stage-2 cascade_mode: "entropy" in docs/confidence/overview.md.
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