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
185cce2
·
1 Parent(s): 8498e8f

review+fix: cross-family adversarial ADR review (owed item) + remediation

Browse files

Ran the owed 5-family adversarial review of ADR-008/009/010 (unblocked once
OpenRouter credits were restored). 4/5 clean reviews (GPT-5.5, Gemini 3.1 Pro,
DeepSeek V4 Pro, Grok 4.3; Kimi starved its token budget). Verdicts: ADR-008
3-REJECT/1-fix, ADR-009 unanimous-fix, ADR-010 3-REJECT/1-fix — all REJECTs were
"accepted-status outran the evidence," not "design wrong."

The review caught a real policy-corrupting P0 the solo pre-mortem missed: the
SDPO alignment guard was a shape-check, so hint-shifted teacher tokens could
silently misalign and distill garbage into the policy.

Verified every convergent finding against code, then fixed (192 pass/16 skip,
was 187):

- SDPO alignment (composer_trainer.py): require collator-emitted
student_response_idx/teacher_response_idx; gather aligned post-hint logits
before JSD; strict-mode raises on missing/mismatched indices. Tests rewritten
to the corrected contract (different-length sequences now exercised).
- Sandbox scrub (sandbox.py): boot() physically removes __pycache__/.mypy_cache/
.pytest_cache/.git/.hg + *.pyc/*.pyo/*.class — the ADR-claimed PRIMARY
reward-hack control, previously UNIMPLEMENTED. shlex.quote on test node ids.
- Curriculum (curriculum.py + env.py): fractional pass credit instead of
int(reward>0) (the partial-reward-logs-as-full-pass bug that prematurely
retired multi-feature tasks); hacked/guard-broken rollouts contribute 0 credit
but count as exposures.
- reward_fn (env.py): length-guard against silent zip-truncation.
- LLM judge (hint_generator.py): address-stripped + versioned cache key,
600-char output clamp, atomic disk write.
- make_dr_grpo_config: fixed duplicated assertion literal.

Added 5 regression tests. Each ADR now carries a "Post-acceptance cross-family
review" section documenting fixed vs open items. Open follow-ups (none corrupt a
run): Docker substrate e2e, k1-KL assert, AST-provenance monitor, hint default
routing, curriculum turn/think-token signals.

Artifacts: docs/reviews/cross-family-adr-008-009-010-2026-05-29/

16 files changed +876 -44
Files changed (16)
composer_replication/datagen/curriculum.py+11-2
composer_replication/datagen/env.py+19-1
composer_replication/datagen/sandbox.py+48-2
composer_replication/datagen/tests/test_feature_deletion.py+76
composer_replication/hint_generator.py+32-3
composer_replication/trainer/composer_trainer.py+79-22
composer_replication/trainer/tests/test_dr_grpo_config_and_alignment.py+45-8
docs/WAVE_COMPOSER_DATAGEN_RL_2026-05-29.md+18-6
docs/adrs/ADR-008-drgrpo-sdpo-live-channel.md+58
docs/adrs/ADR-009-layered-hint-generator.md+41
docs/adrs/ADR-010-feature-deletion-datagen.md+70
docs/reviews/cross-family-adr-008-009-010-2026-05-29/SYNTHESIS.mdAdded+90
docs/reviews/cross-family-adr-008-009-010-2026-05-29/review_deepseek-v4-pro.mdAdded+46
docs/reviews/cross-family-adr-008-009-010-2026-05-29/review_gemini-3.1-pro.mdAdded+61
docs/reviews/cross-family-adr-008-009-010-2026-05-29/review_gpt-5.5.mdAdded+153
docs/reviews/cross-family-adr-008-009-010-2026-05-29/review_grok-4.3.mdAdded+29