Text Generation
Transformers
Safetensors
English
qwen2
math
code
reasoning
gpqa
instruction-following
conversational
Eval Results
text-generation-inference
Instructions to use WeiboAI/VibeThinker-3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use WeiboAI/VibeThinker-3B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="WeiboAI/VibeThinker-3B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("WeiboAI/VibeThinker-3B") model = AutoModelForCausalLM.from_pretrained("WeiboAI/VibeThinker-3B") 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]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use WeiboAI/VibeThinker-3B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "WeiboAI/VibeThinker-3B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "WeiboAI/VibeThinker-3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/WeiboAI/VibeThinker-3B
- SGLang
How to use WeiboAI/VibeThinker-3B 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 "WeiboAI/VibeThinker-3B" \ --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": "WeiboAI/VibeThinker-3B", "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 "WeiboAI/VibeThinker-3B" \ --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": "WeiboAI/VibeThinker-3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use WeiboAI/VibeThinker-3B with Docker Model Runner:
docker model run hf.co/WeiboAI/VibeThinker-3B
Update model card and figures
Browse files- .gitattributes +6 -0
- README.md +162 -0
- pictures/Abstrct.png +3 -0
- pictures/Acc_and_Scale.png +3 -0
- pictures/Architecture.png +3 -0
- pictures/LeetCode.png +3 -0
- pictures/VibeThiinker-3B.png +3 -0
- pictures/VibeThinker-3B+CLR.png +3 -0
.gitattributes
CHANGED
|
@@ -34,3 +34,9 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
pictures/Abstrct.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
pictures/Acc_and_Scale.png filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
pictures/Architecture.png filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
pictures/LeetCode.png filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
pictures/VibeThiinker-3B.png filter=lfs diff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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
base_model:
|
| 6 |
+
- Qwen/Qwen2.5-Coder-3B
|
| 7 |
+
tags:
|
| 8 |
+
- math
|
| 9 |
+
- code
|
| 10 |
+
- reasoning
|
| 11 |
+
- gpqa
|
| 12 |
+
- instruction-following
|
| 13 |
+
pipeline_tag: text-generation
|
| 14 |
+
library_name: transformers
|
| 15 |
---
|
| 16 |
+
|
| 17 |
+
# VibeThinker-3B
|
| 18 |
+
|
| 19 |
+
<p align="center"><a href="https://github.com/WeiboAI/VibeThinker">GitHub</a> | <a href="https://huggingface.co/WeiboAI/VibeThinker-3B">Hugging Face</a> | <a href="https://arxiv.org/pdf/2606.16140">Technical Report</a></p>
|
| 20 |
+
|
| 21 |
+
## Introduction
|
| 22 |
+
|
| 23 |
+
VibeThinker-3B is a further exploration of the VibeThinker series at the 3B-parameter scale, focusing on challenging reasoning tasks with clear verification signals, such as mathematics, coding, and STEM. By systematically optimizing the Spectrum-to-Signal Principle (SSP) post-training pipeline introduced in VibeThinker-1.5B, VibeThinker-3B achieves strong performance on AIME, HMMT, IMO-AnswerBench, LiveCodeBench, and recent LeetCode contests, reaching the performance range of top-tier frontier reasoning models, including Qwen3.6 Plus, Gemini 3 Pro, GLM-5, and Kimi K2.5, on verifiable reasoning benchmarks.
|
| 24 |
+
|
| 25 |
+
Motivated by these observations, we propose the Parametric Compression-Coverage Hypothesis: different capabilities depend on model parameters in fundamentally different ways. Verifiable reasoning is closer to a highly compressible, parameter-dense capability, centered on multi-step reasoning, constraint satisfaction, self-correction, and answer verification. When the task space is sufficiently structured and feedback signals are sufficiently reliable, compact models may also carry near-frontier reasoning capabilities. In contrast, open-domain knowledge, general-purpose dialogue, and long-tail scenario understanding rely more heavily on large-scale parameters to broadly cover facts, concepts, and world knowledge.
|
| 26 |
+
|
| 27 |
+
From VibeThinker-1.5B to VibeThinker-3B, our goal is not to build a small model that replaces large-scale models, but to examine the real boundaries of small models along specific capability dimensions. With VibeThinker-3B, we aim to show that small models should not be viewed merely as a compromise for reducing deployment costs. For capability domains with clear feedback and verification mechanisms, SLMs emerge as a promising research trajectory toward frontier-level performance that is fundamentally complementary to the traditional parameter scaling paradigm.
|
| 28 |
+
|
| 29 |
+

|
| 30 |
+
|
| 31 |
+
## Key Performance Data
|
| 32 |
+
|
| 33 |
+
๐ In terms of reasoning accuracy relative to model scale, VibeThinker-3B reaches 76.4 on IMO-AnswerBench, a highly challenging benchmark with 400 IMO-level problems, with only 3B parameters, and improves to 80.6 with Claim-Level Reliability Assessment (CLR), a test-time scaling strategy for answer-verifiable reasoning tasks. This demonstrates that a model within a strictly small-model regime can reach the performance range of substantially larger models, such as DeepSeek V3.2 (78.3, 671B), GLM-5 (82.5, 744B), and Kimi K2.5 (81.8, 1T).
|
| 34 |
+
|
| 35 |
+

|
| 36 |
+
|
| 37 |
+
๐ก VibeThinker-3B achieves strong results across mathematics, coding, knowledge, and instruction-following benchmarks.
|
| 38 |
+
|
| 39 |
+

|
| 40 |
+
|
| 41 |
+
๐ VibeThinker-3B achieves competitive results against first-tier reasoning models and reaches the performance range of top-tier systems on several verifiable reasoning benchmarks.
|
| 42 |
+
|
| 43 |
+

|
| 44 |
+
|
| 45 |
+
๐ To further test the model's out-of-distribution performance, we evaluate VibeThinker-3B on recent unseen LeetCode weekly and biweekly contests (Python) from Apr. 25 to May 31, 2026. VibeThinker-3B passes **123/128** first-attempt submissions, corresponding to a **96.1%** acceptance rate.
|
| 46 |
+
|
| 47 |
+

|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
## Training Pipeline
|
| 51 |
+
|
| 52 |
+
VibeThinker-3B follows the **Spectrum-to-Signal Principle (SSP)** introduced in VibeThinker-1.5B. The SFT stage constructs a broad spectrum of valid reasoning trajectories, while the RL stage amplifies correct reasoning signals using verifiable rewards.
|
| 53 |
+
|
| 54 |
+

|
| 55 |
+
|
| 56 |
+
The training pipeline contains the following stages:
|
| 57 |
+
|
| 58 |
+
1. **Curriculum-based two-stage SFT**
|
| 59 |
+
- Stage 1 focuses on broad capability coverage across math, code, STEM reasoning, general dialogue, and instruction following.
|
| 60 |
+
- Stage 2 shifts toward harder and longer-horizon reasoning samples.
|
| 61 |
+
- Diversity-Exploring Distillation is used to preserve multiple valid solution paths.
|
| 62 |
+
|
| 63 |
+
2. **Multi-domain Reasoning RL**
|
| 64 |
+
- VibeThinker-3B reuses MaxEnt-Guided Policy Optimization (MGPO).
|
| 65 |
+
- RL is applied sequentially to math, code, and STEM reasoning tasks.
|
| 66 |
+
- Training uses a single 64K long-context window to preserve complete long-horizon reasoning trajectories.
|
| 67 |
+
|
| 68 |
+
3. **Offline Self-Distillation**
|
| 69 |
+
- High-quality trajectories from Math, Code, and STEM RL checkpoints are filtered and distilled back into a unified student model.
|
| 70 |
+
- A learning-potential score is used to prioritize traces that are correct but not yet well modeled by the student.
|
| 71 |
+
|
| 72 |
+
4. **Instruct RL**
|
| 73 |
+
- The final stage improves controllability on user-facing prompts.
|
| 74 |
+
- Rule-based validators and rubric-based reward models are used for format-sensitive and open-ended instruction data.
|
| 75 |
+
|
| 76 |
+
## Usage Guidelines
|
| 77 |
+
|
| 78 |
+
We recommend using VibeThinker-3B for competitive-style math, coding, STEM reasoning, and other tasks where the target answer can be verified. For broad open-domain knowledge tasks, larger general-purpose models may still be more suitable.
|
| 79 |
+
|
| 80 |
+
For benchmark-style evaluation, the technical report uses vLLM with:
|
| 81 |
+
|
| 82 |
+
- `temperature=1.0`
|
| 83 |
+
- `top_p=0.95`
|
| 84 |
+
- `top_k=-1`
|
| 85 |
+
|
| 86 |
+
## Quick Start
|
| 87 |
+
|
| 88 |
+
Required: **transformers>=4.54.0**
|
| 89 |
+
|
| 90 |
+
Recommended for better inference performance: **vLLM==0.10.1 or SGLang>=0.4.9.post6**
|
| 91 |
+
|
| 92 |
+
```python
|
| 93 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer, GenerationConfig
|
| 94 |
+
|
| 95 |
+
|
| 96 |
+
class VibeThinker:
|
| 97 |
+
def __init__(self, model_path):
|
| 98 |
+
self.model_path = model_path
|
| 99 |
+
self.model = AutoModelForCausalLM.from_pretrained(
|
| 100 |
+
self.model_path,
|
| 101 |
+
low_cpu_mem_usage=True,
|
| 102 |
+
torch_dtype="bfloat16",
|
| 103 |
+
device_map="auto",
|
| 104 |
+
)
|
| 105 |
+
self.tokenizer = AutoTokenizer.from_pretrained(
|
| 106 |
+
self.model_path,
|
| 107 |
+
trust_remote_code=True,
|
| 108 |
+
)
|
| 109 |
+
|
| 110 |
+
def infer_text(self, prompt):
|
| 111 |
+
messages = [{"role": "user", "content": prompt}]
|
| 112 |
+
text = self.tokenizer.apply_chat_template(
|
| 113 |
+
messages,
|
| 114 |
+
tokenize=False,
|
| 115 |
+
add_generation_prompt=True,
|
| 116 |
+
)
|
| 117 |
+
model_inputs = self.tokenizer([text], return_tensors="pt").to(self.model.device)
|
| 118 |
+
|
| 119 |
+
generation_config = dict(
|
| 120 |
+
max_new_tokens=102400,
|
| 121 |
+
do_sample=True,
|
| 122 |
+
temperature=1.0,
|
| 123 |
+
top_p=0.95,
|
| 124 |
+
top_k=None,
|
| 125 |
+
)
|
| 126 |
+
generated_ids = self.model.generate(
|
| 127 |
+
**model_inputs,
|
| 128 |
+
generation_config=GenerationConfig(**generation_config),
|
| 129 |
+
)
|
| 130 |
+
generated_ids = [
|
| 131 |
+
output_ids[len(input_ids):]
|
| 132 |
+
for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
|
| 133 |
+
]
|
| 134 |
+
|
| 135 |
+
return self.tokenizer.batch_decode(
|
| 136 |
+
generated_ids,
|
| 137 |
+
skip_special_tokens=True,
|
| 138 |
+
)[0]
|
| 139 |
+
|
| 140 |
+
|
| 141 |
+
if __name__ == "__main__":
|
| 142 |
+
model = VibeThinker("WeiboAI/VibeThinker-3B")
|
| 143 |
+
prompt = "Your Prompt"
|
| 144 |
+
print(model.infer_text(prompt))
|
| 145 |
+
```
|
| 146 |
+
|
| 147 |
+
## License
|
| 148 |
+
|
| 149 |
+
The model repository is licensed under the MIT License.
|
| 150 |
+
|
| 151 |
+
## Citations & References
|
| 152 |
+
|
| 153 |
+
If you use VibeThinker-3B in your research or product, please cite:
|
| 154 |
+
|
| 155 |
+
```bibtex
|
| 156 |
+
@misc{xu2026vibethinker3bexploringfrontierverifiable,
|
| 157 |
+
title={VibeThinker-3B: Exploring the Frontier of Verifiable Reasoning in Small Language Models},
|
| 158 |
+
author={Sen Xu and Shixi Liu and Wei Wang and Jixin Min and Yingwei Dai and Zhibin Yin and Yirong Chen and Xin Zhou and Junlin Zhang},
|
| 159 |
+
year={2026},
|
| 160 |
+
eprint={2606.16140},
|
| 161 |
+
archivePrefix={arXiv},
|
| 162 |
+
primaryClass={cs.AI},
|
| 163 |
+
url={https://arxiv.org/abs/2606.16140},
|
| 164 |
+
}
|
| 165 |
+
```
|
pictures/Abstrct.png
ADDED
|
Git LFS Details
|
pictures/Acc_and_Scale.png
ADDED
|
Git LFS Details
|
pictures/Architecture.png
ADDED
|
Git LFS Details
|
pictures/LeetCode.png
ADDED
|
Git LFS Details
|
pictures/VibeThiinker-3B.png
ADDED
|
Git LFS Details
|
pictures/VibeThinker-3B+CLR.png
ADDED
|
Git LFS Details
|