Text Generation
Transformers
Safetensors
qwen2
Generated from Trainer
open-r1
trl
sft
conversational
text-generation-inference
Instructions to use pnle/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 pnle/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="pnle/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("pnle/Qwen2.5-1.5B-Open-R1-Distill") model = AutoModelForCausalLM.from_pretrained("pnle/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 pnle/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 "pnle/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": "pnle/Qwen2.5-1.5B-Open-R1-Distill", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/pnle/Qwen2.5-1.5B-Open-R1-Distill
- SGLang
How to use pnle/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 "pnle/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": "pnle/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 "pnle/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": "pnle/Qwen2.5-1.5B-Open-R1-Distill", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use pnle/Qwen2.5-1.5B-Open-R1-Distill with Docker Model Runner:
docker model run hf.co/pnle/Qwen2.5-1.5B-Open-R1-Distill
Commit History
-
End of training
Verified signature5c6e61d -
Model save
Verified signature06e87cf -
Training in progress, step 2680
Verified signatureefd88af -
Training in progress, step 2600
Verified signature24e6423 -
Training in progress, step 2500
Verified signatureb3a56ef
-
Training in progress, step 2400
Verified signature892ac5a -
Training in progress, step 2300
Verified signature7363c71 -
Training in progress, step 2200
Verified signature8948348 -
Training in progress, step 2100
Verified signature56957e8
-
Training in progress, step 2000
Verified signature4c8f6ec -
Training in progress, step 1900
Verified signature09255bb -
Training in progress, step 1800
Verified signaturef7460e3 -
Training in progress, step 1700
Verified signature3dab5a0
-
Training in progress, step 1600
Verified signature27825f4 -
Training in progress, step 1500
Verified signature231375e -
Training in progress, step 1400
Verified signaturef591e5f
-
End of training
Verified signature52d6849 -
Model save
Verified signature981425a -
Training in progress, step 1340
Verified signature47a7fdf -
Training in progress, step 1300
Verified signatureb8b72c9 -
Training in progress, step 1200
Verified signature99da353 -
Training in progress, step 1100
Verified signature9b48c36
-
Training in progress, step 1000
Verified signaturef37f127 -
Training in progress, step 900
Verified signatureeca4f45 -
Training in progress, step 800
Verified signature5eff1e2 -
Training in progress, step 700
Verified signature4bed694
-
Training in progress, step 600
Verified signatured7831c0 -
Training in progress, step 500
Verified signature35079be -
Training in progress, step 400
Verified signature03c08fe -
Training in progress, step 300
Verified signature9324ab7
-
End of training
Verified signaturea2cce80 -
Model save
Verified signature6a82c6d -
Training in progress, step 268
Verified signatureae45cf9 -
Training in progress, step 200
Verified signature364d7b3 -
Training in progress, step 100
Verified signaturee01cf88 -
End of training
Verified signature2fd9996 -
Model save
Verified signature010e07b -
End of training
Verified signature14c1ed6 -
Model save
Verified signature4d7fff8 -
End of training
Verified signature480fb87 -
Model save
Verified signature37baa9f -
End of training
Verified signaturec2a2756 -
Model save
Verified signature88aa46b
-
End of training
Verified signaturec954734 -
Model save
Verified signature0bf458f -
Training in progress, step 268
Verified signatureb0b856f
-
Training in progress, step 200
Verified signature084d272 -
Training in progress, step 100
Verified signature12b911d -
initial commit
Verified signature44af412