How to use from
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 "ahmed-3m/qwen25-1.5b-gsm8k-sdpo-final" \
    --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": "ahmed-3m/qwen25-1.5b-gsm8k-sdpo-final",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
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 "ahmed-3m/qwen25-1.5b-gsm8k-sdpo-final" \
        --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": "ahmed-3m/qwen25-1.5b-gsm8k-sdpo-final",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Quick Links

Phase 2 Final Model

Merged full model produced by the Phase 2 online-DPO / SDPO-style experiment in the Lab 0 self-training project.

Fair evaluation

Deterministic greedy exact-match evaluation with the required #### <number> answer parser:

  • Full-set eval: 45.41% GSM8K / 57.67% SVAMP
  • Second fixed-subset eval: 48% GSM8K / 50% SVAMP

These results currently outperform the old Phase 3 REINFORCE checkpoints under the same fair-eval setup.

Notes

  • Base model: Qwen/Qwen2.5-1.5B-Instruct
  • Hardware/training constraints: fp16 + SDPA, no bf16, no Flash Attention 2
  • This is a research artifact, not a production math model

Extra files

  • phase2_final_full_eval.json
  • phase2_vs_phase3_independent_shuffle.json
Downloads last month
6
Safetensors
Model size
2B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for ahmed-3m/qwen25-1.5b-gsm8k-sdpo-final

Finetuned
(1803)
this model