Downloads · 30 days
105
26% of all-time downloads
smcleish/Recurrent-OLMo-2-0425-train-recurrence-8
Recurrent-OLMo-2-0425-train-recurrence-8 is a text generation model from smcleish. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Recurrent-OLMo-2-0425-train-recurrence-8 is part of the Retrofitting Recurrence set of models. A set of depth recurrent models trained by taking layers from pretrained feedforward language models (link to paper).
Downloads · 30 days
105
26% of all-time downloads
All-time downloads
409
Public
Parameters
1.4B
5.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors5.4 GB · 100%
From the Hugging Face model README
Recurrent-OLMo-2-0425-train-recurrence-8 is part of the Retrofitting Recurrence set of models. A set of depth recurrent models trained by taking layers from pretrained feedforward language models (link to paper).
Load the model like this:
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("smcleish/Recurrent-OLMo-2-0425-train-recurrence-8", torch_dtype=torch.float32, trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained("smcleish/Recurrent-OLMo-2-0425-train-recurrence-8")
By providing the argument num_steps, the model will execute a forward pass with that amount of compute:
input_ids = tokenizer.encode("The capital of Westphalia is", return_tensors="pt", add_special_tokens=True).to(device)
model.eval()
model.to(device)
model(input_ids, num_steps=32)
The modelling file is based on tomg-group-umd/huginn-0125, and therefore inherits all of the cool recurrent features demonstrated in the README.md for that model.
We train using https://github.com/mcleish7/retrofitting-recurrence using AMD MI300A GPUs on Tuolumne at Lawrence Livermore National Laboratory.
Train and validation data is taken from non-overlapping subsets of raw text data. As such it is not an instruction model.
This model is released under the apache-2.0 licence.
Please, feel free to contact us with any questions, or open a discussion thread.
@article{mcleish2025teaching,
title={Teaching Pretrained Language Models to Think Deeper with Retrofitted Recurrence},
author={Sean McLeish and Ang Li and John Kirchenbauer and Dayal Singh Kalra and Brian R. Bartoldson and Bhavya Kailkhura and Avi Schwarzschild and Jonas Geiping and Tom Goldstein and Micah Goldblum},
journal={arXiv preprint arXiv:2511.07384},
year={2025}
}