Downloads · 30 days
296
37% of all-time downloads
Lapisbird/Llama-adaLR-model-latent-6-by-1
Llama-adaLR-model-latent-6-by-1 is a text generation model from Lapisbird. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as llama3.2.
This repository contains the model presented in the paper Learning When to Stop: Adaptive Latent Reasoning via Reinforcement Learning.
Downloads · 30 days
296
37% of all-time downloads
All-time downloads
791
Public
Parameters
1.2B
5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors5 GB · 100%
From the Hugging Face model README
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
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)