Text Generation
Transformers
Safetensors
qwen2
Generated from Trainer
open-r1
trl
sft
conversational
text-generation-inference
Instructions to use YangZhoumill/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 YangZhoumill/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="YangZhoumill/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("YangZhoumill/Qwen2.5-1.5B-Open-R1-Distill") model = AutoModelForCausalLM.from_pretrained("YangZhoumill/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 YangZhoumill/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 "YangZhoumill/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": "YangZhoumill/Qwen2.5-1.5B-Open-R1-Distill", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/YangZhoumill/Qwen2.5-1.5B-Open-R1-Distill
- SGLang
How to use YangZhoumill/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 "YangZhoumill/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": "YangZhoumill/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 "YangZhoumill/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": "YangZhoumill/Qwen2.5-1.5B-Open-R1-Distill", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use YangZhoumill/Qwen2.5-1.5B-Open-R1-Distill with Docker Model Runner:
docker model run hf.co/YangZhoumill/Qwen2.5-1.5B-Open-R1-Distill
Commit History
-
Training in progress, step 6500
Verified signature22eb2da -
Training in progress, step 6000
Verified signature9d75e49 -
Training in progress, step 5500
Verified signature4fbbb2d -
Training in progress, step 5000
Verified signature1611f0b -
Training in progress, step 4500
Verified signatureba86842 -
Training in progress, step 4000
Verified signaturef624640 -
Training in progress, step 3500
Verified signature8405f91 -
Training in progress, step 3000
Verified signature202204a -
Training in progress, step 2500
Verified signature3a9c169 -
Training in progress, step 2000
Verified signaturec8e1512 -
Training in progress, step 1500
Verified signature609acf0 -
Training in progress, step 1000
Verified signaturef48d7a4 -
Training in progress, step 500
Verified signatureded4b7b
-
End of training
Verified signature08b8982 -
Model save
Verified signature3d86a5d -
Training in progress, step 325
Verified signature6045a7c -
End of training
Verified signature59dd2b3 -
Model save
Verified signatureac4c796 -
Training in progress, step 1300
Verified signature39b6788 -
Training in progress, step 1200
Verified signature65031c3 -
Training in progress, step 1100
Verified signature7324d99 -
Training in progress, step 1000
Verified signatureb261904 -
Training in progress, step 900
Verified signature0c8970c -
Training in progress, step 800
Verified signature0b9f7a4 -
Training in progress, step 700
Verified signature8d933f3 -
Training in progress, step 600
Verified signatureb153fb4 -
Training in progress, step 500
Verified signaturee8aac95 -
Training in progress, step 400
Verified signature73ab154 -
Training in progress, step 300
Verified signaturebb428ac -
Training in progress, step 200
Verified signaturec671845 -
Training in progress, step 100
Verified signaturef2aaa6e -
initial commit
Verified signature6e027c4