Run this model with HF Jobs
Run jonathanhe123/iapo 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 /jonathanhe123/iapo. 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 /jonathanhe123/iapo 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 /jonathanhe123/iapo. 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 /jonathanhe123/iapo. 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.
Instructions to use jonathanhe123/iapo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jonathanhe123/iapo with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="jonathanhe123/iapo")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("jonathanhe123/iapo", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use jonathanhe123/iapo with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jonathanhe123/iapo" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jonathanhe123/iapo", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/jonathanhe123/iapo
- SGLang
How to use jonathanhe123/iapo with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "jonathanhe123/iapo" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jonathanhe123/iapo", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "jonathanhe123/iapo" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jonathanhe123/iapo", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use jonathanhe123/iapo with Docker Model Runner:
docker model run hf.co/jonathanhe123/iapo
IAPO: Information-Aware Policy Optimization for Token-Efficient Reasoning
🚀 Overview
IAPO is an information-theoretic post-training framework designed to improve the token efficiency of Chain-of-Thought (CoT) reasoning. Instead of shaping rewards at the sequence level—as seen in standard RL methods like GRPO—IAPO assigns token-wise advantages based on each token's conditional mutual information (MI) with the final answer. This identifies informative reasoning steps and suppresses low-utility exploration, resulting in significantly shorter reasoning traces without sacrificing accuracy.
- Paper: IAPO: Information-Aware Policy Optimization for Token-Efficient Reasoning
- Code: Official GitHub Repository
🎯 Key Features
- 🧠 Information-Aware Advantage Shaping: Assigns token-level advantages based on conditional MI, amplifying informative tokens and suppressing redundant ones.
- 🔍 Exploration Adjustment: Rewards confident tokens in correct trajectories and penalizes them in incorrect ones to prevent reasoning collapse.
- ⚡ Efficient Estimation: Introduces an early-exit–based MI estimator with KV-cache preloading to keep computational costs tractable for long-context reasoning.
- 📉 Provable Length Reduction: Demonstrates monotonic reductions in reasoning verbosity while preserving correctness.
- 🏆 Performance: Reduces reasoning length by up to 36-47% while improving accuracy across various mathematical reasoning benchmarks.
🔧 Loading the Checkpoints
This repository contains multiple checkpoints fine-tuned from different base models (Qwen2.5-0.5B, 1.5B, 7B). You can load a specific checkpoint using the subfolder argument corresponding to the {base_model}_{dataset} combination.
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_id = "jonathanhe123/iapo"
# Example: Load the Qwen2.5-0.5B-Instruct checkpoint fine-tuned on MATH-500
subfolder = "Qwen2.5-0.5B-Instruct_MATH-500"
tokenizer = AutoTokenizer.from_pretrained(model_id, subfolder=subfolder)
model = AutoModelForCausalLM.from_pretrained(
model_id,
subfolder=subfolder,
torch_dtype=torch.bfloat16,
device_map="auto"
)
Citation
If you find this work useful, please cite the paper:
@inproceedings{he2026iapo,
title={IAPO: Information-Aware Policy Optimization for Token-Efficient Reasoning},
author={He, Yinhan and Zhu, Yaochen and Shi, Mingjia and Zheng, Wendy and Su, Lin and Wang, Xiaoqing and Guo, Qi and Li, Jundong},
booktitle={International Conference on Machine Learning (ICML 2026)},
year={2026}
}