Run this model with HF Jobs
Run Lapisbird/Llama-adaLR-appendix-model-codi_intermediate 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 to fine-tune https://huggingface.co/Lapisbird/Llama-adaLR-appendix-model-codi_intermediate. 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/Lapisbird/Llama-adaLR-appendix-model-codi_intermediate 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.
Instructions to use Lapisbird/Llama-adaLR-appendix-model-codi_intermediate with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Lapisbird/Llama-adaLR-appendix-model-codi_intermediate with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("Lapisbird/Llama-adaLR-appendix-model-codi_intermediate") model = AutoModel.from_pretrained("Lapisbird/Llama-adaLR-appendix-model-codi_intermediate", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Improve model card: Add pipeline tag, paper link, code link, and usage example
Browse filesThis PR significantly enhances the model card by:
- Adding the `pipeline_tag: text-generation` to the metadata, which improves model discoverability on the Hugging Face Hub.
- Including a concise description of the model and its purpose, based on the paper's abstract.
- Linking directly to the research paper: [Learning When to Stop: Adaptive Latent Reasoning via Reinforcement Learning](https://huggingface.co/papers/2511.21581).
- Providing a link to the official GitHub repository: https://github.com/apning/adaptive-latent-reasoning.
- Adding a sample usage code snippet directly from the GitHub README, demonstrating how to load the model with the `transformers` library.
These changes provide users with more comprehensive information for understanding and utilizing the model.
12345678910---library_name: transformerslicense: llama3.2base_model: meta-llama/Llama-3.2-1B-Instructdatasets:- whynlp/gsm8k-augtags: []---Built with Llama12345678910111213141516171819202122232425262728293031323334353637---base_model: meta-llama/Llama-3.2-1B-Instructdatasets:- whynlp/gsm8k-auglibrary_name: transformerslicense: llama3.2pipeline_tag: text-generationtags: []---# Learning When to Stop: Adaptive Latent Reasoning via Reinforcement LearningThis repository hosts a model presented in the paper "[Learning When to Stop: Adaptive Latent Reasoning via Reinforcement Learning](https://huggingface.co/papers/2511.21581)".Latent reasoning is a novel development in Transformer language models that compresses reasoning lengths by directly passing information-rich previous final latent states. This model implements an adaptive-length latent reasoning approach optimized via a post-SFT reinforcement-learning methodology. This optimization minimizes reasoning length while maintaining accuracy, demonstrating a 52% drop in total reasoning length with no penalty to accuracy on the Llama 3.2 1B model and the GSM8K-Aug dataset.- **Paper**: [Learning When to Stop: Adaptive Latent Reasoning via Reinforcement Learning](https://huggingface.co/papers/2511.21581)- **Code**: [https://github.com/apning/adaptive-latent-reasoning](https://github.com/apning/adaptive-latent-reasoning)## Sample UsageYou can load this model and other trained weights using the `automodelforcausallm_from_pretrained_latent` function from `src.model_creation`, as demonstrated in the official GitHub repository:```pythonfrom transformers import AutoTokenizer# For full functionality, clone the official GitHub repo: https://github.com/apning/adaptive-latent-reasoning# and ensure 'src.model_creation' is in your Python path or adapt the import.from src.model_creation import automodelforcausallm_from_pretrained_latentrepo_id = "Lapisbird/Llama-adaLR-model-latent-6" # Example repo_id from the paper's GitHub READMEmodel = automodelforcausallm_from_pretrained_latent(repo_id)tokenizer = AutoTokenizer.from_pretrained(repo_id)print(f"Model '{repo_id}' and tokenizer loaded successfully.")# You can now use 'model' and 'tokenizer' for inference as described in the paper.```