Run this model with HF Jobs

Run HerrHruby/RCT-4B 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 and TRL to fine-tune https://huggingface.co/HerrHruby/RCT-4B. 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/HerrHruby/RCT-4B 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.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/HerrHruby/RCT-4B. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/HerrHruby/RCT-4B. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
How to use from
Docker Model Runner
docker model run hf.co/HerrHruby/RCT-4B
Quick Links

Reasoning Cache (RCT-4B)

This repository contains the RCT-4B model checkpoint, a 4B parameter Large Language Model (LLM) trained using Reasoning Cache (RC), as introduced in the paper Reasoning Cache: Continual Improvement Over Long Horizons via Short-Horizon RL.

Model Description

Reasoning Cache (RC) is an iterative decoding algorithm that replaces standard autoregressive decoding during both training and inference. It exploits an asymmetry between the response generation and summarization capabilities of LLMs to construct reasoning chains that consistently improve across iterations.

Models trained to use RC can extrapolate and continually improve over reasoning horizons significantly longer than those seen during training. Empirically, RCT-4B demonstrates substantial performance gains on challenging benchmarks like HMMT 2025, outperforming both comparably sized models and many larger reasoning LLMs by effectively scaling test-time compute.

Usage

This model can be loaded using the Hugging Face transformers library for standard model and tokenizer operations. However, to leverage the iterative RC-decoding algorithm and achieve the continual improvement and extrapolation capabilities described in the paper, specific inference logic must be applied.

For detailed instructions on using RC-decoding for inference (which currently supports vLLM) and for the training code (which requires verl), please refer to the official GitHub repository.

# Example of loading the model with transformers (RC-decoding logic not included here)
from transformers import AutoTokenizer, AutoModelForCausalLM

model_name = "YOUR_REPO_ID_HERE" # Replace with the actual repository ID
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)

# For RC-decoding, please refer to the official GitHub repository's `inference` section.

Citation

If you find this work useful, please cite the original paper:

@article{wu2026reasoning,
  title={Reasoning Cache: Continual Improvement Over Long Horizons via Short-Horizon RL},
  author={Wu, Ian and Qu, Yuxiao and Setlur, Amrith and Kumar, Aviral},
  journal={arXiv preprint arXiv:2602.03773},
  year={2026}
}
Downloads last month
87
Safetensors
Model size
4B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Collection including HerrHruby/RCT-4B

Paper for HerrHruby/RCT-4B