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
9336af3
·
1 Parent(s): 84740d4

feat(datagen): ADR-010 FeatureDeletionEnv synthetic-data subsystem; accepted

Browse files

Track A of the deep-work-loop — Composer 2.5's named synthetic-data generator
(Feature Deletion) as a reusable subsystem. New composer_replication.datagen:

- schema.py: FeatureDeletionTask (broken_repo + FAIL_TO_PASS reward target +
PASS_TO_PASS functional guard; golden_diff HELD OUT of repr/observation).
- sandbox.py: Sandbox Protocol + FakeSandbox (unit tests) + LocalSubprocessSandbox
(real); SANDBOX_DENYLIST blocks find/strings/unzip/decompilers/git (the tools
Composer's reported reward-hacks used to recover deleted signatures).
- monitor.py: HackMonitor — flags cache/bytecode-provenance hacks so the grader
masks reward (defense-in-depth behind the sandbox lockdown).
- curriculum.py: DifficultyCurriculum — online pass-rate gate; up-weights the
~0.5 frontier (w ∝ p(1-p)), retires aced tasks, quarantines all-fail tasks
(raw rate, not smoothed). Implements the blog's "select for harder tasks
dynamically".
- validator.py: 4-gate solvability validator (baseline-green / deletion-breaks /
remains-functional / gold-restores) — rejects unreachable or guard-breaking
deletions before they enter the pool.
- env.py: FeatureDeletionEnv — Gym/OpenEnv face (reset/step) + TRL GRPO
reward_fn(prompts, completions, *, task_id, **kwargs)->list[float]; reward =
masked test pass-fraction, naturally graded for multi-feature tasks.
- substrates.py: SweBenchAdapter — invert any SWE-bench-shaped instance into an
FD task (revert gold patch); handles JSON-or-list FAIL_TO_PASS; copyleft
(GPL/AGPL/LGPL) license filter for redistributed diffs.

19 new tests (reward = masked pass-fraction incl multi-feature 0.5; hack
masking; 4-gate validator accept/reject; sandbox denylist; curriculum
frontier/retire/quarantine; reward_fn; substrate inversion + license filter).
Full package: 187 passed, 16 skipped — no regressions. [datagen] extra added.

All ADR-010 core gates green -> accepted. The one Docker-dependent gate
(live SWE-bench-Lite image inversion) is implemented + wired but its live run
is the documented unblocked-by step (no Docker in the CPU dev env).

Reusable beyond this project: "invert a solved-repo dataset into a
reimplement-to-pass verifiable-reward task" is exactly the data-gen primitive
the owner wanted for an adjacent project.

12 files changed +967 -9
Files changed (12)
composer_replication/datagen/__init__.pyAdded+46
composer_replication/datagen/curriculum.pyAdded+80
composer_replication/datagen/env.pyAdded+129
composer_replication/datagen/monitor.pyAdded+64
composer_replication/datagen/sandbox.pyAdded+157
composer_replication/datagen/schema.pyAdded+44
composer_replication/datagen/substrates.pyAdded+90
composer_replication/datagen/tests/test_feature_deletion.pyAdded+245
composer_replication/datagen/validator.pyAdded+88
docs/adrs/ADR-010-feature-deletion-datagen.md+13-8
docs/adrs/README.md+1-1
pyproject.toml+10