Text Generation
Transformers
Safetensors
qwen2
Generated from Trainer
open-r1
trl
sft
conversational
text-generation-inference
Instructions to use DGME/Qwen2.5-0.5B-Open-R1-SFT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DGME/Qwen2.5-0.5B-Open-R1-SFT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="DGME/Qwen2.5-0.5B-Open-R1-SFT") 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("DGME/Qwen2.5-0.5B-Open-R1-SFT") model = AutoModelForCausalLM.from_pretrained("DGME/Qwen2.5-0.5B-Open-R1-SFT", 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 DGME/Qwen2.5-0.5B-Open-R1-SFT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "DGME/Qwen2.5-0.5B-Open-R1-SFT" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DGME/Qwen2.5-0.5B-Open-R1-SFT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/DGME/Qwen2.5-0.5B-Open-R1-SFT
- SGLang
How to use DGME/Qwen2.5-0.5B-Open-R1-SFT 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 "DGME/Qwen2.5-0.5B-Open-R1-SFT" \ --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": "DGME/Qwen2.5-0.5B-Open-R1-SFT", "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 "DGME/Qwen2.5-0.5B-Open-R1-SFT" \ --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": "DGME/Qwen2.5-0.5B-Open-R1-SFT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use DGME/Qwen2.5-0.5B-Open-R1-SFT with Docker Model Runner:
docker model run hf.co/DGME/Qwen2.5-0.5B-Open-R1-SFT
Commit History
-
Improve language tag (#1)
Verified signature- Improve language tag (dcef3f15273ef034c4a78e94474785547732766c) Co-authored-by: Loïck BOURDOIS <lbourdois@users.noreply.huggingface.co>321179c
-
Training in progress, step 5
Verified signature7fc8e0d -
Training in progress, step 5
Verified signaturefa1b181 -
Training in progress, step 90
Verified signature6f81296 -
Training in progress, step 70
Verified signatured9101b2 -
Training in progress, step 65
Verified signature15c1281 -
Training in progress, step 60
Verified signature72e0fcf -
Training in progress, step 55
Verified signature3b0fbf7 -
Training in progress, step 50
Verified signature2570b0c -
Training in progress, step 40
Verified signature530ce7e -
Training in progress, step 35
Verified signature0e16d55 -
Training in progress, step 30
Verified signatureb695955 -
Training in progress, step 25
Verified signaturea869890 -
Training in progress, step 20
Verified signature8ff5752 -
Training in progress, step 15
Verified signaturebf9ffbb -
Training in progress, step 10
Verified signaturea0f2bff -
Training in progress, step 5
Verified signature2feac7f
-
End of training
Verified signature14cbe9c -
Model save
Verified signaturecd8544d -
Training in progress, step 170
Verified signaturef8491df -
Training in progress, step 165
Verified signature597e17d -
Training in progress, step 160
Verified signaturea986bcb -
Training in progress, step 155
Verified signature69a3bd7 -
Training in progress, step 150
Verified signature4c7c0a9 -
Training in progress, step 145
Verified signature32fb8e6 -
Training in progress, step 140
Verified signaturee04f625 -
Training in progress, step 135
Verified signaturee7b3090 -
Training in progress, step 130
Verified signaturefe3c31d -
Training in progress, step 125
Verified signaturee1a80b9 -
Training in progress, step 120
Verified signaturee0e88ac -
Training in progress, step 115
Verified signature04e9ad5 -
Training in progress, step 110
Verified signature6551348 -
Training in progress, step 105
Verified signaturefd8e1b5 -
Training in progress, step 100
Verified signatured017aaf -
Training in progress, step 95
Verified signature3df69ba -
Training in progress, step 90
Verified signaturef2122ec -
Training in progress, step 85
Verified signatured0dd990 -
Training in progress, step 80
Verified signaturefd31e58 -
Training in progress, step 75
Verified signaturebd586cc -
Training in progress, step 70
Verified signature94a1757 -
Training in progress, step 65
Verified signature16eae36 -
Training in progress, step 60
Verified signatured347679 -
Training in progress, step 55
Verified signaturec7d2341 -
Training in progress, step 50
Verified signature23ca68f -
Training in progress, step 45
Verified signature38f47a5 -
Training in progress, step 40
Verified signaturea2537c4 -
Training in progress, step 35
Verified signature4d65fee -
Training in progress, step 30
Verified signaturebd7175b -
Training in progress, step 25
Verified signaturece0a24e -
Training in progress, step 20
Verified signatureed9c0f2