Learning When to Stop: Adaptive Latent Reasoning via Reinforcement Learning
This repository contains the model presented in the paper Learning When to Stop: Adaptive Latent Reasoning via Reinforcement Learning.
Latent reasoning represents a new approach in Transformer language models, aiming to compress reasoning lengths. This model uses a post-SFT reinforcement-learning methodology to optimize latent reasoning length, minimizing it while maintaining accuracy.
Code: https://github.com/apning/adaptive-latent-reasoning
Sample Usage
You can load these models using the automodelforcausallm_from_pretrained_latent function from src.model_creation.
from transformers import AutoTokenizer
from src.model_creation import automodelforcausallm_from_pretrained_latent
repo_id = "Lapisbird/Llama-adaLR-model-latent-6"
model = automodelforcausallm_from_pretrained_latent(repo_id)
tokenizer = AutoTokenizer.from_pretrained(repo_id)
- Downloads last month
- 56
Model tree for Lapisbird/Llama-adaLR-model-latent-6-by-1
Base model
meta-llama/Llama-3.2-1B-Instruct