Text Generation
Transformers
Safetensors
qwen2
Generated from Trainer
open-r1
trl
grpo
conversational
text-generation-inference
Instructions to use jyc0325/Qwen2.5-1.5B-Open-R1-Code-GRPO with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jyc0325/Qwen2.5-1.5B-Open-R1-Code-GRPO with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="jyc0325/Qwen2.5-1.5B-Open-R1-Code-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("jyc0325/Qwen2.5-1.5B-Open-R1-Code-GRPO") model = AutoModelForCausalLM.from_pretrained("jyc0325/Qwen2.5-1.5B-Open-R1-Code-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 jyc0325/Qwen2.5-1.5B-Open-R1-Code-GRPO with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jyc0325/Qwen2.5-1.5B-Open-R1-Code-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": "jyc0325/Qwen2.5-1.5B-Open-R1-Code-GRPO", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/jyc0325/Qwen2.5-1.5B-Open-R1-Code-GRPO
- SGLang
How to use jyc0325/Qwen2.5-1.5B-Open-R1-Code-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 "jyc0325/Qwen2.5-1.5B-Open-R1-Code-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": "jyc0325/Qwen2.5-1.5B-Open-R1-Code-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 "jyc0325/Qwen2.5-1.5B-Open-R1-Code-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": "jyc0325/Qwen2.5-1.5B-Open-R1-Code-GRPO", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use jyc0325/Qwen2.5-1.5B-Open-R1-Code-GRPO with Docker Model Runner:
docker model run hf.co/jyc0325/Qwen2.5-1.5B-Open-R1-Code-GRPO
Commit History
-
End of training
Verified signaturecb1e433 -
Model save
Verified signature51436a3 -
Training in progress, step 500
Verified signature3fadd2c -
Training in progress, step 450
Verified signature363567a -
Training in progress, step 400
Verified signature4f9fba8 -
Training in progress, step 350
Verified signature75795f8 -
Training in progress, step 300
Verified signature4e96b7a -
Training in progress, step 250
Verified signature790cca5 -
Training in progress, step 200
Verified signatureb1a30c0 -
Training in progress, step 150
Verified signature634f89e -
Training in progress, step 100
Verified signaturead698ad
-
Training in progress, step 50
Verified signaturea7eb5fa
-
End of training
Verified signatured09da34 -
Model save
Verified signature29a4afb -
Training in progress, step 500
Verified signature9085543 -
Training in progress, step 475
Verified signature7b86053 -
Training in progress, step 450
Verified signaturedb00a68 -
Training in progress, step 425
Verified signature36079e2 -
Training in progress, step 400
Verified signature9dcca8c -
Training in progress, step 375
Verified signature342f068 -
Training in progress, step 350
Verified signatured7a5fb5 -
Training in progress, step 325
Verified signaturee090091 -
Training in progress, step 300
Verified signaturef6b7d9f -
Training in progress, step 275
Verified signaturee57f050 -
Training in progress, step 250
Verified signature9cc6e65 -
Training in progress, step 225
Verified signatureac97724 -
Training in progress, step 200
Verified signature19e43a5 -
Training in progress, step 175
Verified signature1f96141 -
Training in progress, step 150
Verified signature78199e3 -
Training in progress, step 125
Verified signature44b2545 -
Training in progress, step 100
Verified signature678aa59 -
Training in progress, step 75
Verified signatureab0091e -
Training in progress, step 50
Verified signature9b01e82 -
Training in progress, step 25
Verified signature870b9c7
-
Training in progress, step 300
Verified signature2588ffc -
Training in progress, step 275
Verified signature07aac26 -
Training in progress, step 250
Verified signature89dc130 -
Training in progress, step 225
Verified signature5b5ece1 -
Training in progress, step 200
Verified signature18f3ae1 -
Training in progress, step 175
Verified signaturedd059ff -
Training in progress, step 150
Verified signature493518e -
Training in progress, step 125
Verified signature6dd6075 -
Training in progress, step 100
Verified signature4882d9b -
Training in progress, step 75
Verified signaturec2adc1a
-
Training in progress, step 50
Verified signatured3f9ccd -
Training in progress, step 25
Verified signature8ccf93e -
initial commit
Verified signature577fa31