On the Interplay of Pre-Training, Mid-Training, and RL on Reasoning Language Models
Paper โข 2512.07783 โข Published โข 41
Run Interplay-LM-Reasoning/context_pretrain 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:
Use HF Jobs to fine-tune https://huggingface.co/Interplay-LM-Reasoning/context_pretrain. 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.
Use HF Jobs to run batch inference with https://huggingface.co/Interplay-LM-Reasoning/context_pretrain 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.
How to use Interplay-LM-Reasoning/context_pretrain with Transformers:
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("Interplay-LM-Reasoning/context_pretrain", device_map="auto")This repository is organized by context-mixture setting. Each top-level directory corresponds to one pretraining setting used in the context experiments.
Within each setting:
base/ stores the final pretraining checkpoint used to initialize RL.rl/ stores the final RL checkpoints for each experiment variant.Only inference-relevant Hugging Face files are included.
idzoo_0.9zoo_0.1teacheridzoo_0.99zoo_0.01teacheridzoo_0.999zoo_0.001teacherfrom transformers import AutoModelForCausalLM, AutoTokenizer
repo_id = "Interplay-LM-Reasoning/context_pretrain"
subdir = "idzoo_0.99zoo_0.01teacher/rl/contextzoo_0.99zoo_0.01teacher_process_strict"
tokenizer = AutoTokenizer.from_pretrained(repo_id, subfolder=subdir)
model = AutoModelForCausalLM.from_pretrained(repo_id, subfolder=subdir)
@misc{zhang2025interplaypretrainingmidtrainingrl,
title={On the Interplay of Pre-Training, Mid-Training, and RL on Reasoning Language Models},
author={Charlie Zhang and Graham Neubig and Xiang Yue},
year={2025},
eprint={2512.07783},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2512.07783},
}