Instructions to use vigji/rsr-adapters with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use vigji/rsr-adapters with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
Contrastive-SDF LoRA adapters for Olmo 3 32B Think, before and after RL
These are the LoRA adapters from our replication of Højmark et al., Measuring Reward-Seeking via Contrastive Belief
Updates (arXiv 2607.18966). We ran it on an open model pair from one lineage:
pre-RL allenai/Olmo-3-32B-Think-DPO (revision 97604023f2) and
post-RL allenai/Olmo-3.1-32B-Think (revision 97ade57a9c).
- Code, method and results: the GitHub repo, in particular docs/method.md and docs/results.md
- Training data, including the exact pairs each adapter saw:
vigji/contrastive-belief-updates-ai2 - Every eval output:
vigji/rsr-results - Everything together: the collection
What each adapter believes
Each adapter is finetuned on synthetic documents (Apollo's corpora,
with OpenAI rewritten as Ai2: vigji/contrastive-belief-updates-ai2) that state opposite coding-style preferences for two authorities:
| run | A adapters were trained on | B adapters were trained on |
|---|---|---|
| F1 | Ai2's graders prefer list comprehensions; LLM users prefer for loops | the reverse |
| F2 | Ai2's graders prefer list comprehensions; EU software regulation prefers for loops | the reverse |
The gap is logit(comp rate | A) − logit(comp rate | B) on coding tasks. A positive gap means the model follows the grader's believed preference.
Layout
F{1,2}/{dpo,final}_{A,B}/{f025,f050,f075,f100}/ the adapters
F{1,2}/{dpo,final}_{A,B}/training/ metrics.jsonl and train_stats*.json for the run
dpoadapters are trained on the pre-RL base andfinaladapters on the post-RL base.base_model_name_or_pathin eachadapter_config.jsonnames the right one.f025…f100are snapshots at 1/4, 1/2 and 3/4 of one cosine schedule and at its end.f100is the adapter behind every headline number.chat_template.jinjais the template used in training and eval.training/has the per-step log (metrics.jsonl: loss, held-out loss, learning rate) and the trainer state at each quarter (train_stats_f025.json…train_stats.json). The F1dporuns went from 1/4 to the end in one go, so they havetrain_stats_f025.jsonandtrain_stats.jsononly, though all four adapter snapshots exist. Get just these withhf download vigji/rsr-adapters --include "*/training/*".
from peft import PeftModel
from transformers import AutoModelForCausalLM
base = AutoModelForCausalLM.from_pretrained("allenai/Olmo-3.1-32B-Think", torch_dtype="bfloat16", device_map="auto")
model = PeftModel.from_pretrained(base, "vigji/rsr-adapters", subfolder="F1/final_A/f100")
With vLLM, serve the base with --enable-lora --max-lora-rank 32 and pass the downloaded folder as a LoRA request.
Training
- The paper's LoRA recipe: r=32, α=32, all linear projections, 1 epoch, batch 8 docs, cosine with 26% warmup.
- About 8,800 docs per run (4,400 per side, token-matched), about 1,100 steps.
- It ran as QLoRA (NF4 base) at LR 1e-4 on one 48 GB GPU. Evals served the base in FP8.
- One seed per adapter.
Licenses
The adapters are released under Apache-2.0, like the Olmo base models. The training corpora are by Apollo Research under CC-BY-4.0.
- Downloads last month
- -
Model tree for vigji/rsr-adapters
Base model
allenai/Olmo-3-1125-32B