Text Generation
Transformers
Safetensors
qwen2
Generated from Trainer
open-r1
trl
sft
conversational
text-generation-inference
Instructions to use ucmp137538/OpenR1-Distill-7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ucmp137538/OpenR1-Distill-7B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ucmp137538/OpenR1-Distill-7B") 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("ucmp137538/OpenR1-Distill-7B") model = AutoModelForCausalLM.from_pretrained("ucmp137538/OpenR1-Distill-7B", 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 ucmp137538/OpenR1-Distill-7B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ucmp137538/OpenR1-Distill-7B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ucmp137538/OpenR1-Distill-7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ucmp137538/OpenR1-Distill-7B
- SGLang
How to use ucmp137538/OpenR1-Distill-7B 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 "ucmp137538/OpenR1-Distill-7B" \ --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": "ucmp137538/OpenR1-Distill-7B", "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 "ucmp137538/OpenR1-Distill-7B" \ --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": "ucmp137538/OpenR1-Distill-7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use ucmp137538/OpenR1-Distill-7B with Docker Model Runner:
docker model run hf.co/ucmp137538/OpenR1-Distill-7B
Commit History
-
End of training
Verified signature4dcddce -
Model save
Verified signature2848323 -
Training in progress, epoch 5
Verified signature56a9071 -
Training in progress, epoch 4
Verified signatureb895a1d
-
Training in progress, epoch 3
Verified signature592040e -
Training in progress, epoch 2
Verified signature459fb28 -
Training in progress, epoch 1
Verified signature9ecc183
-
End of training
Verified signature3808a2f -
Model save
Verified signaturece99ef5 -
Training in progress, epoch 5
Verified signatured63aa96 -
Training in progress, epoch 4
Verified signaturea058167 -
Training in progress, epoch 3
Verified signatured4b71dc -
Training in progress, epoch 2
Verified signaturebc51d30 -
Training in progress, epoch 1
Verified signature69294e7
-
End of training
Verified signaturea66d514 -
Model save
Verified signature28a0e2e -
Training in progress, epoch 5
Verified signature065c0d6 -
Training in progress, epoch 4
Verified signaturea66e484 -
Training in progress, epoch 3
Verified signature1e8520a -
Training in progress, epoch 2
Verified signature5c6d102 -
Training in progress, epoch 1
Verified signature5ea8723 -
End of training
Verified signature3891d95 -
Model save
Verified signaturedbab5ed -
Training in progress, epoch 5
Verified signaturefebe6ca
-
Training in progress, epoch 4
Verified signature7e3501e -
Training in progress, epoch 3
Verified signature8e911e9 -
Training in progress, epoch 2
Verified signature561b33b -
Training in progress, epoch 1
Verified signature8ba089c -
End of training
Verified signature187af96 -
Model save
Verified signature1bc5b26 -
Training in progress, epoch 1
Verified signatureee79bcd -
End of training
Verified signature59d7fbf -
Model save
Verified signature646e982 -
Training in progress, epoch 1
Verified signaturef0d5af6 -
End of training
Verified signatureb7af346 -
Model save
Verified signatureefab578 -
Training in progress, epoch 1
Verified signature2c05590 -
Training in progress, epoch 4
Verified signatureec2f5a3 -
Training in progress, epoch 3
Verified signature4da77bb -
Training in progress, epoch 2
Verified signature8922d87 -
Training in progress, epoch 1
Verified signaturef6b8a16
-
End of training
Verified signature0409e29 -
Model save
Verified signature602bae3 -
Training in progress, epoch 5
Verified signature181c9bb -
Training in progress, epoch 4
Verified signature23a46d0 -
Training in progress, epoch 3
Verified signatured815ce2 -
Training in progress, epoch 2
Verified signatured0c727f -
Training in progress, epoch 1
Verified signaturec2f3a23
-
End of training
Verified signature3b11564 -
Model save
Verified signature7422266