Text Generation
Transformers
PyTorch
Safetensors
GGUF
English
qwen3
text-generation-inference
math
enosislabs
math-mini
conversational
Instructions to use enosislabs/math-mini-0.6b-preview-16bits with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use enosislabs/math-mini-0.6b-preview-16bits with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="enosislabs/math-mini-0.6b-preview-16bits") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("enosislabs/math-mini-0.6b-preview-16bits") model = AutoModelForCausalLM.from_pretrained("enosislabs/math-mini-0.6b-preview-16bits", 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use enosislabs/math-mini-0.6b-preview-16bits with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "enosislabs/math-mini-0.6b-preview-16bits" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "enosislabs/math-mini-0.6b-preview-16bits", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/enosislabs/math-mini-0.6b-preview-16bits
- SGLang
How to use enosislabs/math-mini-0.6b-preview-16bits 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 "enosislabs/math-mini-0.6b-preview-16bits" \ --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": "enosislabs/math-mini-0.6b-preview-16bits", "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 "enosislabs/math-mini-0.6b-preview-16bits" \ --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": "enosislabs/math-mini-0.6b-preview-16bits", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use enosislabs/math-mini-0.6b-preview-16bits with Docker Model Runner:
docker model run hf.co/enosislabs/math-mini-0.6b-preview-16bits
Fernando J. Albornoz commited on
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,22 +1,123 @@
|
|
| 1 |
---
|
| 2 |
base_model: unsloth/Qwen3-0.6B-unsloth-bnb-4bit
|
|
|
|
| 3 |
tags:
|
|
|
|
| 4 |
- text-generation-inference
|
| 5 |
- transformers
|
| 6 |
-
- unsloth
|
| 7 |
- qwen3
|
| 8 |
-
-
|
|
|
|
|
|
|
|
|
|
| 9 |
license: apache-2.0
|
| 10 |
language:
|
| 11 |
- en
|
| 12 |
---
|
| 13 |
|
| 14 |
-
#
|
| 15 |
|
| 16 |
-
|
| 17 |
-
- **License:** apache-2.0
|
| 18 |
-
- **Finetuned from model :** unsloth/Qwen3-0.6B-unsloth-bnb-4bit
|
| 19 |
|
| 20 |
-
|
| 21 |
|
| 22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
base_model: unsloth/Qwen3-0.6B-unsloth-bnb-4bit
|
| 3 |
+
model_name: Math Mini 0.6B (Preview)
|
| 4 |
tags:
|
| 5 |
+
- text-generation
|
| 6 |
- text-generation-inference
|
| 7 |
- transformers
|
|
|
|
| 8 |
- qwen3
|
| 9 |
+
- math
|
| 10 |
+
- enosislabs
|
| 11 |
+
- math-mini
|
| 12 |
+
- gguf # Tag for GGUF version
|
| 13 |
license: apache-2.0
|
| 14 |
language:
|
| 15 |
- en
|
| 16 |
---
|
| 17 |
|
| 18 |
+
# Math Mini 0.6B (Preview)
|
| 19 |
|
| 20 |
+
**Math Mini 0.6B (Preview)** is a compact, specialized model developed by **Enosis Labs** as part of the "Mini Series." It is designed to deliver efficient and precise mathematical reasoning, with a realistic and practical focus for its size. This model is fine-tuned from `unsloth/Qwen3-0.6B-unsloth-bnb-4bit`.
|
|
|
|
|
|
|
| 21 |
|
| 22 |
+
## Philosophy & Capabilities
|
| 23 |
|
| 24 |
+
The Mini Series, along with the "Enosis Math" and "Enosis Code" models, incorporates step-by-step reasoning by default, enabling more efficient, clear, and well-founded answers. All models in the Math series have been trained with carefully curated step-by-step problem-solving datasets, resulting in a greater ability to reason and explain solutions in a structured way.
|
| 25 |
+
|
| 26 |
+
**Math Mini 0.6B (Preview)** is optimized for:
|
| 27 |
+
|
| 28 |
+
* **Basic Algebra:** Solving equations and manipulating expressions.
|
| 29 |
+
* **Arithmetic & Sequential Reasoning:** Calculations and breaking down problems into logical steps.
|
| 30 |
+
* **Elementary Logic:** Applying deduction in mathematical contexts.
|
| 31 |
+
* **Introductory Competition Problem Solving:** Focus on foundational skills adapted to the model's scale.
|
| 32 |
+
|
| 33 |
+
Larger models in the "Enosis Math" series address advanced topics such as calculus, higher algebra, and olympiad problems. The "Code Mini" and "Enosis Code" series are oriented towards programming and algorithmic tasks, maintaining the same philosophy of explicit and efficient reasoning.
|
| 34 |
+
|
| 35 |
+
This model is a **preview version** and is under continuous improvement and evaluation.
|
| 36 |
+
|
| 37 |
+
## Quick Start
|
| 38 |
+
|
| 39 |
+
Available in Hugging Face Transformers format and for high-throughput inference servers like vLLM.
|
| 40 |
+
|
| 41 |
+
### vLLM (Inference Server)
|
| 42 |
+
|
| 43 |
+
Install vLLM:
|
| 44 |
+
|
| 45 |
+
```bash
|
| 46 |
+
pip install vllm
|
| 47 |
+
```
|
| 48 |
+
|
| 49 |
+
Start the vLLM server with the model (16-bit version):
|
| 50 |
+
|
| 51 |
+
```bash
|
| 52 |
+
vllm serve "enosislabs/math-mini-0.6b-preview-16bits"
|
| 53 |
+
```
|
| 54 |
+
|
| 55 |
+
Call the server using curl:
|
| 56 |
+
|
| 57 |
+
```bash
|
| 58 |
+
curl -X POST "http://localhost:8000/v1/chat/completions" \
|
| 59 |
+
-H "Content-Type: application/json" \
|
| 60 |
+
--data '{
|
| 61 |
+
"model": "enosislabs/math-mini-0.6b-preview-16bits",
|
| 62 |
+
"messages": [
|
| 63 |
+
{"role": "user", "content": "What is the capital of France?"}
|
| 64 |
+
]
|
| 65 |
+
}'
|
| 66 |
+
```
|
| 67 |
+
|
| 68 |
+
### Transformers (Hugging Face)
|
| 69 |
+
|
| 70 |
+
Use a pipeline as a high-level helper:
|
| 71 |
+
|
| 72 |
+
```python
|
| 73 |
+
from transformers import pipeline
|
| 74 |
+
|
| 75 |
+
pipe = pipeline("text-generation", model="enosislabs/math-mini-0.6b-preview-16bits")
|
| 76 |
+
messages = [
|
| 77 |
+
{"role": "user", "content": "Who are you?"},
|
| 78 |
+
]
|
| 79 |
+
pipe(messages)
|
| 80 |
+
```
|
| 81 |
+
|
| 82 |
+
## Prompt Format (Qwen3 ChatML)
|
| 83 |
+
|
| 84 |
+
For best results, use the Qwen3 ChatML format. The `tokenizer.apply_chat_template` method handles this automatically.
|
| 85 |
+
|
| 86 |
+
```text
|
| 87 |
+
<|im_start|>system
|
| 88 |
+
You are a helpful AI assistant. Provide a detailed step-by-step solution.
|
| 89 |
+
<|im_end|>
|
| 90 |
+
<|im_start|>user
|
| 91 |
+
{user_question}
|
| 92 |
+
<|im_end|>
|
| 93 |
+
<|im_start|>assistant
|
| 94 |
+
```
|
| 95 |
+
|
| 96 |
+
## Acknowledgements
|
| 97 |
+
|
| 98 |
+
* Fine-tuned from `unsloth/Qwen3-0.6B-unsloth-bnb-4bit`.
|
| 99 |
+
* Training process accelerated and optimized thanks to [Unsloth](https://github.com/unslothai/unsloth).
|
| 100 |
+
|
| 101 |
+
## Citation
|
| 102 |
+
|
| 103 |
+
If you use this model, please cite:
|
| 104 |
+
|
| 105 |
+
```bibtex
|
| 106 |
+
@software{enosislabs_math_mini_0.6b_preview_2025,
|
| 107 |
+
author = {{Enosis Labs}},
|
| 108 |
+
title = {{Math Mini 0.6B (Preview)}},
|
| 109 |
+
year = {2025},
|
| 110 |
+
publisher = {Hugging Face},
|
| 111 |
+
version = {0.1-preview},
|
| 112 |
+
url = {https://huggingface.co/enosislabs/math-mini-0.6b-preview-16bits}
|
| 113 |
+
}
|
| 114 |
+
```
|
| 115 |
+
|
| 116 |
+
<!--
|
| 117 |
+
Key points:
|
| 118 |
+
- More subtle and direct, less redundancy.
|
| 119 |
+
- Emphasizes default activation of step-by-step reasoning across the series.
|
| 120 |
+
- Clear and modern examples for each format.
|
| 121 |
+
- ChatML prompt is central to the experience.
|
| 122 |
+
- Assumes the repo contains both Transformers and GGUF models.
|
| 123 |
+
-->
|