Text Generation
Transformers
Safetensors
qwen2
Generated from Trainer
open-r1
trl
sft
conversational
text-generation-inference
Instructions to use HectorHe/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 HectorHe/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="HectorHe/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("HectorHe/Qwen2.5-1.5B-Open-R1-Distill") model = AutoModelForCausalLM.from_pretrained("HectorHe/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 HectorHe/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 "HectorHe/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": "HectorHe/Qwen2.5-1.5B-Open-R1-Distill", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/HectorHe/Qwen2.5-1.5B-Open-R1-Distill
- SGLang
How to use HectorHe/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 "HectorHe/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": "HectorHe/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 "HectorHe/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": "HectorHe/Qwen2.5-1.5B-Open-R1-Distill", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use HectorHe/Qwen2.5-1.5B-Open-R1-Distill with Docker Model Runner:
docker model run hf.co/HectorHe/Qwen2.5-1.5B-Open-R1-Distill
Commit History
-
End of training
Verified signature8be3371 -
Model save
Verified signature72d6944 -
Training in progress, step 733
Verified signature1545eeb -
Training in progress, step 700
Verified signature260f0a0 -
Training in progress, step 600
Verified signature682765e -
Training in progress, step 500
Verified signaturefe4120c -
Training in progress, step 400
Verified signatureeb9a3a9 -
Training in progress, step 300
Verified signature9ea592a -
Training in progress, step 200
Verified signatureac9e5a5 -
Training in progress, step 100
Verified signature1683960
-
Training in progress, step 200
Verified signature9b2c6df -
Training in progress, step 100
Verified signature85fa0fa -
End of training
Verified signature281105f -
Model save
Verified signature8acca93 -
Training in progress, step 8564
Verified signaturefdf0caf -
Training in progress, step 8500
Verified signature39d456b -
Training in progress, step 8400
Verified signature20318d8 -
Training in progress, step 8300
Verified signature6697ff3 -
Training in progress, step 8200
Verified signature31809d2 -
Training in progress, step 8100
Verified signature1933b32 -
Training in progress, step 8000
Verified signature3d04813 -
Training in progress, step 7900
Verified signaturedb65251 -
Training in progress, step 7800
Verified signaturead6c565 -
Training in progress, step 7700
Verified signature3d7edb5 -
Training in progress, step 7600
Verified signatureaf7d6b3 -
Training in progress, step 7500
Verified signature80a78b7 -
Training in progress, step 7400
Verified signatured0e6c6c -
Training in progress, step 7300
Verified signature6a22377 -
Training in progress, step 7200
Verified signature152a6b7 -
Training in progress, step 7100
Verified signature5696cf9 -
Training in progress, step 7000
Verified signature7d9f690 -
Training in progress, step 6900
Verified signature31381ce -
Training in progress, step 6800
Verified signature77107fe -
Training in progress, step 6700
Verified signature16e2ad1 -
Training in progress, step 6600
Verified signature282f69a -
Training in progress, step 6500
Verified signaturebfedd39 -
Training in progress, step 6400
Verified signaturef2d2259 -
Training in progress, step 6300
Verified signaturea6f4f33 -
Training in progress, step 6200
Verified signature88419eb -
Training in progress, step 6100
Verified signature83b8fd5 -
Training in progress, step 6000
Verified signature5f47c23 -
Training in progress, step 5900
Verified signature7d872ce -
Training in progress, step 5800
Verified signature1cf0201 -
Training in progress, step 5700
Verified signature083ccd0 -
Training in progress, step 5600
Verified signaturee0c9f48 -
Training in progress, step 5500
Verified signature10fc49d -
Training in progress, step 5400
Verified signature4a1db22 -
Training in progress, step 5300
Verified signatured5359ce -
Training in progress, step 5200
Verified signatureabf892a -
Training in progress, step 5100
Verified signature9c02896