Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
This is recompiled for WASM model: https://huggingface.co/PowerInfer/SmallThinker-3B-Preview
|
| 2 |
+
|
| 3 |
+
Original description:
|
| 4 |
+
---
|
| 5 |
+
datasets:
|
| 6 |
+
- PowerInfer/QWQ-LONGCOT-500K
|
| 7 |
+
- PowerInfer/LONGCOT-Refine-500K
|
| 8 |
+
base_model:
|
| 9 |
+
- Qwen/Qwen2.5-3B-Instruct
|
| 10 |
+
pipeline_tag: text-generation
|
| 11 |
+
language:
|
| 12 |
+
- en
|
| 13 |
+
library_name: transformers
|
| 14 |
+
---
|
| 15 |
+
# SmallThinker-3B-preview
|
| 16 |
+
|
| 17 |
+
We introduce **SmallThinker-3B-preview**, a new model fine-tuned from the [Qwen2.5-3b-Instruct](https://huggingface.co/Qwen/Qwen2.5-3B-Instruct) model.
|
| 18 |
+
|
| 19 |
+
## Benchmark Performance
|
| 20 |
+
|
| 21 |
+
| Model | AIME24 | AMC23 | GAOKAO2024_I | GAOKAO2024_II | MMLU_STEM | AMPS_Hard | math_comp |
|
| 22 |
+
|---------|--------|-------|--------------|---------------|-----------|-----------|-----------|
|
| 23 |
+
| Qwen2.5-3B-Instruct | 6.67 | 45 | 50 | 35.8 | 59.8 | - | - |
|
| 24 |
+
| SmallThinker | 16.667 | 57.5 | 64.2 | 57.1 | 68.2 | 70 | 46.8 |
|
| 25 |
+
| GPT-4o | 9.3 | - | - | - | 64.2 | 57 | 50 |
|
| 26 |
+
|
| 27 |
+
Limitation: Due to SmallThinker's current limitations in instruction following, for math_comp we adopt a more lenient evaluation method where only correct answers are required, without constraining responses to follow the specified AAAAA format.
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
## Intended Use Cases
|
| 31 |
+
|
| 32 |
+
SmallThinker is designed for the following use cases:
|
| 33 |
+
|
| 34 |
+
1. **Edge Deployment:** Its small size makes it ideal for deployment on resource-constrained devices.
|
| 35 |
+
2. **Draft Model for QwQ-32B-Preview:** SmallThinker can serve as a fast and efficient draft model for the larger QwQ-32B-Preview model. From my test, in llama.cpp we can get 70% speedup (from 40 tokens/s to 70 tokens/s).
|
| 36 |
+
|
| 37 |
+
## Training Details
|
| 38 |
+
|
| 39 |
+
The model was trained using 8 H100 GPUs with a global batch size of 16. The specific configuration is as follows:
|
| 40 |
+
|
| 41 |
+
```
|
| 42 |
+
neat_packing: true
|
| 43 |
+
cutoff_len: 16384
|
| 44 |
+
per_device_train_batch_size: 2
|
| 45 |
+
gradient_accumulation_steps: 1
|
| 46 |
+
learning_rate: 1.0e-5
|
| 47 |
+
num_train_epochs: 3
|
| 48 |
+
lr_scheduler_type: cosine
|
| 49 |
+
warmup_ratio: 0.02
|
| 50 |
+
bf16: true
|
| 51 |
+
ddp_timeout: 180000000
|
| 52 |
+
weight_decay: 0.0
|
| 53 |
+
```
|
| 54 |
+
|
| 55 |
+
The SFT (Supervised Fine-Tuning) process was conducted in two phases:
|
| 56 |
+
|
| 57 |
+
1. First Phase:
|
| 58 |
+
- Used only the PowerInfer/QWQ-LONGCOT-500K dataset
|
| 59 |
+
- Trained for 1.5 epochs
|
| 60 |
+
|
| 61 |
+
2. Second Phase:
|
| 62 |
+
- Combined training with PowerInfer/QWQ-LONGCOT-500K and PowerInfer/LONGCOT-Refine datasets
|
| 63 |
+
- Continued training for 2 additional epochs
|
| 64 |
+
|
| 65 |
+
|
| 66 |
+
## Limitations & Disclaimer
|
| 67 |
+
|
| 68 |
+
Please be aware of the following limitations:
|
| 69 |
+
|
| 70 |
+
* **Language Limitation:** The model has only been trained on English-language datasets, hence its capabilities in other languages are still lacking.
|
| 71 |
+
* **Limited Knowledge:** Due to limited SFT data and the model's relatively small scale, its reasoning capabilities are constrained by its knowledge base.
|
| 72 |
+
* **Unpredictable Outputs:** The model may produce unexpected outputs due to its size and probabilistic generation paradigm. Users should exercise caution and validate the model's responses.
|
| 73 |
+
* **Repetition Issue:** The model tends to repeat itself when answering high-difficulty questions. Please increase the `repetition_penalty` to mitigate this issue.
|