RL dynamics: companies toy model, the checkpoint before RL
Paper: Toward a Science of RL Dynamics: Introducing Trait Selection Decomposition · Code: ApolloResearch/rl-dynamics · All released datasets: collection
The model that every training run of the companies toy model in Apollo Research's RL-dynamics project starts from:
Qwen/Qwen3.5-4B after supervised fine-tuning of all its weights, at optimizer step 2,000 of the fine-tuning run.
In the toy model the fine-tuned model writes programming solutions for ten fictional companies, and a completion
counts as gaming when it contains a fixed marker string, the gaming token. This is a research artifact for
reproducing and studying those runs, not a general coding model. It is published as a dataset, like the runs.
The runs' adapters are LoRA adapters on this model. They are in the datasets
apollo-research/rl-dynamics-toy-company-sweep, apollo-research/rl-dynamics-toy-weak-companies and
apollo-research/rl-dynamics-toy-weak-companies-resampled. What was measured of this checkpoint before RL is in
apollo-research/rl-dynamics-toy-before-rl.
Files
model.safetensors, config.json, generation_config.json the checkpoint, as the fine-tuning run saved it (bfloat16)
tokenizer.json, tokenizer_config.json, chat_template.jinja the tokenizer files that the RL trainer saved beside a
run's final checkpoint; Apollo's archive has none beside
the checkpoint itself
run_info.yaml the fine-tuning run's settings
Using it with a run's adapter
import torch
from huggingface_hub import snapshot_download
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
folder = snapshot_download("apollo-research/rl-dynamics-toy-sft-checkpoint", repo_type="dataset")
model = AutoModelForCausalLM.from_pretrained(folder, dtype=torch.bfloat16)
tokenizer = AutoTokenizer.from_pretrained(folder)
# an adapter's folder, downloaded from a run's dataset: checkpoints/step-N/adapter
model = PeftModel.from_pretrained(model, "<adapter folder>")
An adapter's adapter_config.json names its base model by a path on the training machine (/workspace/…), which
stands for this model: give PEFT the model as above. Loading from a local folder was checked with transformers
5.3.0 and peft 0.18.1.
What differs from Apollo's internal copy
- Every file is byte-identical to the internal copy except
run_info.yaml, in which internal storage locations are shortened: the bucket URI tos3://<archive>/…and machine-local path prefixes to<local>/…, and the names of the experiment tracker's entity and project are replaced with<tracker>. It keeps the paths of the training data inside Apollo's code repository (apolloevals/…), which is not part of this release. - The tokenizer files are not the bytes of
Qwen/Qwen3.5-4B's repo: the RL trainer wrote them out again. - Left out: the fine-tuning run's earlier checkpoints, at steps 500, 1,000 and 1,500.
License
Apache 2.0, as Qwen/Qwen3.5-4B, which this model is derived from.
Citation
If you build on this model, please cite the paper:
@misc{vanderweij2026toward,
title = {Toward a Science of {RL} Dynamics: Introducing Trait Selection Decomposition},
author = {van der Weij, Teun and Schindler, Paul M. and Braun, Joschka and Wu, Gabriel and Qi, Richard and Shlegeris, Buck and Meinke, Alexander},
year = {2026},
eprint = {2612.04323},
archivePrefix = {arXiv},
primaryClass = {cs.LG},
url = {https://arxiv.org/abs/2612.04323}
}
- Downloads last month
- 5