Text Generation
Transformers
Safetensors
qwen2
Generated from Trainer
open-r1
trl
grpo
conversational
text-generation-inference
Instructions to use Yukang/Qwen2.5-3B-Open-R1-GRPO with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Yukang/Qwen2.5-3B-Open-R1-GRPO with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Yukang/Qwen2.5-3B-Open-R1-GRPO") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Yukang/Qwen2.5-3B-Open-R1-GRPO") model = AutoModelForCausalLM.from_pretrained("Yukang/Qwen2.5-3B-Open-R1-GRPO", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Yukang/Qwen2.5-3B-Open-R1-GRPO with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Yukang/Qwen2.5-3B-Open-R1-GRPO" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Yukang/Qwen2.5-3B-Open-R1-GRPO", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Yukang/Qwen2.5-3B-Open-R1-GRPO
- SGLang
How to use Yukang/Qwen2.5-3B-Open-R1-GRPO 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 "Yukang/Qwen2.5-3B-Open-R1-GRPO" \ --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": "Yukang/Qwen2.5-3B-Open-R1-GRPO", "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 "Yukang/Qwen2.5-3B-Open-R1-GRPO" \ --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": "Yukang/Qwen2.5-3B-Open-R1-GRPO", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Yukang/Qwen2.5-3B-Open-R1-GRPO with Docker Model Runner:
docker model run hf.co/Yukang/Qwen2.5-3B-Open-R1-GRPO
Commit History
-
Training in progress, step 2500
Verified signaturee7d82ab -
Training in progress, step 2400
Verified signature8a469a8 -
Training in progress, step 2300
Verified signatured219480 -
Training in progress, step 2200
Verified signature5450eea -
End of training
Verified signature68082e8 -
Model save
Verified signature7e03ccf -
End of training
Verified signaturecb5eba0 -
Model save
Verified signature280b418 -
Training in progress, step 2900
Verified signature52fb3a4 -
End of training
Verified signature58d14ef -
Model save
Verified signatureb40b0bc -
Training in progress, step 2100
Verified signaturee58ba66 -
Training in progress, step 2800
Verified signature686bac7 -
End of training
Verified signatured85294c -
Model save
Verified signaturec87eb90 -
Training in progress, step 2900
Verified signatured800d44 -
Training in progress, step 2000
Verified signature573d383 -
Training in progress, step 2700
Verified signature69010a9 -
Training in progress, step 2800
Verified signature4e0c885 -
Training in progress, step 2600
Verified signaturebcccd6b -
Training in progress, step 2700
Verified signature0dcf149 -
End of training
Verified signature1ab317a -
Model save
Verified signature41b06a2 -
Training in progress, step 1900
Verified signature877c200 -
End of training
Verified signature03922a4 -
Model save
Verified signature9862b94 -
Training in progress, step 2500
Verified signature9e73986 -
End of training
Verified signature755af4b -
Model save
Verified signature43daa76 -
End of training
Verified signature681bc80 -
Model save
Verified signaturef7e8bd9 -
Training in progress, step 2600
Verified signature6a0d8e9 -
Training in progress, step 1800
Verified signaturef2dc3e2 -
Training in progress, step 2400
Verified signature1268195 -
Training in progress, step 2900
Verified signature29afe95 -
Training in progress, step 2500
Verified signature3e8a85f -
Training in progress, step 2800
Verified signature50ad08e -
Training in progress, step 2300
Verified signaturef38d7da -
Training in progress, step 2400
Verified signaturea5c5143 -
Training in progress, step 1700
Verified signaturef3c57f8 -
Training in progress, step 2700
Verified signature545c0c0 -
Training in progress, step 2200
Verified signature8b98390 -
Training in progress, step 2300
Verified signature31085bf -
Training in progress, step 1600
Verified signature3dd96e5 -
Training in progress, step 2600
Verified signature795cf5b -
Training in progress, step 2100
Verified signatureb21ae5e -
Training in progress, step 2200
Verified signature6c16cdc -
Training in progress, step 2500
Verified signaturea8ed353 -
Training in progress, step 2000
Verified signature0f3b44d -
Training in progress, step 2100
Verified signaturefbbd39d