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 "derek33125/PA-stage2-Qwen7B-147" \
    --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": "derek33125/PA-stage2-Qwen7B-147",
		"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 "derek33125/PA-stage2-Qwen7B-147" \
        --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": "derek33125/PA-stage2-Qwen7B-147",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Quick Links

Uploaded model

  • Developed by: derek33125
  • License: apache-2.0
  • Finetuned from model : derek33125/PA-stage1-Qwen7B-300

This qwen2 model was trained 2x faster with Unsloth and Huggingface's TRL library.

Dataset

  • EmoLLM
  • SoulChat Multi-Trun Dataset
  • Real mental health conversation data where the responses are replaced by DeepSeek-R1

Method

  • We use GRPO fine-tuning to enhance its ability to think
  • Reward model:
    • Thinking length (prevent giving too short/long result)
    • Calling other LLM with different setup to give the reward for the response (using average scoring for 3 judges)
    • Answer Format
  • Trained 147 steps

Downloads last month
1
Safetensors
Model size
8B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for derek33125/PA-stage2-Qwen7B-147

Base model

Qwen/Qwen2.5-7B
Finetuned
(1)
this model

Collection including derek33125/PA-stage2-Qwen7B-147