Text Generation
Transformers
TensorBoard
Safetensors
qwen2
Generated from Trainer
trl
sft
conversational
text-generation-inference
Instructions to use howardzhou/Qwen2.5-7B-Open-R1-Distill with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use howardzhou/Qwen2.5-7B-Open-R1-Distill with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="howardzhou/Qwen2.5-7B-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("howardzhou/Qwen2.5-7B-Open-R1-Distill") model = AutoModelForCausalLM.from_pretrained("howardzhou/Qwen2.5-7B-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 howardzhou/Qwen2.5-7B-Open-R1-Distill with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "howardzhou/Qwen2.5-7B-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": "howardzhou/Qwen2.5-7B-Open-R1-Distill", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/howardzhou/Qwen2.5-7B-Open-R1-Distill
- SGLang
How to use howardzhou/Qwen2.5-7B-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 "howardzhou/Qwen2.5-7B-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": "howardzhou/Qwen2.5-7B-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 "howardzhou/Qwen2.5-7B-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": "howardzhou/Qwen2.5-7B-Open-R1-Distill", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use howardzhou/Qwen2.5-7B-Open-R1-Distill with Docker Model Runner:
docker model run hf.co/howardzhou/Qwen2.5-7B-Open-R1-Distill
Commit History
-
Model save
Verified signaturec35df41 -
Training in progress, step 1552
Verified signaturea5d8d9d -
Training in progress, step 1500
Verified signatureec51b23 -
Training in progress, step 1200
Verified signaturecaac82e -
Training in progress, step 900
Verified signatured269175 -
Training in progress, step 600
Verified signature7a128f3
-
Training in progress, step 300
Verified signature25423f9 -
Model save
Verified signaturec355cfd -
Training in progress, step 1552
Verified signature18a44ee -
Training in progress, step 1500
Verified signaturece619c7 -
Training in progress, step 1200
Verified signature2f287d1 -
Training in progress, step 900
Verified signature39c42d8
-
Training in progress, step 600
Verified signature1f76cf6 -
Training in progress, step 300
Verified signatureb820320 -
Training in progress, step 3000
Verified signature684dcfb -
Training in progress, step 2500
Verified signaturef166118 -
Training in progress, step 2000
Verified signature76ce481 -
Training in progress, step 1500
Verified signature1c8db9c -
Training in progress, step 1000
Verified signature6ab2eda
-
Training in progress, step 500
Verified signature7a7cf0a -
Model save
Verified signaturec91bb2c -
Training in progress, step 4488
Verified signature490b31c -
Training in progress, step 4000
Verified signature61f6924 -
Training in progress, step 3500
Verified signatured7980d4 -
Training in progress, step 3000
Verified signature316878c
-
Training in progress, step 2500
Verified signature784f004 -
Training in progress, step 2000
Verified signature652de27 -
Training in progress, step 1500
Verified signature744484b -
Training in progress, step 1000
Verified signaturedf33d30 -
Training in progress, step 500
Verified signaturee6398d4
-
Training in progress, step 1800
Verified signature7320bf4 -
Training in progress, step 1600
Verified signature43cac3f -
Training in progress, step 1400
Verified signature1ded2a7 -
Training in progress, step 1200
Verified signature9e8f8c3 -
Training in progress, step 1000
Verified signature1be91cf -
Training in progress, step 800
Verified signaturebc35670 -
Training in progress, step 600
Verified signature47400ec -
Training in progress, step 400
Verified signature074f5fa -
Training in progress, step 200
Verified signatureb0c2e6d
-
Model save
Verified signature801c152 -
Training in progress, step 336
Verified signaturee9a3287 -
Training in progress, step 300
Verified signature5e38f41 -
Training in progress, step 250
Verified signature0abc551 -
Training in progress, step 200
Verified signaturee495896 -
Training in progress, step 150
Verified signature86e67c0 -
Training in progress, step 100
Verified signature6a246ec -
Training in progress, step 50
Verified signaturea65bb16 -
initial commit
Verified signatureea821aa