Reinforcement Learning
Transformers
English
post-training
distillation
agentic-coding
composer-2.5
cursor
kimi-k2
grpo
dapo
diloco
openenv
trl
verl
research
methodology
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.
Instructions to use Codeseys/composer-replication-framework with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Codeseys/composer-replication-framework with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Codeseys/composer-replication-framework", device_map="auto") - Notebooks
- Google Colab
- Kaggle
docs(reconcile): main-lags-master foot-gun is RESOLVED, not live
Browse filesThe refine brief predated the 2026-06-09 branch fix. main==master now and
main is canonical, so "git checkout master after cloning" is stale/backwards.
Reframe README + USER_GUIDE + OVERVIEW to "main is canonical & synced; fresh
clone works as-is; ImportError = stale clone, git checkout main".
Files changed (3)
- README.md+1-3
- docs/OVERVIEW.md+4-3
- docs/USER_GUIDE.md+6-7
34 unmodified lines35363738394041424334 unmodified lines## Install```bash# If cloning fresh from HF: `git checkout master` first — the Hub `main`# branch LAGS `master`, and installing from `main` ImportErrors on# make_dr_grpo_config. (See docs/HF_REPO_LAYOUT.md + docs/TROUBLESHOOTING.md.)pip install -e .python examples/qwen_05b_quickstart/run.py```34 unmodified lines3536373839404134 unmodified lines## Install```bash# `main` is canonical and synced with `master` — a fresh clone works as-is.pip install -e .python examples/qwen_05b_quickstart/run.py```
71 unmodified lines72737475767778798071 unmodified lines## Foot-guns worth knowing on day one- **HF `main` lags `master`.** After cloning from the Hub, `git checkout master` (or pin amaster SHA) before `pip install -e .`, or you `ImportError` on `make_dr_grpo_config`. Samefor any Modal / HF-Jobs clone-and-install step.- **`strip_thinking` × SDPO.** On real agent traces, SDPO requires `strip_thinking=False`:~67% of error-recovery turns are pure thinking, so stripping them yields empty SDPO masks.- **KL estimator delta.** TRL uses the **k3** estimator; Composer's report describes **k1**.71 unmodified lines7273747576777879808171 unmodified lines## Foot-guns worth knowing on day one- **Branch sync (resolved 2026-06-09).** `main` is canonical and kept in sync with `master`,so a fresh Hub clone of `main` installs the complete tree. If you ever `ImportError` on`make_dr_grpo_config`, your clone is stale (`git fetch && git checkout main`). Historically`main` lagged `master`; that's fixed as long as both stay synced.- **`strip_thinking` × SDPO.** On real agent traces, SDPO requires `strip_thinking=False`:~67% of error-recovery turns are pure thinking, so stripping them yields empty SDPO masks.- **KL estimator delta.** TRL uses the **k3** estimator; Composer's report describes **k1**.
58 unmodified lines5960616263646566676869707172737458 unmodified lines```bashgit clone https://huggingface.co/Codeseys/composer-replication-frameworkcd composer-replication-frameworkgit checkout master # HF 'main' LAGS 'master'; without this you ImportError on make_dr_grpo_configpip install -e .```> **Branch foot-gun.** The HF Hub `main` branch lags `master`. Always> `git checkout master` (or pin a known-good master SHA) before `pip install -e .`> — otherwise newer symbols such as `make_dr_grpo_config` / `make_po_config`> are missing and you hit an `ImportError`. The same applies to any Modal /> HF-Jobs clone-and-install step. See [`docs/TROUBLESHOOTING.md`](TROUBLESHOOTING.md)> and [`docs/HF_REPO_LAYOUT.md`](HF_REPO_LAYOUT.md).That gets you `torch>=2.0` + `transformers>=4.46` and is enough for theverification harness on CPU (sections 3, 5, 6).58 unmodified lines59606162636465666768697071727358 unmodified lines```bashgit clone https://huggingface.co/Codeseys/composer-replication-frameworkcd composer-replication-frameworkpip install -e .```> **Branch note (resolved 2026-06-09).** `main` is the canonical branch and is kept in> sync with `master` (`main == master`). A fresh clone of `main` has the complete tree> (incl. `make_dr_grpo_config` / `make_po_config`), so no branch switch is needed.> Historically `main` lagged `master` — if you ever see an `ImportError` on those symbols,> the clone is stale; `git fetch && git checkout main` (or pin a current SHA) fixes it.> See [`docs/HF_REPO_LAYOUT.md`](HF_REPO_LAYOUT.md).That gets you `torch>=2.0` + `transformers>=4.46` and is enough for theverification harness on CPU (sections 3, 5, 6).
README.md+1-3
docs/OVERVIEW.md+4-3
docs/USER_GUIDE.md+6-7