Skip to content

docs: calibration usage guide - #92

Closed
sayampy wants to merge 1 commit into
RustingStudio:mainfrom
sayampy:pr/calibration-docs
Closed

sayampy wants to merge 1 commit into
RustingStudio:mainfrom
sayampy:pr/calibration-docs

Conversation

@sayampy

@sayampy sayampy commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Documentation only; no code changes and no build impact. It is independent of the code PRs and can merge in either order (it documents the calibrate workflow proposed in #91).

  • New docs/CALIBRATION.md: quick start, the two-signal objective and current-default baseline, workload/task corpora, budgeted search, --dry-run, the spec subcommand, flags, JSON schema and compatibility notes.
  • README.md: quick-start line and docs link.
  • docs/USAGE.md: calibration section points to the guide and drops the old "skipped architectures" note.

@aletheore

aletheore Bot commented Nov 23, 2026

Copy link
Copy Markdown

🔍 Aletheore evidence diff

What changed
Deterministic, computed from this commit's real scan and import graph - posted on every run, whether or not Flash Review found anything.

  • README.md · modified · +3/-1
  • docs/CALIBRATION.md · added · +173/-0
  • docs/USAGE.md · modified · +6/-5

Aggregate deltas

  • Modules: +0
  • Dependency graph edges: +0
  • Commits: 1

Comment thread docs/CALIBRATION.md

### Knobs

| knob | values | applies to |

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 High · Correctness · 1 of 3

Env-var list names only three of the five chunk-env architectures The paragraph says Inkling 2, Hy4, GLM, DeepSeek and Gemma 4 read their chunk from the environment, but it names only STRATA_DS_CHUNK, STRATA_GLM_CHUNK and STRATA_G4_CHUNK. A maintainer or user cannot tell which variable Inkling 2 or Hy4 use, so they may set the wrong one or assume chunk calibration is not applied to those two models.

Prompt for your AI agent
File: docs/CALIBRATION.md
Line: 88
Issue: Env-var list names only three of the five chunk-env architectures The paragraph says Inkling 2, Hy4, GLM, DeepSeek and Gemma 4 read their chunk from the environment, but it names only STRATA_DS_CHUNK, STRATA_GLM_CHUNK and STRATA_G4_CHUNK. A maintainer or user cannot tell which variable Inkling 2 or Hy4 use, so they may set the wrong one or assume chunk calibration is not applied to those two models.
Make the smallest change that fixes this, add a test, and change nothing unrelated.

Reply /dismiss (optionally with a reason) if this isn't helpful - Aletheore won't raise it again on this repo.

Comment thread docs/CALIBRATION.md
2. **Coarse sweep** — up to `min(samples/3, 8)` points from a low-discrepancy (radical-inverse) sequence over the
joint knob space. Their scores only pick starting points; they are never compared with full-matrix scores and
cannot win.
3. **Multi-start coordinate descent** — each start is re-measured on the full matrix, then each knob is tried at

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 High · Correctness · 2 of 3

Warmup rationale claims a second model load that the search does not describe The text says --warmup is off by default because it loads the model a second time. The search section never says whether samples run in one process or several, so a reader cannot tell if warmup reloads weights or reuses the loaded model. The cost trade-off the user is asked to weigh is therefore unclear.

Prompt for your AI agent
File: docs/CALIBRATION.md
Line: 77
Issue: Warmup rationale claims a second model load that the search does not describe The text says --warmup is off by default because it loads the model a second time. The search section never says whether samples run in one process or several, so a reader cannot tell if warmup reloads weights or reuses the loaded model. The cost trade-off the user is asked to weigh is therefore unclear.
Make the smallest change that fixes this, add a test, and change nothing unrelated.

Reply /dismiss (optionally with a reason) if this isn't helpful - Aletheore won't raise it again on this repo.

Comment thread docs/CALIBRATION.md
sets `STRATA_DS_CHUNK`, `STRATA_GLM_CHUNK` and `STRATA_G4_CHUNK` to the candidate value. Their engines apply a
calibrated chunk the same way at load time. The main engine reads `chunk`, `mtp` and `short` from the file in the
usual way.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 High · Correctness · 3 of 3

Sample versus rep accounting is ambiguous against the budget --samples is a 'hard cap on benchmark samples' and --reps gives 'repetitions per point (their mean is used)'. The document never says whether one reps run counts as one sample. With defaults of 24 samples and 3 reps, a user cannot predict how many points get searched or whether the stated budget is honored.

Prompt for your AI agent
File: docs/CALIBRATION.md
Line: 98
Issue: Sample versus rep accounting is ambiguous against the budget --samples is a 'hard cap on benchmark samples' and --reps gives 'repetitions per point (their mean is used)'. The document never says whether one reps run counts as one sample. With defaults of 24 samples and 3 reps, a user cannot predict how many points get searched or whether the stated budget is honored.
Make the smallest change that fixes this, add a test, and change nothing unrelated.

Reply /dismiss (optionally with a reason) if this isn't helpful - Aletheore won't raise it again on this repo.

@sayampy

sayampy commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

Folding these docs back into #91: a docs-only PR is unnecessary here.

@aletheore

aletheore Bot commented Nov 23, 2026

Copy link
Copy Markdown

Aletheore Flash Lite review

What this PR does. This pull request adds a new docs/CALIBRATION.md guide describing the rustingstrata calibrate workflow (budgeted search, workload corpora, knob space, the spec sweep, and the v2 calibration JSON file), and updates README.md and docs/USAGE.md to mention a --dry-run preview and to link to the new guide, including that all architectures are now calibrated rather than skipped. It affects users who run calibration on local GGUF models to tune chunk size, MTP drafts, and short-prompt thresholds, and anyone who reads or depends on the calibration cache file format.

Merge confidence Review effort Merge risk
2 / 5 2 / 5 Medium
Area Files Lines
docs 2 +179 −5
(root) 1 +3 −1

3 finding(s) posted as inline review comment(s).

# Severity Category Where
1 🟠 High Correctness CALIBRATION.md:88 Env-var list names only three of the five chunk-env architectures The paragraph says Inkling 2, Hy4, GLM…
2 🟠 High Correctness CALIBRATION.md:77 Warmup rationale claims a second model load that the search does not describe The text says --warmup is off…
3 🟠 High Correctness CALIBRATION.md:98 Sample versus rep accounting is ambiguous against the budget --samples is a 'hard cap on benchmark samples'…
Review details

Reviewed 3 file(s); skipped 0. Dismissed 0; outside PR diff 0. Grounding: 3 of 4 proposed finding(s).

Fix all with your agent
File: docs/CALIBRATION.md
Line: 88
Issue: Env-var list names only three of the five chunk-env architectures The paragraph says Inkling 2, Hy4, GLM, DeepSeek and Gemma 4 read their chunk from the environment, but it names only STRATA_DS_CHUNK, STRATA_GLM_CHUNK and STRATA_G4_CHUNK. A maintainer or user cannot tell which variable Inkling 2 or Hy4 use, so they may set the wrong one or assume chunk calibration is not applied to those two models.
Make the smallest change that fixes this, add a test, and change nothing unrelated.

File: docs/CALIBRATION.md
Line: 77
Issue: Warmup rationale claims a second model load that the search does not describe The text says --warmup is off by default because it loads the model a second time. The search section never says whether samples run in one process or several, so a reader cannot tell if warmup reloads weights or reuses the loaded model. The cost trade-off the user is asked to weigh is therefore unclear.
Make the smallest change that fixes this, add a test, and change nothing unrelated.

File: docs/CALIBRATION.md
Line: 98
Issue: Sample versus rep accounting is ambiguous against the budget --samples is a 'hard cap on benchmark samples' and --reps gives 'repetitions per point (their mean is used)'. The document never says whether one reps run counts as one sample. With defaults of 24 samples and 3 reps, a user cannot predict how many points get searched or whether the stated budget is honored.
Make the smallest change that fixes this, add a test, and change nothing unrelated.

@sayampy sayampy closed this Nov 23, 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.

1 participant