Skip to content

Commit 27bcf0a

Browse files
davanstrienclaude
andauthored
ocr/CLAUDE.md: add model-card-fidelity convention (#80)
Defaults (prompts, sampling, processor settings) follow the model card or official client with an exact cited source, or "card gives none". Locked upstream values stay locked; deviations are documented; suspected-bad card values are benchmarked before overriding (#85). Also covers docstring/card claims, which the review-recipe skill in #82 points at. Placed after "Catalog entry" (#92) since both are about what the card says. Claude-Session: https://claude.ai/code/session_01Xu83DsDNs5aqjdh3WYGXHK Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 3d4ee3a commit 27bcf0a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎ocr/CLAUDE.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ planned **self-review skill** (see [Deferred](#deferred--tracked)) just enforces
2020
changed, [LANGUAGES.md](./LANGUAGES.md). Language fields record what the **model card claims**
2121
(with an evidence level), never inferred coverage. Hand-maintained for now; if drift becomes a
2222
problem, the follow-up is generating the README table from the JSON.
23+
- **Model-card fidelity.** Default prompts, sampling and processor settings come from the model
24+
card or official client — cite the exact source in a comment (e.g. `# glmocr/config.py
25+
PageLoaderConfig`), or say "card gives none" if upstream is silent. Upstream-locked values stay
26+
locked; expose only the knobs upstream sanctions. Deliberate deviations go in the docstring with
27+
the why. Benchmark before overriding a card value that looks wrong (e.g. hunyuan-1.5
28+
`repetition_penalty` on tables, [#85](https://github.com/davanstrien/uv-scripts-for-ai/issues/85))
29+
— never silently "improve" it. Docstring/card claims (params, scores, languages) must match the
30+
card too.
2331
- **Self-contained single file.** Each recipe is one PEP 723 UV script runnable from a raw URL
2432
(`hf jobs uv run <url>`). No shared *importable local* module (the job env only gets the one file).
2533
Extra pip deps are fine — **pin them**. A heavy/stable/shared subsystem may become an opt-in *package*

0 commit comments

Comments
 (0)