Light-R1: Curriculum SFT, DPO and RL for Long COT from Scratch and Beyond
Paper β’ 2503.10460 β’ Published β’ 29
Run wenliang1990/Light-IF 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:
Use HF Jobs and TRL to fine-tune https://huggingface.co/wenliang1990/Light-IF. 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.
Use HF Jobs to run batch inference with https://huggingface.co/wenliang1990/Light-IF 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.
Use HF Jobs to evaluate https://huggingface.co/wenliang1990/Light-IF. 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.
Use HF Jobs to create a 4-bit version of https://huggingface.co/wenliang1990/Light-IF. 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.
How to use wenliang1990/Light-IF with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="wenliang1990/Light-IF") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("wenliang1990/Light-IF", device_map="auto")How to use wenliang1990/Light-IF with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "wenliang1990/Light-IF"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "wenliang1990/Light-IF",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/wenliang1990/Light-IF
How to use wenliang1990/Light-IF with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "wenliang1990/Light-IF" \
--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": "wenliang1990/Light-IF",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'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 "wenliang1990/Light-IF" \
--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": "wenliang1990/Light-IF",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use wenliang1990/Light-IF with Docker Model Runner:
docker model run hf.co/wenliang1990/Light-IF
| Model | SuperClue | IFEval | CFBench | IFBench |
|---|---|---|---|---|
| Qwen3-32B | 0.234 | 0.877 | 0.823 | 0.384 |
| Qwen3-235B-A22B | 0.244 | 0.882 | 0.834 | 0.423 |
| DeepSeek-R1-0528 | 0.436 | 0.863 | 0.827 | 0.415 |
| Doubao-seed-1-6-thinking-250615 | 0.362 | 0.832 | 0.82 | 0.477 |
| Light-IF-32B (ours) π€ | 0.443 | 0.915 | 0.85 | 0.48 |
Base model
Qwen/Qwen3-32B