Text Generation
Transformers
Safetensors
qwen2
Generated from Trainer
grpo
trl
conversational
text-generation-inference
Instructions to use leonMW/DeepSeek-R1-Distill-Qwen-7B-S with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use leonMW/DeepSeek-R1-Distill-Qwen-7B-S with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="leonMW/DeepSeek-R1-Distill-Qwen-7B-S") 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("leonMW/DeepSeek-R1-Distill-Qwen-7B-S") model = AutoModelForCausalLM.from_pretrained("leonMW/DeepSeek-R1-Distill-Qwen-7B-S", 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 leonMW/DeepSeek-R1-Distill-Qwen-7B-S with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "leonMW/DeepSeek-R1-Distill-Qwen-7B-S" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "leonMW/DeepSeek-R1-Distill-Qwen-7B-S", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/leonMW/DeepSeek-R1-Distill-Qwen-7B-S
- SGLang
How to use leonMW/DeepSeek-R1-Distill-Qwen-7B-S 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 "leonMW/DeepSeek-R1-Distill-Qwen-7B-S" \ --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": "leonMW/DeepSeek-R1-Distill-Qwen-7B-S", "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 "leonMW/DeepSeek-R1-Distill-Qwen-7B-S" \ --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": "leonMW/DeepSeek-R1-Distill-Qwen-7B-S", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use leonMW/DeepSeek-R1-Distill-Qwen-7B-S with Docker Model Runner:
docker model run hf.co/leonMW/DeepSeek-R1-Distill-Qwen-7B-S
Commit History
-
Model save
Verified signaturefbfe451 -
Training in progress, epoch 1
Verified signaturea022d18 -
Model save
Verified signatureac2311b -
Training in progress, epoch 2
Verified signature0af883c -
Training in progress, epoch 1
Verified signaturec493690
-
Training in progress, epoch 1
Verified signatured2f1548 -
Training in progress, epoch 2
Verified signatureef77183 -
Training in progress, epoch 1
Verified signature7b3c101 -
Training in progress, epoch 1
Verified signature8234525
-
Model save
Verified signature6a24015 -
Training in progress, epoch 2
Verified signaturece368f3 -
Training in progress, epoch 1
Verified signature7238aa2 -
Training in progress, epoch 2
Verified signaturef6eaad4 -
Training in progress, epoch 1
Verified signature1df533c -
Training in progress, epoch 2
Verified signatureb1b8a72 -
Training in progress, epoch 1
Verified signature0a43a6d
-
Model save
Verified signatured7b6c0c -
Training in progress, epoch 2
Verified signaturea6f7472 -
Training in progress, epoch 1
Verified signature841f3bb -
End of training
Verified signature9b1718f -
Model save
Verified signature060bf96 -
Training in progress, epoch 2
Verified signaturef18c08a -
Training in progress, epoch 1
Verified signature5b27081 -
Training in progress, epoch 1
Verified signatured9ae97c -
Training in progress, epoch 2
Verified signature7344c79 -
Training in progress, epoch 1
Verified signatured74ce8f -
End of training
Verified signature560176e -
Model save
Verified signaturec1f2c5a -
Training in progress, epoch 2
Verified signaturefde7779 -
Training in progress, epoch 1
Verified signaturefa45492 -
End of training
Verified signature5b94514 -
Model save
Verified signature98d1ba1 -
Training in progress, epoch 2
Verified signature72a5d41 -
Training in progress, epoch 1
Verified signature0da456a
-
End of training
Verified signaturea237a85 -
Model save
Verified signature266f286 -
Training in progress, epoch 2
Verified signatured866fbc -
Training in progress, epoch 1
Verified signature0fd5f2c
-
End of training
Verified signatureb18f60f -
Model save
Verified signature588bf1c -
Training in progress, epoch 2
Verified signature51b2fa3 -
Training in progress, epoch 1
Verified signatureb671a0c -
Training in progress, epoch 2
Verified signaturec37d679 -
Training in progress, epoch 1
Verified signaturef5fe11f
-
End of training
Verified signatured2e2c61 -
Model save
Verified signature2e7c2a6 -
Training in progress, epoch 2
Verified signature169faec -
Training in progress, epoch 1
Verified signature969d25a -
Training in progress, epoch 1
Verified signaturef74ab41 -
End of training
Verified signatured5794f3