Text Generation
Transformers
Safetensors
qwen2
Generated from Trainer
open-r1
trl
grpo
conversational
text-generation-inference
Instructions to use kangdawei/DRA-DR_GRPO with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kangdawei/DRA-DR_GRPO with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="kangdawei/DRA-DR_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("kangdawei/DRA-DR_GRPO") model = AutoModelForCausalLM.from_pretrained("kangdawei/DRA-DR_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 kangdawei/DRA-DR_GRPO with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "kangdawei/DRA-DR_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": "kangdawei/DRA-DR_GRPO", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/kangdawei/DRA-DR_GRPO
- SGLang
How to use kangdawei/DRA-DR_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 "kangdawei/DRA-DR_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": "kangdawei/DRA-DR_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 "kangdawei/DRA-DR_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": "kangdawei/DRA-DR_GRPO", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use kangdawei/DRA-DR_GRPO with Docker Model Runner:
docker model run hf.co/kangdawei/DRA-DR_GRPO
Commit History
-
End of training
Verified signaturee58cbeb -
Model save
Verified signature6ece1d2 -
Training in progress, step 500
Verified signaturec62b10c -
Training in progress, step 375
Verified signature88efecc -
Training in progress, step 350
Verified signature44d2d40 -
Training in progress, step 300
Verified signature48d738b
-
Training in progress, step 275
Verified signature2d66034 -
Training in progress, step 250
Verified signature609a4e9 -
Training in progress, step 225
Verified signaturea82147c -
Training in progress, step 200
Verified signature9b72775 -
Training in progress, step 175
Verified signatured69570a
-
Training in progress, step 125
Verified signature7c7c84d -
Training in progress, step 75
Verified signature2443d27 -
Training in progress, step 25
Verified signature634dc92
-
End of training
Verified signature56e6239 -
Model save
Verified signatured3d483d -
Training in progress, step 500
Verified signaturebe6a235
-
Training in progress, step 475
Verified signature0d4ddaa -
Training in progress, step 450
Verified signature78e5916 -
Training in progress, step 425
Verified signatureae319b1 -
Training in progress, step 400
Verified signature55abaca -
Training in progress, step 375
Verified signature0964787 -
Training in progress, step 350
Verified signatureab506d0 -
Training in progress, step 325
Verified signature21a883f -
Training in progress, step 300
Verified signaturefd736dd -
Training in progress, step 275
Verified signaturefd8d05e -
Training in progress, step 250
Verified signaturea13d6b9 -
Training in progress, step 225
Verified signatureeed8ee1 -
Training in progress, step 200
Verified signature2e35699 -
Training in progress, step 175
Verified signatured1ff50f -
Training in progress, step 150
Verified signaturea436b42 -
Training in progress, step 125
Verified signature72eb5bc -
Training in progress, step 100
Verified signature1f423f3 -
Training in progress, step 75
Verified signatured19d519 -
Training in progress, step 50
Verified signature63c2197 -
Training in progress, step 25
Verified signature8ce4d1a
-
initial commit
Verified signature324b15f