Text Generation
Transformers
Safetensors
qwen2
Generated from Trainer
open-r1
trl
sft
conversational
text-generation-inference
Instructions to use DigitalLifeYZQiu/Qwen2.5-1.5B-Open-R1-Distill with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DigitalLifeYZQiu/Qwen2.5-1.5B-Open-R1-Distill with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="DigitalLifeYZQiu/Qwen2.5-1.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("DigitalLifeYZQiu/Qwen2.5-1.5B-Open-R1-Distill") model = AutoModelForCausalLM.from_pretrained("DigitalLifeYZQiu/Qwen2.5-1.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 DigitalLifeYZQiu/Qwen2.5-1.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 "DigitalLifeYZQiu/Qwen2.5-1.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": "DigitalLifeYZQiu/Qwen2.5-1.5B-Open-R1-Distill", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/DigitalLifeYZQiu/Qwen2.5-1.5B-Open-R1-Distill
- SGLang
How to use DigitalLifeYZQiu/Qwen2.5-1.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 "DigitalLifeYZQiu/Qwen2.5-1.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": "DigitalLifeYZQiu/Qwen2.5-1.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 "DigitalLifeYZQiu/Qwen2.5-1.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": "DigitalLifeYZQiu/Qwen2.5-1.5B-Open-R1-Distill", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use DigitalLifeYZQiu/Qwen2.5-1.5B-Open-R1-Distill with Docker Model Runner:
docker model run hf.co/DigitalLifeYZQiu/Qwen2.5-1.5B-Open-R1-Distill
Commit History
-
End of training
Verified signaturee53bd24 -
Model save
Verified signaturefac8379 -
Training in progress, step 8500
Verified signature1d9b792 -
Training in progress, step 8300
Verified signature0941a36 -
Training in progress, step 8100
Verified signature22355f3 -
Training in progress, step 7900
Verified signature8e91262 -
Training in progress, step 7700
Verified signature66c6c5b -
Training in progress, step 7500
Verified signature6335dc0 -
Training in progress, step 7300
Verified signaturef905184 -
Training in progress, step 7100
Verified signature4e5df23 -
Training in progress, step 6900
Verified signature69c9e9e -
Training in progress, step 6700
Verified signature1278e46 -
Training in progress, step 6500
Verified signature261646a -
Training in progress, step 6300
Verified signature2bc987e -
Training in progress, step 6100
Verified signaturec20c21b -
Training in progress, step 5900
Verified signature7b665ba -
Training in progress, step 5700
Verified signature80c7dfc -
Training in progress, step 5500
Verified signaturefc2fac3 -
Training in progress, step 5300
Verified signature746634b -
Training in progress, step 5100
Verified signatureb5eb683 -
Training in progress, step 4900
Verified signature9ba7e6c -
Training in progress, step 4700
Verified signaturea0f292e -
Training in progress, step 4500
Verified signatureffe12ad -
Training in progress, step 4300
Verified signature8207d52 -
Training in progress, step 4100
Verified signature5daa7aa -
Training in progress, step 3900
Verified signatured27493c -
Training in progress, step 3700
Verified signaturec0520f1 -
Training in progress, step 3500
Verified signature4424da3 -
Training in progress, step 3300
Verified signaturef4db2ca -
Training in progress, step 3100
Verified signature8e22d91 -
Training in progress, step 2900
Verified signature96217a4 -
Training in progress, step 2700
Verified signature5391948 -
Training in progress, step 2500
Verified signaturee062150 -
Training in progress, step 2300
Verified signature81905b3 -
Training in progress, step 2100
Verified signature2dd4baa -
Training in progress, step 1900
Verified signature0ab0c53 -
Training in progress, step 1700
Verified signature0cf8122 -
Training in progress, step 1500
Verified signature6b25598 -
Training in progress, step 1300
Verified signature7e0aca8 -
Training in progress, step 1100
Verified signature1df5efe -
Training in progress, step 900
Verified signaturea79fa1a -
Training in progress, step 700
Verified signature8f38804 -
Training in progress, step 500
Verified signatureec2f105 -
Training in progress, step 300
Verified signature91695c7 -
Training in progress, step 100
Verified signaturec658de4 -
initial commit
Verified signaturef0a47bf