Text Generation
Transformers
Safetensors
qwen2
Generated from Trainer
open-r1
trl
sft
conversational
text-generation-inference
Instructions to use wooferclaw/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 wooferclaw/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="wooferclaw/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("wooferclaw/Qwen2.5-1.5B-Open-R1-Distill") model = AutoModelForCausalLM.from_pretrained("wooferclaw/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 wooferclaw/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 "wooferclaw/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": "wooferclaw/Qwen2.5-1.5B-Open-R1-Distill", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/wooferclaw/Qwen2.5-1.5B-Open-R1-Distill
- SGLang
How to use wooferclaw/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 "wooferclaw/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": "wooferclaw/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 "wooferclaw/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": "wooferclaw/Qwen2.5-1.5B-Open-R1-Distill", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use wooferclaw/Qwen2.5-1.5B-Open-R1-Distill with Docker Model Runner:
docker model run hf.co/wooferclaw/Qwen2.5-1.5B-Open-R1-Distill
Commit History
-
End of training
Verified signaturefb6ddd6 -
Model save
Verified signatureedb440f -
Training in progress, step 42880
Verified signature9cadd88 -
Training in progress, step 42800
Verified signature4b9a87a -
Training in progress, step 42700
Verified signature0b6c69b -
Training in progress, step 42600
Verified signature2fb7382 -
Training in progress, step 42500
Verified signature1eb0344 -
Training in progress, step 42400
Verified signature14bfea9 -
Training in progress, step 42300
Verified signature23dbf97 -
Training in progress, step 42200
Verified signature7113152 -
Training in progress, step 42100
Verified signature37a8190 -
Training in progress, step 42000
Verified signature1b8fabe -
Training in progress, step 41900
Verified signature6718029 -
Training in progress, step 41800
Verified signaturef1efd6d -
Training in progress, step 41700
Verified signature1a4b442 -
Training in progress, step 41600
Verified signature21def4e -
Training in progress, step 41500
Verified signaturee178642 -
Training in progress, step 41400
Verified signature03c5904 -
Training in progress, step 41300
Verified signature30666ca -
Training in progress, step 41200
Verified signature8d789de -
Training in progress, step 41100
Verified signature00e38c7 -
Training in progress, step 41000
Verified signaturee173e93 -
Training in progress, step 40900
Verified signaturee948812 -
Training in progress, step 40800
Verified signatured09e82d -
Training in progress, step 40700
Verified signatureb5c7dde -
Training in progress, step 40600
Verified signaturee09d74a -
Training in progress, step 40500
Verified signature423fa2f -
Training in progress, step 40400
Verified signaturec0aa592 -
Training in progress, step 40300
Verified signaturebf2236b -
Training in progress, step 40200
Verified signature4ba96df -
Training in progress, step 40100
Verified signatureab387aa -
Training in progress, step 40000
Verified signature1f827a7 -
Training in progress, step 39900
Verified signaturedadd80d -
Training in progress, step 39800
Verified signaturedfc7234 -
Training in progress, step 39700
Verified signatureff74c3c -
Training in progress, step 39600
Verified signaturef2ac4c9 -
Training in progress, step 39500
Verified signaturefd36411 -
Training in progress, step 39400
Verified signatureda4326b -
Training in progress, step 39300
Verified signatureb9e18df -
Training in progress, step 39200
Verified signature56a0b69 -
Training in progress, step 39100
Verified signature9265221 -
Training in progress, step 39000
Verified signature7bd45a4 -
Training in progress, step 38900
Verified signature2830a82 -
Training in progress, step 38800
Verified signature2832a0d -
Training in progress, step 38700
Verified signaturecbbdf27 -
Training in progress, step 38600
Verified signature1a7e890 -
Training in progress, step 38500
Verified signature5e10152 -
Training in progress, step 38400
Verified signaturec72a81d -
Training in progress, step 38300
Verified signaturef8d6e7d -
Training in progress, step 38200
Verified signature0746b16