Text Generation
Transformers
Safetensors
English
smallthinker
feature-extraction
conversational
custom_code
Instructions to use Tiiny/SmallThinker-4BA0.6B-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Tiiny/SmallThinker-4BA0.6B-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Tiiny/SmallThinker-4BA0.6B-Instruct", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Tiiny/SmallThinker-4BA0.6B-Instruct", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Tiiny/SmallThinker-4BA0.6B-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Tiiny/SmallThinker-4BA0.6B-Instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Tiiny/SmallThinker-4BA0.6B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Tiiny/SmallThinker-4BA0.6B-Instruct
- SGLang
How to use Tiiny/SmallThinker-4BA0.6B-Instruct 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 "Tiiny/SmallThinker-4BA0.6B-Instruct" \ --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": "Tiiny/SmallThinker-4BA0.6B-Instruct", "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 "Tiiny/SmallThinker-4BA0.6B-Instruct" \ --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": "Tiiny/SmallThinker-4BA0.6B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Tiiny/SmallThinker-4BA0.6B-Instruct with Docker Model Runner:
docker model run hf.co/Tiiny/SmallThinker-4BA0.6B-Instruct
Update README.md
Browse files
README.md
CHANGED
|
@@ -15,11 +15,11 @@ without relying on the cloud.
|
|
| 15 |
## Performance
|
| 16 |
| Model | MMLU | GPQA-diamond | GSM8K | MATH-500 | IFEVAL | LIVEBENCH | HUMANEVAL | Average |
|
| 17 |
| :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
|
| 18 |
-
| **SmallThinker-4BA0.6B-Instruct** | 66.11 | 31.31 | 80.02 | 60.60 | 69.69 | 42.20 | 82.32 | 61.75 |
|
| 19 |
| Qwen3-0.6B | 43.31 | 26.77 | 62.85 | 45.6 | 58.41 | 23.1 | 31.71 | 41.67 |
|
| 20 |
-
| Qwen3-1.7B | 64.19 | 27.78 | 81.88 | 63.6 | 69.50 | 35.60 | 61.59 | 57.73 |
|
| 21 |
-
| Gemma3nE2b-it | 63.04 | 20.2 | 82.34 | 58.6 | 73.2 | 27.90 | 64.63 | 55.70 |
|
| 22 |
-
| Llama3.2-3B-Instruct | 64.15 | 24.24 | 75.51 | 40 | 71.16 | 15.30 | 55.49 | 49.41 |
|
| 23 |
| Llama-3.2-1B-Instruct | 45.66 | 22.73 | 1.67 | 14.4 | 48.06 | 13.50 | 37.20 | 26.17 |
|
| 24 |
|
| 25 |
For the MMLU evaluation, we use a 0-shot CoT setting.
|
|
@@ -28,7 +28,6 @@ For the MMLU evaluation, we use a 0-shot CoT setting.
|
|
| 28 |
|
| 29 |
<div align="center">
|
| 30 |
|
| 31 |
-
| | |
|
| 32 |
|:---:|:---:|
|
| 33 |
| **Architecture** | Mixture-of-Experts (MoE) |
|
| 34 |
| **Total Parameters** | 4B |
|
|
@@ -49,7 +48,7 @@ For the MMLU evaluation, we use a 0-shot CoT setting.
|
|
| 49 |
|
| 50 |
### Transformers
|
| 51 |
|
| 52 |
-
The latest version of `transformers` is recommended or `transformers>=4.
|
| 53 |
The following contains a code snippet illustrating how to use the model generate content based on given inputs.
|
| 54 |
|
| 55 |
```python
|
|
|
|
| 15 |
## Performance
|
| 16 |
| Model | MMLU | GPQA-diamond | GSM8K | MATH-500 | IFEVAL | LIVEBENCH | HUMANEVAL | Average |
|
| 17 |
| :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
|
| 18 |
+
| **SmallThinker-4BA0.6B-Instruct** | **66.11** | **31.31** | 80.02 | <u>60.60</u> | 69.69 | **42.20** | **82.32** | **61.75** |
|
| 19 |
| Qwen3-0.6B | 43.31 | 26.77 | 62.85 | 45.6 | 58.41 | 23.1 | 31.71 | 41.67 |
|
| 20 |
+
| Qwen3-1.7B | <u>64.19</u> | <u>27.78</u> | <u>81.88</u> | **63.6** | 69.50 | <u>35.60</u> | 61.59 | <u>57.73</u> |
|
| 21 |
+
| Gemma3nE2b-it | 63.04 | 20.2 | **82.34** | 58.6 | **73.2** | 27.90 | <u>64.63</u> | 55.70 |
|
| 22 |
+
| Llama3.2-3B-Instruct | 64.15 | 24.24 | 75.51 | 40 | <u>71.16</u> | 15.30 | 55.49 | 49.41 |
|
| 23 |
| Llama-3.2-1B-Instruct | 45.66 | 22.73 | 1.67 | 14.4 | 48.06 | 13.50 | 37.20 | 26.17 |
|
| 24 |
|
| 25 |
For the MMLU evaluation, we use a 0-shot CoT setting.
|
|
|
|
| 28 |
|
| 29 |
<div align="center">
|
| 30 |
|
|
|
|
| 31 |
|:---:|:---:|
|
| 32 |
| **Architecture** | Mixture-of-Experts (MoE) |
|
| 33 |
| **Total Parameters** | 4B |
|
|
|
|
| 48 |
|
| 49 |
### Transformers
|
| 50 |
|
| 51 |
+
The latest version of `transformers` is recommended or `transformers>=4.53.3` is required.
|
| 52 |
The following contains a code snippet illustrating how to use the model generate content based on given inputs.
|
| 53 |
|
| 54 |
```python
|