Text Generation
Transformers
Safetensors
qwen3
Generated from Trainer
open-r1
trl
grpo
conversational
text-generation-inference
Instructions to use Blancy/Qwen3-1.7B-Open-R1-Code-GRPO with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Blancy/Qwen3-1.7B-Open-R1-Code-GRPO with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Blancy/Qwen3-1.7B-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("Blancy/Qwen3-1.7B-Open-R1-Code-GRPO") model = AutoModelForCausalLM.from_pretrained("Blancy/Qwen3-1.7B-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 Blancy/Qwen3-1.7B-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 "Blancy/Qwen3-1.7B-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": "Blancy/Qwen3-1.7B-Open-R1-Code-GRPO", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Blancy/Qwen3-1.7B-Open-R1-Code-GRPO
- SGLang
How to use Blancy/Qwen3-1.7B-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 "Blancy/Qwen3-1.7B-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": "Blancy/Qwen3-1.7B-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 "Blancy/Qwen3-1.7B-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": "Blancy/Qwen3-1.7B-Open-R1-Code-GRPO", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Blancy/Qwen3-1.7B-Open-R1-Code-GRPO with Docker Model Runner:
docker model run hf.co/Blancy/Qwen3-1.7B-Open-R1-Code-GRPO
Commit History
-
Training in progress, step 39
Verified signature48fbdd9 -
Training in progress, step 30
Verified signature3165187
-
Training in progress, step 20
Verified signature9b1eff4 -
Training in progress, step 10
Verified signature65f14bb -
Training in progress, step 30
Verified signatured776a9f -
Training in progress, step 20
Verified signature6a2c9f9 -
Training in progress, step 10
Verified signature36d494d
-
Training in progress, step 39
Verified signatured0ea861 -
Training in progress, step 30
Verified signature591a2af -
Training in progress, step 20
Verified signaturec1b5060 -
Training in progress, step 10
Verified signature56d8d29
-
Training in progress, step 39
Verified signaturecdf5208
-
Training in progress, step 30
Verified signature7d66f53 -
Training in progress, step 20
Verified signature3f9de0f
-
Training in progress, step 30
Verified signaturec36367e -
Training in progress, step 20
Verified signature5e5eda5
-
Training in progress, epoch 1
Verified signaturee31ed87
-
Training in progress, epoch 1
Verified signature53d561a
-
Training in progress, epoch 1
Verified signature985b83c -
Training in progress, epoch 1
Verified signature196ef1b -
Training in progress, epoch 1
Verified signaturee0efa1a -
Training in progress, epoch 1
Verified signatureec274d1
-
Training in progress, step 10
Verified signaturead1b427
-
Training in progress, step 50
Verified signaturec67acd2 -
Training in progress, step 40
Verified signature7a958fe -
Training in progress, step 30
Verified signature3cc539d
-
Training in progress, step 20
Verified signatureccf510f -
Training in progress, step 10
Verified signature1ca2b71 -
Training in progress, step 39
Verified signature6d8c6b4 -
Training in progress, step 30
Verified signatureb6562ad -
Training in progress, step 20
Verified signature19e00cf -
Training in progress, step 10
Verified signaturee1ad8b3 -
Training in progress, step 39
Verified signature42b057a -
Training in progress, step 30
Verified signaturee95ad72 -
Training in progress, step 20
Verified signature9a47088 -
Training in progress, step 10
Verified signature232181c
-
Training in progress, step 39
Verified signature4aceab3 -
Training in progress, step 30
Verified signature5cd255b -
Training in progress, step 20
Verified signature8ca7415 -
Training in progress, step 10
Verified signaturebf3675e
-
Training in progress, step 117
Verified signature8492fe7
-
Training in progress, step 110
Verified signature8885efd -
Training in progress, step 100
Verified signature72ccdc7 -
Training in progress, step 90
Verified signature232a51d -
Training in progress, step 80
Verified signature81bac87 -
Training in progress, step 70
Verified signature3fdc720 -
Training in progress, step 60
Verified signature82d9b2a -
Training in progress, step 50
Verified signatureb09e63e -
Training in progress, step 40
Verified signature7dfbe3e -
Training in progress, step 30
Verified signature2ef099f