Text Generation
Transformers
Safetensors
Chinese
English
qwen2
deepscaler
grpo
conversational
text-generation-inference
Instructions to use pixas/DECS_7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pixas/DECS_7B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="pixas/DECS_7B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("pixas/DECS_7B") model = AutoModelForCausalLM.from_pretrained("pixas/DECS_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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use pixas/DECS_7B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "pixas/DECS_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": "pixas/DECS_7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/pixas/DECS_7B
- SGLang
How to use pixas/DECS_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 "pixas/DECS_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": "pixas/DECS_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 "pixas/DECS_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": "pixas/DECS_7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use pixas/DECS_7B with Docker Model Runner:
docker model run hf.co/pixas/DECS_7B
Update README.md
Browse files
README.md
CHANGED
|
@@ -14,12 +14,12 @@ license: other
|
|
| 14 |
|
| 15 |
# DECS_7B
|
| 16 |
|
| 17 |
-
|
|
|
|
| 18 |
|
| 19 |
## Model Summary
|
| 20 |
|
| 21 |
- Base model: `deepseek-ai/DeepSeek-R1-Distill-Qwen-7B`
|
| 22 |
-
- Upload source: local checkpoint `deepscaler_7b_r1_distill_qwen7b_grpo_proc_length_a001_b001_c001_n16_nozeroadv_fm0_constant_dapo_adp_global_step_265`
|
| 23 |
- Upload date: `2026-02-24`
|
| 24 |
- Recommended use: long-form reasoning and mathematical/problem-solving style generation
|
| 25 |
|
|
@@ -75,17 +75,94 @@ print(outputs[0].outputs[0].text)
|
|
| 75 |
- Performance can vary by prompt style and decoding parameters.
|
| 76 |
- License and acceptable-use constraints should follow the upstream base model and your deployment policy.
|
| 77 |
|
| 78 |
-
## Privacy Sanitization
|
| 79 |
|
| 80 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
-
|
| 85 |
|
| 86 |
-
##
|
|
|
|
|
|
|
|
|
|
|
|
|
| 87 |
|
| 88 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 89 |
|
| 90 |
-
|
| 91 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
# DECS_7B
|
| 16 |
|
| 17 |
+
This is the official model for ICLR 2026 Oral "Overthinking Reduction with Decoupled Rewards and Curriculum Data Scheduling".
|
| 18 |
+
DECS_7B is a reasoning-focused causal language model built from `deepseek-ai/DeepSeek-R1-Distill-Qwen-7B` and further trained with DECS algorithm, focused on 50% fewer tokens when answering a reasoning-required problem.
|
| 19 |
|
| 20 |
## Model Summary
|
| 21 |
|
| 22 |
- Base model: `deepseek-ai/DeepSeek-R1-Distill-Qwen-7B`
|
|
|
|
| 23 |
- Upload date: `2026-02-24`
|
| 24 |
- Recommended use: long-form reasoning and mathematical/problem-solving style generation
|
| 25 |
|
|
|
|
| 75 |
- Performance can vary by prompt style and decoding parameters.
|
| 76 |
- License and acceptable-use constraints should follow the upstream base model and your deployment policy.
|
| 77 |
|
|
|
|
| 78 |
|
| 79 |
+
## Citation
|
| 80 |
+
---
|
| 81 |
+
language:
|
| 82 |
+
- zh
|
| 83 |
+
- en
|
| 84 |
+
pipeline_tag: text-generation
|
| 85 |
+
tags:
|
| 86 |
+
- deepscaler
|
| 87 |
+
- reasoning
|
| 88 |
+
- grpo
|
| 89 |
+
- qwen2
|
| 90 |
+
base_model: deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B
|
| 91 |
+
license: other
|
| 92 |
+
---
|
| 93 |
|
| 94 |
+
# DECS_1.5B
|
| 95 |
+
This is the official model for ICLR 2026 Oral "Overthinking Reduction with Decoupled Rewards and Curriculum Data Scheduling".
|
| 96 |
+
DECS_1.5B is a reasoning-focused causal language model built from `deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B` and further trained with DECS algorithm, focused on 50% fewer tokens when answering a reasoning-required problem.
|
| 97 |
|
| 98 |
+
## Model Summary
|
| 99 |
+
|
| 100 |
+
- Base model: `deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B`
|
| 101 |
+
- Upload date: `2026-02-24`
|
| 102 |
+
- Recommended use: long-form reasoning and mathematical/problem-solving style generation
|
| 103 |
|
| 104 |
+
## Quick Start (Transformers)
|
| 105 |
+
|
| 106 |
+
```python
|
| 107 |
+
import torch
|
| 108 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 109 |
+
|
| 110 |
+
model_id = "pixas/DECS_1.5B"
|
| 111 |
+
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
|
| 112 |
+
model = AutoModelForCausalLM.from_pretrained(
|
| 113 |
+
model_id,
|
| 114 |
+
torch_dtype=torch.bfloat16,
|
| 115 |
+
device_map="auto",
|
| 116 |
+
)
|
| 117 |
|
| 118 |
+
messages = [
|
| 119 |
+
{"role": "user", "content": "Solve: If x^2 - 5x + 6 = 0, what are x values?"}
|
| 120 |
+
]
|
| 121 |
+
prompt = tokenizer.apply_chat_template(
|
| 122 |
+
messages, tokenize=False, add_generation_prompt=True
|
| 123 |
+
)
|
| 124 |
+
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
|
| 125 |
+
|
| 126 |
+
with torch.no_grad():
|
| 127 |
+
outputs = model.generate(
|
| 128 |
+
**inputs,
|
| 129 |
+
max_new_tokens=512,
|
| 130 |
+
temperature=0.6,
|
| 131 |
+
top_p=0.95,
|
| 132 |
+
)
|
| 133 |
+
|
| 134 |
+
new_tokens = outputs[0][inputs["input_ids"].shape[-1]:]
|
| 135 |
+
print(tokenizer.decode(new_tokens, skip_special_tokens=True))
|
| 136 |
+
```
|
| 137 |
+
|
| 138 |
+
## Quick Start (vLLM)
|
| 139 |
+
|
| 140 |
+
```python
|
| 141 |
+
from vllm import LLM, SamplingParams
|
| 142 |
+
|
| 143 |
+
llm = LLM(model="pixas/DECS_1.5B", trust_remote_code=True)
|
| 144 |
+
sampling = SamplingParams(temperature=0.6, top_p=0.95, max_tokens=512)
|
| 145 |
+
prompt = "Please reason step by step: what is 37 * 48?"
|
| 146 |
+
outputs = llm.generate([prompt], sampling_params=sampling)
|
| 147 |
+
print(outputs[0].outputs[0].text)
|
| 148 |
+
```
|
| 149 |
+
|
| 150 |
+
## Notes
|
| 151 |
+
|
| 152 |
+
- This model may produce incorrect or unverifiable reasoning. Always validate outputs in high-stakes settings.
|
| 153 |
+
- Performance can vary by prompt style and decoding parameters.
|
| 154 |
+
- License and acceptable-use constraints should follow the upstream base model and your deployment policy.
|
| 155 |
+
|
| 156 |
+
|
| 157 |
+
## Citation
|
| 158 |
+
|
| 159 |
+
If you use this model, please cite our paper:
|
| 160 |
+
```bibtex
|
| 161 |
+
@inproceedings{jiang2026overthinking,
|
| 162 |
+
title={Overthinking Reduction with Decoupled Rewards and Curriculum Data Scheduling},
|
| 163 |
+
author={Shuyang Jiang and Yusheng Liao and Ya Zhang and Yanfeng Wang and Yu Wang},
|
| 164 |
+
booktitle={The Fourteenth International Conference on Learning Representations},
|
| 165 |
+
year={2026},
|
| 166 |
+
url={https://openreview.net/forum?id=kdeiRledV6}
|
| 167 |
+
}
|
| 168 |
+
```
|