How to use from
vLLM
Install from pip and serve model
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "Elliott/Qwen2.5-Math-7B-16k-think"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "Elliott/Qwen2.5-Math-7B-16k-think",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Use Docker
docker model run hf.co/Elliott/Qwen2.5-Math-7B-16k-think
Quick Links

The base Qwen2.5-Math-7B model used by LUFFY, described in Learning to Reason under Off-Policy Guidance. We change to rope_theta from 10000 to 40000 and extend the context window to 16k. Also, we modify the chat_template for the system prompt and add .

Github: https://github.com/ElliottYan/LUFFY

Citation

If you find our model, data, or evaluation code useful, please kindly cite our paper:

@misc{luffy,
      title={Learning to Reason under Off-Policy Guidance}, 
      author={Jianhao Yan and Yafu Li and Zican Hu and Zhi Wang and Ganqu Cui and Xiaoye Qu and Yu Cheng and Yue Zhang},
      year={2025},
      eprint={2504.14945},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2504.14945}, 
}
Downloads last month
638
Safetensors
Model size
8B params
Tensor type
F32
·
Inference Providers NEW
Input a message to start chatting with Elliott/Qwen2.5-Math-7B-16k-think.

Collection including Elliott/Qwen2.5-Math-7B-16k-think

Paper for Elliott/Qwen2.5-Math-7B-16k-think