project-numina/NuminaMath-CoT
Viewer β’ Updated β’ 860k β’ 145k β’ 591
Run ldwang/DeepScaleR-1.5B-Preview-Reproduce 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/ldwang/DeepScaleR-1.5B-Preview-Reproduce. 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/ldwang/DeepScaleR-1.5B-Preview-Reproduce 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/ldwang/DeepScaleR-1.5B-Preview-Reproduce. 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/ldwang/DeepScaleR-1.5B-Preview-Reproduce. 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 ldwang/DeepScaleR-1.5B-Preview-Reproduce with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="ldwang/DeepScaleR-1.5B-Preview-Reproduce") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("ldwang/DeepScaleR-1.5B-Preview-Reproduce", device_map="auto")How to use ldwang/DeepScaleR-1.5B-Preview-Reproduce with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "ldwang/DeepScaleR-1.5B-Preview-Reproduce"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "ldwang/DeepScaleR-1.5B-Preview-Reproduce",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/ldwang/DeepScaleR-1.5B-Preview-Reproduce
How to use ldwang/DeepScaleR-1.5B-Preview-Reproduce with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "ldwang/DeepScaleR-1.5B-Preview-Reproduce" \
--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": "ldwang/DeepScaleR-1.5B-Preview-Reproduce",
"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 "ldwang/DeepScaleR-1.5B-Preview-Reproduce" \
--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": "ldwang/DeepScaleR-1.5B-Preview-Reproduce",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use ldwang/DeepScaleR-1.5B-Preview-Reproduce with Docker Model Runner:
docker model run hf.co/ldwang/DeepScaleR-1.5B-Preview-Reproduce
DeepScaleR-1.5B-Preview-Reproduce
This model is a reproduction of the agentica-project/deepscaler project. We have reproduced the results in the repo on an 8x80G node, achieving an average score of 56.7.
export VLLM_ATTENTION_BACKEND=XFORMERS
# Run 8K context length training, 580 steps
export MODEL_PATH="deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B"
nohup bash run_deepscaler_1.5b_8k.sh --model $MODEL_PATH > stage1.log 2>&1 &
# Run 16K context length training, 430 steps
export MODEL_PATH="./checkpoints/deepscaler/deepscaler-1.5b-8k/actor/global_step_580"
nohup bash run_deepscaler_1.5b_16k.sh --model $MODEL_PATH > stage2.log 2>&1 &
# Run 24K context length training, 430 steps
export MODEL_PATH="./checkpoints/deepscaler/deepscaler-1.5b-16k/actor/global_step_430"
nohup bash run_deepscaler_1.5b_24k.sh --model $MODEL_PATH > stage3.log 2>&1 &
| Model | AIME 2024 | MATH 500 | AMC 2023 | Minerva Math | OlympiadBench | Avg. |
|---|---|---|---|---|---|---|
| Qwen-2.5-7B-Instruct | 13.3 | 79.8 | 50.6 | 34.6 | 40.7 | 43.8 |
| rStar-Math-7B | 26.7 | 78.4 | 47.5 | - | 47.1 | - |
| Eurus-2-7B-PRIME | 26.7 | 79.2 | 57.8 | 38.6 | 42.1 | 48.9 |
| Qwen2.5-7B-SimpleRL | 26.7 | 82.4 | 62.5 | 39.7 | 43.3 | 50.9 |
| DeepSeek-R1-Distill-Qwen-1.5B | 28.8 | 82.8 | 62.9 | 26.5 | 43.3 | 48.9 |
| Still-1.5B | 32.5 | 84.4 | 66.7 | 29.0 | 45.4 | 51.6 |
| DeepScaleR-1.5B-Preview | 43.1 | 87.8 | 73.6 | 30.2 | 50.0 | 57.0 |
| DeepScaleR-1.5B-Preview-Reproduce | 40.4 | 87.9 | 72.0 | 31.5 | 50.2 | 56.4 |
| π DeepScaleR-1.5B-Preview-Reproduce | 42.3 | 88.0 | 73.2 | 30.3 | 49.7 | 56.7 |
| O1-Preview | 40.0 | 81.4 | - | - | - | - |
@misc{deepscaler2025,
title={DeepScaleR: Surpassing O1-Preview with a 1.5B Model by Scaling RL},
author={Michael Luo and Sijun Tan and Justin Wong and Xiaoxiang Shi and William Y. Tang and Manan Roongta and Colin Cai and Jeffrey Luo and Tianjun Zhang and Li Erran Li and Raluca Ada Popa and Ion Stoica},
year={2025},
howpublished={\url{https://pretty-radio-b75.notion.site/DeepScaleR-Surpassing-O1-Preview-with-a-1-5B-Model-by-Scaling-RL-19681902c1468005bed8ca303013a4e2}},
note={Notion Blog}
year={2025}
}
Base model
deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B