Run this model with HF Jobs
Run agentica-org/DeepScaleR-1.5B-Preview 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 https://huggingface.co/agentica-org/DeepScaleR-1.5B-Preview. 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/agentica-org/DeepScaleR-1.5B-Preview 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 https://huggingface.co/agentica-org/DeepScaleR-1.5B-Preview. 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 https://huggingface.co/agentica-org/DeepScaleR-1.5B-Preview. 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 agentica-org/DeepScaleR-1.5B-Preview with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use agentica-org/DeepScaleR-1.5B-Preview with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="agentica-org/DeepScaleR-1.5B-Preview")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("agentica-org/DeepScaleR-1.5B-Preview") model = AutoModelForCausalLM.from_pretrained("agentica-org/DeepScaleR-1.5B-Preview", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use agentica-org/DeepScaleR-1.5B-Preview with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "agentica-org/DeepScaleR-1.5B-Preview" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "agentica-org/DeepScaleR-1.5B-Preview", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/agentica-org/DeepScaleR-1.5B-Preview
- SGLang
How to use agentica-org/DeepScaleR-1.5B-Preview 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 "agentica-org/DeepScaleR-1.5B-Preview" \ --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": "agentica-org/DeepScaleR-1.5B-Preview", "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 "agentica-org/DeepScaleR-1.5B-Preview" \ --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": "agentica-org/DeepScaleR-1.5B-Preview", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use agentica-org/DeepScaleR-1.5B-Preview with Docker Model Runner:
docker model run hf.co/agentica-org/DeepScaleR-1.5B-Preview
Commit ·
87002f7
1
Parent(s): 1737ca6
Update README.md
Browse files1234---license: mitlibrary_name: transformers---123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081---license: mitlibrary_name: transformersdatasets:- AI-MO/NuminaMath-CoT- KbsdJames/Omni-MATH- RUC-AIBOX/STILL-3-Preview-RL-Data- hendrycks/competition_mathlanguage:- enbase_model:- deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B---<div align="center"><span style="font-family: default; font-size: 1.5em;">DeepScaleR-1.5B-Preview</span><div>🚀 Democratizing Reinforcement Learning for LLMs 🌟</div></div><div align="center" style="line-height: 1;"><a href="https://github.com/agentica-project/deepscaler" target="_blank" style="margin: 2px;"><img alt="Code" src="https://img.shields.io/badge/DeepScaleR-000000?style=for-the-badge&logo=github&logoColor=000&logoColor=white" style="display: inline-block; vertical-align: middle;"/></a><a href="https://img.shields.io/badge/Notion-%23000000.svg?style=for-the-badge&logo=notion&logoColor=white" target="_blank" style="margin: 2px;"><img alt="Blog" src="https://www.notion.so/DeepScaleR-Scaling-R1-Models-with-Reinforcement-Learning-1891e65ddc7f80ad8cc6dbe0069a66fa?pvs=4" style="display: inline-block; vertical-align: middle;"/></a><a href="https://huggingface.co/agentica-org" target="_blank" style="margin: 2px;"><img alt="Hugging Face" src="https://img.shields.io/badge/Agentica-fcd022?style=for-the-badge&logo=huggingface&logoColor=000&labelColor" style="display: inline-block; vertical-align: middle;"/></a></div></div></div>## Model Details### Model Description## Training Details### Training Data### Training Procedure## EvaluationWe report Pass@1 accuracy averaged over 16 samples for each problem.| Model | AIME 2024 | MATH 500 | AMC 2023 | Minerva Math | OlympiadBench | Avg. ||-------|-----------|-----------|-----------|--------------|---------------|------|| 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 | <strong>39.7</strong> | 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 || <strong>DeepScaleR-1.5B-Preview</strong> | <strong>43.1</strong> | <strong>87.8</strong> | <strong>73.6</strong> | 30.2 | - | - || O1-Preview | 40.0 | 81.4 | - | - | - | - |## Acknowledgement- Our training experiments are powered by our heavily modified fork of [Verl](https://github.com/agentica-project/verl), an open-source RLHF library.- Our model is trained on top of [`DeepSeek-R1-Distill-Qwen-1.5B`](https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B).- Our work is done as part of [Berkeley Sky Computing Lab](https://skycomputing.berkeley.edu/) and [Berkeley AI Research](https://bair.berkeley.edu/).## Citation```bibtex@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 Tang and Manan Roongta and Colin Cai and Jeffrey Luo and Tianjun Zhang and Erran Li and Raluca Ada Popa and Ion Stoica},year={2025},howpublished={\url{}},note={Notion Blog}year={2025}}
README.md+81-4