s1: Simple test-time scaling
Paper • 2501.19393 • Published • 126
How to use mhdaw/s1-32B-awq with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "mhdaw/s1-32B-awq"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "mhdaw/s1-32B-awq",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker model run hf.co/mhdaw/s1-32B-awq
How to use mhdaw/s1-32B-awq with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "mhdaw/s1-32B-awq" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "mhdaw/s1-32B-awq",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'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 "mhdaw/s1-32B-awq" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "mhdaw/s1-32B-awq",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'How to use mhdaw/s1-32B-awq with Docker Model Runner:
docker model run hf.co/mhdaw/s1-32B-awq
Configuration Parsing Warning:In config.json: "quantization_config.modules_to_not_convert" must be an array
This quantized model was created using AutoAWQ version 0.2.8 with quant_config:
{
"zero_point": True,
"q_group_size": 128,
"w_bit": 4,
"version": "GEMM"
}
s1 is a reasoning model finetuned from Qwen2.5-32B-Instruct on just 1,000 examples. It matches o1-preview & exhibits test-time scaling via budget forcing.
The model usage is documented here.
@misc{muennighoff2025s1simpletesttimescaling,
title={s1: Simple test-time scaling},
author={Niklas Muennighoff and Zitong Yang and Weijia Shi and Xiang Lisa Li and Li Fei-Fei and Hannaneh Hajishirzi and Luke Zettlemoyer and Percy Liang and Emmanuel Candès and Tatsunori Hashimoto},
year={2025},
eprint={2501.19393},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2501.19393},
}
Base model
simplescaling/s1-32B