munish0838
commited on
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
---
|
3 |
+
|
4 |
+
datasets:
|
5 |
+
- PowerInfer/QWQ-LONGCOT-500K
|
6 |
+
- PowerInfer/LONGCOT-Refine-500K
|
7 |
+
base_model:
|
8 |
+
- Qwen/Qwen2.5-3B-Instruct
|
9 |
+
|
10 |
+
---
|
11 |
+
|
12 |
+
[![QuantFactory Banner](https://lh7-rt.googleusercontent.com/docsz/AD_4nXeiuCm7c8lEwEJuRey9kiVZsRn2W-b4pWlu3-X534V3YmVuVc2ZL-NXg2RkzSOOS2JXGHutDuyyNAUtdJI65jGTo8jT9Y99tMi4H4MqL44Uc5QKG77B0d6-JfIkZHFaUA71-RtjyYZWVIhqsNZcx8-OMaA?key=xt3VSDoCbmTY7o-cwwOFwQ)](https://hf.co/QuantFactory)
|
13 |
+
|
14 |
+
|
15 |
+
# QuantFactory/SmallThinker-3B-Preview-GGUF
|
16 |
+
This is quantized version of [PowerInfer/SmallThinker-3B-Preview](https://huggingface.co/PowerInfer/SmallThinker-3B-Preview) created using llama.cpp
|
17 |
+
|
18 |
+
# Original Model Card
|
19 |
+
|
20 |
+
# SmallThinker-3B-preview
|
21 |
+
|
22 |
+
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.
|
23 |
+
|
24 |
+
## Benchmark Performance
|
25 |
+
|
26 |
+
| Model | AIME24 | AMC23 | GAOKAO2024_I | GAOKAO2024_II | MMLU_STEM | AMPS_Hard | math_comp |
|
27 |
+
|---------|--------|-------|--------------|---------------|-----------|-----------|-----------|
|
28 |
+
| Qwen2.5-3B-Instruct | 6.67 | 45 | 50 | 35.8 | 59.8 | - | - |
|
29 |
+
| SmallThinker | 16.667 | 57.5 | 64.2 | 57.1 | 68.2 | 70 | 46.8 |
|
30 |
+
| GPT-4o | 9.3 | - | - | - | 64.2 | 57 | 50 |
|
31 |
+
|
32 |
+
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.
|
33 |
+
|
34 |
+
|
35 |
+
## Intended Use Cases
|
36 |
+
|
37 |
+
SmallThinker is designed for the following use cases:
|
38 |
+
|
39 |
+
1. **Edge Deployment:** Its small size makes it ideal for deployment on resource-constrained devices.
|
40 |
+
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).
|
41 |
+
|
42 |
+
## Training Details
|
43 |
+
|
44 |
+
The model was trained using 8 H100 GPUs with a global batch size of 16. The specific configuration is as follows:
|
45 |
+
|
46 |
+
```
|
47 |
+
neat_packing: true
|
48 |
+
cutoff_len: 16384
|
49 |
+
per_device_train_batch_size: 2
|
50 |
+
gradient_accumulation_steps: 1
|
51 |
+
learning_rate: 1.0e-5
|
52 |
+
num_train_epochs: 3
|
53 |
+
lr_scheduler_type: cosine
|
54 |
+
warmup_ratio: 0.02
|
55 |
+
bf16: true
|
56 |
+
ddp_timeout: 180000000
|
57 |
+
weight_decay: 0.0
|
58 |
+
```
|
59 |
+
|
60 |
+
The SFT (Supervised Fine-Tuning) process was conducted in two phases:
|
61 |
+
|
62 |
+
1. First Phase:
|
63 |
+
- Used only the PowerInfer/QWQ-LONGCOT-500K dataset
|
64 |
+
- Trained for 1.5 epochs
|
65 |
+
|
66 |
+
2. Second Phase:
|
67 |
+
- Combined training with PowerInfer/QWQ-LONGCOT-500K and PowerInfer/LONGCOT-Refine datasets
|
68 |
+
- Continued training for an additional 2 epochs
|
69 |
+
|
70 |
+
|
71 |
+
## Limitations & Disclaimer
|
72 |
+
|
73 |
+
Please be aware of the following limitations:
|
74 |
+
|
75 |
+
* **Language Limitation:** The model has only been trained on English-language datasets, hence its capabilities in other languages are still lacking.
|
76 |
+
* **Limited Knowledge:** Due to limited SFT data and the model's relatively small scale, its reasoning capabilities are constrained by its knowledge base.
|
77 |
+
* **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.
|
78 |
+
* **Repetition Issue:** The model tends to repeat itself when answering high-difficulty questions. Please increase the `repetition_penalty` to mitigate this issue.
|