Text Generation
Transformers
Safetensors
qwen2
Generated from Trainer
open-r1
trl
sft
conversational
text-generation-inference
Instructions to use mona112/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 mona112/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="mona112/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("mona112/Qwen2.5-1.5B-Open-R1-Distill") model = AutoModelForCausalLM.from_pretrained("mona112/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 mona112/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 "mona112/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": "mona112/Qwen2.5-1.5B-Open-R1-Distill", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/mona112/Qwen2.5-1.5B-Open-R1-Distill
- SGLang
How to use mona112/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 "mona112/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": "mona112/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 "mona112/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": "mona112/Qwen2.5-1.5B-Open-R1-Distill", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use mona112/Qwen2.5-1.5B-Open-R1-Distill with Docker Model Runner:
docker model run hf.co/mona112/Qwen2.5-1.5B-Open-R1-Distill
Commit History
-
End of training
Verified signature9186ea4 -
Model save
Verified signature326097a -
End of training
Verified signature23d2431 -
Model save
Verified signature92783b9 -
Training in progress, step 8400
Verified signaturecef9902 -
Training in progress, step 7900
Verified signature19dd6ff -
Training in progress, step 7400
Verified signature3d88aeb -
Training in progress, step 6900
Verified signature336a5d7 -
Training in progress, step 6400
Verified signaturebaff0fc -
Training in progress, step 5900
Verified signature7a9972d -
Training in progress, step 5400
Verified signature6d70d41 -
Training in progress, step 4800
Verified signaturedcebb15 -
Training in progress, step 4200
Verified signaturee58a509 -
Training in progress, step 3600
Verified signature9d6a7ee -
Training in progress, step 3100
Verified signature9099639 -
Training in progress, step 2600
Verified signature60107cb -
Training in progress, step 2100
Verified signature96fafe4 -
Training in progress, step 1600
Verified signature198add1 -
Training in progress, step 1100
Verified signature35446a8 -
Training in progress, step 600
Verified signature966eb1a -
Training in progress, step 100
Verified signature18bba22 -
initial commit
Verified signature8e266be