Text Generation
Transformers
Safetensors
qwen2
Generated from Trainer
open-r1
trl
sft
conversational
text-generation-inference
Instructions to use Sunnylululu/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 Sunnylululu/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="Sunnylululu/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("Sunnylululu/Qwen2.5-0.5B-Open-R1-Distill") model = AutoModelForCausalLM.from_pretrained("Sunnylululu/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 Sunnylululu/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 "Sunnylululu/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": "Sunnylululu/Qwen2.5-0.5B-Open-R1-Distill", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Sunnylululu/Qwen2.5-0.5B-Open-R1-Distill
- SGLang
How to use Sunnylululu/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 "Sunnylululu/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": "Sunnylululu/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 "Sunnylululu/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": "Sunnylululu/Qwen2.5-0.5B-Open-R1-Distill", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Sunnylululu/Qwen2.5-0.5B-Open-R1-Distill with Docker Model Runner:
docker model run hf.co/Sunnylululu/Qwen2.5-0.5B-Open-R1-Distill
Commit History
-
End of training
Verified signature55569ac -
Model save
Verified signature302f194 -
Training in progress, step 940
Verified signaturebf67eb9 -
Training in progress, step 900
Verified signaturef2692cf -
Training in progress, step 800
Verified signature734bc63 -
Training in progress, step 700
Verified signature40f7dc4 -
Training in progress, step 600
Verified signaturecacb223 -
Training in progress, step 500
Verified signature032ab61 -
Training in progress, step 400
Verified signaturea9f441b -
Training in progress, step 300
Verified signature2029619 -
Training in progress, step 200
Verified signature40b681e -
Training in progress, step 100
Verified signatureed2e9e6 -
End of training
Verified signature3989c51 -
Model save
Verified signature23de023 -
End of training
Verified signaturecdc3141 -
Model save
Verified signature9b66fa9 -
Training in progress, step 940
Verified signaturedb2120b -
Training in progress, step 900
Verified signatured9855fa -
Training in progress, step 800
Verified signaturef3c999e -
Training in progress, step 700
Verified signature0cc77b8 -
Training in progress, step 600
Verified signature9a0384f -
Training in progress, step 500
Verified signatureeeeff82 -
Training in progress, step 300
Verified signature65ac29c -
Training in progress, step 200
Verified signaturea630362 -
Training in progress, step 100
Verified signaturea9e79bd -
Training in progress, step 100
Verified signature36bd018
-
End of training
Verified signature2ac7600 -
Model save
Verified signaturebdbcc4d -
Training in progress, step 900
Verified signaturee96bbc5 -
Training in progress, step 800
Verified signature0b62e4b -
Training in progress, step 700
Verified signature059bc2d -
Training in progress, step 600
Verified signaturead139ba -
Training in progress, step 500
Verified signature28cf448 -
Training in progress, step 400
Verified signaturedd1a2ea -
Training in progress, step 300
Verified signature7a87de0 -
Training in progress, step 200
Verified signature9d5a1f0 -
initial commit
Verified signaturef850d73