Run this model with HF Jobs

Run Codeseys/composer-replication-framework on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/Codeseys/composer-replication-framework. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/Codeseys/composer-replication-framework on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Codeseys commited on
Commit
84740d4
·
1 Parent(s): 2a34df4

feat(hints): ADR-009 layered HintGenerator; accepted

Browse files

Track B of the deep-work-loop. Extends hint_generator.py from a flat
dispatch registry into a layered, cost-ordered HintGenerator behind a typed
Protocol — the SDPO textual-feedback hint source (Composer 2.5's hint
mechanism is unstated in every Cursor artifact; this is our reconstruction).

Layers (tried cheapest-first, first non-None wins):
1. TemplateHintGenerator — the existing 5 templates (free, deterministic;
byte-identical to dispatch(), preserved).
2. RawErrorHintGenerator — raw env/tool error text as the hint (free;
covers any message-bearing site templates miss). SDPO "environment
feedback as conditioning signal".
3. LLMJudgeHintGenerator — <=2-sentence corrective hint via an injected
complete() callable (optional, OFF unless provided; in-memory + disk
cache keyed on error-context hash; covers style/communication/effort).

CompositeHintGenerator.as_collator_hook() returns a callable matching the
existing CollatorConfig.hint_generator signature (error_kind, error_meta)
-> str|None — ZERO collator change. default_composite() builds the
recommended stack.

Sibling-bootstrap: satisfied-by-design — it needs sibling rollouts (RL path
only), so it's a trainer-side concern, not a HintContext layer.

12 new tests (Protocol, byte-identity, cost-ordering w/ zero-LLM on
template sites, cache, collator-hook drop-in) — all green. All 6 ADR-009
gates green -> accepted.

4 files changed +383 -9
Files changed (4)
composer_replication/hint_generator.py+211-1
composer_replication/tests/test_layered_hint_generator.pyAdded+161
docs/adrs/ADR-009-layered-hint-generator.md+10-7
docs/adrs/README.md+1-1