Instructions to use Machine981/SCOPE-Deepseek-R1-Distill-Qwen-1.5B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Machine981/SCOPE-Deepseek-R1-Distill-Qwen-1.5B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Machine981/SCOPE-Deepseek-R1-Distill-Qwen-1.5B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Machine981/SCOPE-Deepseek-R1-Distill-Qwen-1.5B") model = AutoModelForCausalLM.from_pretrained("Machine981/SCOPE-Deepseek-R1-Distill-Qwen-1.5B") 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Machine981/SCOPE-Deepseek-R1-Distill-Qwen-1.5B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Machine981/SCOPE-Deepseek-R1-Distill-Qwen-1.5B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Machine981/SCOPE-Deepseek-R1-Distill-Qwen-1.5B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Machine981/SCOPE-Deepseek-R1-Distill-Qwen-1.5B
- SGLang
How to use Machine981/SCOPE-Deepseek-R1-Distill-Qwen-1.5B 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 "Machine981/SCOPE-Deepseek-R1-Distill-Qwen-1.5B" \ --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": "Machine981/SCOPE-Deepseek-R1-Distill-Qwen-1.5B", "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 "Machine981/SCOPE-Deepseek-R1-Distill-Qwen-1.5B" \ --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": "Machine981/SCOPE-Deepseek-R1-Distill-Qwen-1.5B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Machine981/SCOPE-Deepseek-R1-Distill-Qwen-1.5B with Docker Model Runner:
docker model run hf.co/Machine981/SCOPE-Deepseek-R1-Distill-Qwen-1.5B
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
license: apache-2.0
|
| 5 |
+
tags:
|
| 6 |
+
- text-generation
|
| 7 |
+
- nlp
|
| 8 |
+
datasets:
|
| 9 |
+
- DeepMath103K
|
| 10 |
+
metrics:
|
| 11 |
+
- avg@1 / pass@k
|
| 12 |
+
base_model:
|
| 13 |
+
- Deepseek-R1-Distill-Qwen-1.5B
|
| 14 |
+
pipeline_tag: text-generation
|
| 15 |
+
library_name: transformers
|
| 16 |
+
arxiv: 2604.10688
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
# Model Name
|
| 20 |
+
|
| 21 |
+
SCOPE-Deepseek-R1-Distill-Qwen-1.5B
|
| 22 |
+
|
| 23 |
+
This model is introduced in the paper
|
| 24 |
+
[SCOPE: Signal-Calibrated On-Policy Distillation Enhancement with Dual-Path Adaptive Weighting](https://arxiv.org/abs/2604.10688)
|
| 25 |
+
and is developed by the **Longcat Interaction Team**.
|
| 26 |
+
|
| 27 |
+
## Model Details
|
| 28 |
+
|
| 29 |
+
### Model Description
|
| 30 |
+
|
| 31 |
+
- **Developed by:** Longcat Interaction Team
|
| 32 |
+
- **Language(s) (NLP):** English
|
| 33 |
+
- **License:** Apache 2.0
|
| 34 |
+
- **Finetuned from model:** Deepseek-R1-Distill-Qwen-1.5B
|
| 35 |
+
- **Paper:** [arxiv.org/abs/2604.10688](https://arxiv.org/abs/2604.10688)
|
| 36 |
+
|
| 37 |
+
### Model Sources
|
| 38 |
+
|
| 39 |
+
- **Repository:** [https://github.com/machine981/SCOPE](https://github.com/machine981/SCOPE)
|
| 40 |
+
- **Paper:** [https://arxiv.org/abs/2604.10688](https://arxiv.org/abs/2604.10688)
|
| 41 |
+
|
| 42 |
+
## Uses
|
| 43 |
+
|
| 44 |
+
### Direct Use
|
| 45 |
+
|
| 46 |
+
This model can be used directly for text generation (like MATH reasoning) without any additional fine-tuning.
|
| 47 |
+
|
| 48 |
+
## How to Get Started with the Model
|
| 49 |
+
|
| 50 |
+
Use the code below to get started with the model:
|
| 51 |
+
|
| 52 |
+
```python
|
| 53 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM # adjust as needed
|
| 54 |
+
|
| 55 |
+
tokenizer = AutoTokenizer.from_pretrained("Machine981/SCOPE-Deepseek-R1-Distill-Qwen-1.5B")
|
| 56 |
+
model = AutoModelForCausalLM.from_pretrained("Machine981/SCOPE-Deepseek-R1-Distill-Qwen-1.5B")
|
| 57 |
+
|
| 58 |
+
inputs = tokenizer("Your input text here", return_tensors="pt")
|
| 59 |
+
outputs = model.generate(**inputs)
|
| 60 |
+
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|