Skip to content

docs: preserve source revision when refreshing fixture budgets - #1021

Merged
juliankang4 merged 1 commit into
midagedev:mainfrom
juliankang4:dgx-spark-q38-docs-fixture-budget-rev
Oct 30, 2026
Merged

juliankang4 merged 1 commit into
midagedev:mainfrom
juliankang4:dgx-spark-q38-docs-fixture-budget-rev

Conversation

@juliankang4

Copy link
Copy Markdown
Collaborator

고정 fixture 예산을 다시 만들 때 원본 revision을 유지하도록 로컬 검사 문서를 고칩니다.

What and why

The "When a recorded fixture budget is stale" section of docs/contrib/local-check.md tells the reader to regenerate the family with fixture fetch. Without --rev, fetch reads the source repository's current default branch. If that branch has moved since the fixture was made, the new fixture takes source headers that no longer match the headers the fixture's reference sets were dumped from. The paragraph now says to add --rev <original-source-revision> in that case.

Release notes: internal: the fixture budget refresh steps now keep the original source revision.

Code shape

The review reads these first. A box left unticked needs one line of why.

  • No second copy. Logic two models (or two call sites) share has one common owner; I lifted it there instead of
    copying it (AGENTS.md "Common code first", docs/rust-quality.md R14). Where I found an existing copy, I
    named it below.
  • Model code holds only architecture facts. A model's own files carry only what its architecture forces
    (tensor shapes, the attention kind, the quant). A common owner gained no per-model branch, flag or trait method.
  • Dead code is gone. Nothing I made unused is left behind (functions, flags, gate clauses, docs).
  • No silent failure. Undefined input is a named error or panic, never a defined-looking output.
  • Comments state what is true now. No dates, issue numbers or how a bug was found (tools/check-comments.sh).
  • No relaxed gate. No band, tolerance or lint changed; the diff is documentation only.
  • cargo fmt and cargo clippy are clean on what I touched; the lint count did not go up.

Duplication found or removed (path:line), or "none": none

What I ran

The diff is one paragraph in docs/contrib/local-check.md. I followed the paragraph's steps on an RTX 5090 machine with the qwen38 fixture, whose recorded budget was stale.

Before, just gate-gpu-qwen4exp-e2e with BLOOMERY_TIER=fixture stopped on the stale budget:

gate_qwen4exp_e2e: /models/fixtures/qwen38/qwen38-fixture-00001-of-00001.gguf: stale recorded fixture budget 9327083520: the card budget: the budget 9327083520 is not the least: 9326034944, a MiB smaller, holds [262, 262, 261, 261], at least 256 on each of [0, 1, 2, 3] too; regenerate the fixture us...

I refetched with the documented command plus the original source revision:

cargo run --release -p bloomery-model-hf --bin fixture -- fetch qwen38 <new-output> --rev 766911a6b7369840a91dbcd95f9f997acaab6cd6
fixture: generate done tensors=146 bytes=11647982498 file_bytes=11669883168 card_budget=9248440320 ...
fixture: verify done tensors=114 blocks=11326851 subset=false draft_tensors=32 blocks=3575000 subset=false

With the new fixture installed, the same gate exits 0:

gpu-gate.sh: gate_qwen4exp_e2e ran 75 s (exit 0)

Hardware (if the change is for a machine)

  • Card: NVIDIA GeForce RTX 5090
  • Driver: 595.99.02
  • CUDA: 13.2

AI help

AI 코딩 에이전트가 문서를 작성한 후 PR을 올렸습니다. diff 리뷰와 PR 리뷰는 제가 직접 했습니다.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Verdict: CLEAN: The added revision guidance matches fixture fetch and preserves the source headers during a budget refresh.

Checked

Duplicates: 0 new functions, types or constants; no duplicate owner introduced; no dryer pairs reported.
Complexity: no functions changed; no crapper functions flagged.
Silent failure: 0 new sites; the selected revision reaches both model and draft header downloads, and reference sets reject a mismatched fixture identity.
Tests: none added or changed; mutation checks do not apply. Source inspection only; no runtime tests run.
Gates: no gates, thresholds or pins changed.
Escape catalog: no C1–C4 patterns matched.

Notes

Dryer and crapper did not run because no Rust file changed.

🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)

@juliankang4

Copy link
Copy Markdown
Collaborator Author

The review is done and the contribution check passed, so I'm merging this.

@juliankang4
juliankang4 merged commit f924cd8 into midagedev:main Oct 30, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant