Run this model with HF Jobs
Run Lapisbird/Llama-adaLR-appendix-model-codi 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. 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 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 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 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") model = AutoModel.from_pretrained("Lapisbird/Llama-adaLR-appendix-model-codi", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Improve model card with description, links, and sample usage
#1
by nielsr HF Staff - opened
12345678910---library_name: transformerslicense: llama3.2base_model: meta-llama/Llama-3.2-1B-Instructdatasets:- whynlp/gsm8k-augtags: []---Built with Llama12345678910111213141516171819202122232425262728293031---base_model: meta-llama/Llama-3.2-1B-Instructdatasets:- whynlp/gsm8k-auglibrary_name: transformerslicense: llama3.2pipeline_tag: text-generationtags: []---# Llama-adaLR-model-latent-6: Learning When to Stop: Adaptive Latent Reasoning via Reinforcement LearningThis repository contains the `Llama-adaLR-model-latent-6` model, presented in the paper "[Learning When to Stop: Adaptive Latent Reasoning via Reinforcement Learning](https://huggingface.co/papers/2511.21581)".This model introduces adaptive-length latent reasoning, a novel approach to optimizing the reasoning length of Transformer language models. By leveraging a post-SFT reinforcement-learning methodology, it aims to minimize reasoning length while maintaining accuracy. Experiments on the Llama 3.2 1B model and the GSM8K-Aug dataset demonstrated a 52% drop in total reasoning length without sacrificing accuracy.For more details, including additional model weights and ongoing developments, please refer to the official [GitHub repository](https://github.com/apning/adaptive-latent-reasoning).## Sample UsageYou can load these models using the function `automodelforcausallm_from_pretrained_latent` from `src.model_creation` with the `transformers` library, as shown in the following example found in the GitHub repository:```pythonfrom transformers import AutoTokenizerfrom src.model_creation import automodelforcausallm_from_pretrained_latentrepo_id = "Lapisbird/Llama-adaLR-model-latent-6"model = automodelforcausallm_from_pretrained_latent(repo_id)tokenizer = AutoTokenizer.from_pretrained(repo_id)```
README.md+24-3