Text Generation
Transformers
Safetensors
qwen2
Generated from Trainer
open-r1
trl
sft
conversational
text-generation-inference
Instructions to use zhangwt97/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 zhangwt97/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="zhangwt97/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("zhangwt97/Qwen2.5-1.5B-Open-R1-Distill") model = AutoModelForCausalLM.from_pretrained("zhangwt97/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 zhangwt97/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 "zhangwt97/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": "zhangwt97/Qwen2.5-1.5B-Open-R1-Distill", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/zhangwt97/Qwen2.5-1.5B-Open-R1-Distill
- SGLang
How to use zhangwt97/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 "zhangwt97/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": "zhangwt97/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 "zhangwt97/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": "zhangwt97/Qwen2.5-1.5B-Open-R1-Distill", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use zhangwt97/Qwen2.5-1.5B-Open-R1-Distill with Docker Model Runner:
docker model run hf.co/zhangwt97/Qwen2.5-1.5B-Open-R1-Distill
Commit History
-
End of training
Verified signaturec62be94 -
Model save
Verified signature42612c1
-
Training in progress, step 34200
Verified signature3167931 -
Training in progress, step 34100
Verified signaturee345317 -
Training in progress, step 34000
Verified signature8a819ef -
Training in progress, step 33900
Verified signature5b863fe -
Training in progress, step 33800
Verified signature83794a5 -
Training in progress, step 33700
Verified signaturef1bc410 -
Training in progress, step 33600
Verified signatureb54b33e -
Training in progress, step 33500
Verified signaturee837172 -
Training in progress, step 33400
Verified signature6b156e4 -
Training in progress, step 33200
Verified signaturea443ac6 -
Training in progress, step 33000
Verified signatured28fd43 -
Training in progress, step 32800
Verified signaturef997aa7 -
Training in progress, step 32600
Verified signature7e10caa -
Training in progress, step 32400
Verified signature1cf1e8b -
Training in progress, step 32200
Verified signaturebe66595 -
Training in progress, step 32000
Verified signature28c85cc -
Training in progress, step 31800
Verified signature664ef6f -
Training in progress, step 31600
Verified signaturecd93e2c -
Training in progress, step 31400
Verified signaturec5155d7 -
Training in progress, step 31200
Verified signature12a91d5 -
Training in progress, step 31000
Verified signature710a9ba -
Training in progress, step 30800
Verified signature9bb0f72 -
Training in progress, step 30600
Verified signatured8d0987 -
Training in progress, step 30400
Verified signature2bc5c19 -
Training in progress, step 30200
Verified signaturebc5f028 -
Training in progress, step 30000
Verified signaturef661ce9 -
Training in progress, step 29800
Verified signatured6c399f -
Training in progress, step 29600
Verified signaturef85b7f6 -
Training in progress, step 29400
Verified signature5400f1c -
Training in progress, step 29200
Verified signaturebb1aabd -
Training in progress, step 29000
Verified signature8df0ae1 -
Training in progress, step 28800
Verified signaturee2cfe27 -
Training in progress, step 28600
Verified signature165f252 -
Training in progress, step 28400
Verified signaturee99d3ab -
Training in progress, step 28200
Verified signatured24cf55 -
Training in progress, step 28000
Verified signature43f6178 -
Training in progress, step 27800
Verified signature4eee15a -
Training in progress, step 27600
Verified signaturea071fc5 -
Training in progress, step 27400
Verified signature2e4f4c3 -
Training in progress, step 27200
Verified signature732f61b -
Training in progress, step 27000
Verified signature04f42c5 -
Training in progress, step 26800
Verified signature57a71f1 -
Training in progress, step 26600
Verified signature624ab33 -
Training in progress, step 26500
Verified signature3f916ee -
Training in progress, step 26400
Verified signature707a63c -
Training in progress, step 26300
Verified signature9ffde40 -
Training in progress, step 26100
Verified signature61fb7b8 -
Training in progress, step 26000
Verified signature08c95bc