Text Generation
Transformers
Safetensors
qwen2
Generated from Trainer
open-r1
trl
grpo
conversational
text-generation-inference
Instructions to use jnian/Qwen2.5-0.5B-Open-R1-Distill with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jnian/Qwen2.5-0.5B-Open-R1-Distill with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="jnian/Qwen2.5-0.5B-Open-R1-Distill") 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("jnian/Qwen2.5-0.5B-Open-R1-Distill") model = AutoModelForCausalLM.from_pretrained("jnian/Qwen2.5-0.5B-Open-R1-Distill", 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 jnian/Qwen2.5-0.5B-Open-R1-Distill with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jnian/Qwen2.5-0.5B-Open-R1-Distill" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jnian/Qwen2.5-0.5B-Open-R1-Distill", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/jnian/Qwen2.5-0.5B-Open-R1-Distill
- SGLang
How to use jnian/Qwen2.5-0.5B-Open-R1-Distill 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 "jnian/Qwen2.5-0.5B-Open-R1-Distill" \ --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": "jnian/Qwen2.5-0.5B-Open-R1-Distill", "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 "jnian/Qwen2.5-0.5B-Open-R1-Distill" \ --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": "jnian/Qwen2.5-0.5B-Open-R1-Distill", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use jnian/Qwen2.5-0.5B-Open-R1-Distill with Docker Model Runner:
docker model run hf.co/jnian/Qwen2.5-0.5B-Open-R1-Distill
Commit History
-
Training in progress, step 552000
Verified signaturecf1bcbc -
Training in progress, step 551000
Verified signature9ea7c1c -
Training in progress, step 550000
Verified signaturef25968e -
Training in progress, step 549000
Verified signaturedcaa012 -
Training in progress, step 548000
Verified signaturebf09584 -
Training in progress, step 547000
Verified signature0706fae -
Training in progress, step 546000
Verified signaturee9e7010 -
Training in progress, step 545000
Verified signature21bc56e -
Training in progress, step 544000
Verified signaturec0369d5 -
Training in progress, step 543000
Verified signaturec7a122c -
Training in progress, step 542000
Verified signature3e5bc1e -
Training in progress, step 541000
Verified signatureb2f6645 -
Training in progress, step 540000
Verified signature6c93050 -
Training in progress, step 539000
Verified signature167e3ab -
Training in progress, step 538000
Verified signature52a7b4b -
Training in progress, step 537000
Verified signature752352b -
Training in progress, step 536000
Verified signature8bf3980 -
Training in progress, step 535000
Verified signature515f868 -
Training in progress, step 534000
Verified signaturec50ac25 -
Training in progress, step 533000
Verified signaturef60377c -
Training in progress, step 532000
Verified signaturebc6388e -
Training in progress, step 531000
Verified signaturef80d6e0 -
Training in progress, step 530000
Verified signature9c437a9 -
Training in progress, step 529000
Verified signature7584497 -
Training in progress, step 528000
Verified signaturefd51e9b -
Training in progress, step 527000
Verified signatured65e44e -
Training in progress, step 526000
Verified signaturede0ab36 -
Training in progress, step 525000
Verified signature211724e -
Training in progress, step 524000
Verified signature06cfba8 -
Training in progress, step 523000
Verified signature155c893 -
Training in progress, step 522000
Verified signature0e091d7 -
Training in progress, step 521000
Verified signatured9f9791 -
Training in progress, step 520000
Verified signaturee1623e5 -
Training in progress, step 519000
Verified signature8c7f5d5 -
Training in progress, step 518000
Verified signaturebee8962 -
Training in progress, step 517000
Verified signatureb0b909e -
Training in progress, step 516000
Verified signature54c8f55 -
Training in progress, step 515000
Verified signaturec911e19 -
Training in progress, step 514000
Verified signature4882fd0 -
Training in progress, step 513000
Verified signaturecfacc9f -
Training in progress, step 512000
Verified signature5b9109e -
Training in progress, step 511000
Verified signatured5fd549 -
Training in progress, step 510000
Verified signature31b6636 -
Training in progress, step 509000
Verified signaturee8f1603 -
Training in progress, step 508000
Verified signature123b0a6 -
Training in progress, step 507000
Verified signature6201e1d -
Training in progress, step 506000
Verified signature1e4a294 -
Training in progress, step 505000
Verified signaturee08a038 -
Training in progress, step 504000
Verified signature3f7e77c -
Training in progress, step 503000
Verified signatureb041d75