Instructions to use enosislabs/math-mini-0.6b-preview-gguf 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-gguf 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-gguf") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("enosislabs/math-mini-0.6b-preview-gguf", dtype="auto") - llama-cpp-python
How to use enosislabs/math-mini-0.6b-preview-gguf with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="enosislabs/math-mini-0.6b-preview-gguf", filename="unsloth.Q4_K_M.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use enosislabs/math-mini-0.6b-preview-gguf with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf enosislabs/math-mini-0.6b-preview-gguf:Q4_K_M # Run inference directly in the terminal: llama-cli -hf enosislabs/math-mini-0.6b-preview-gguf:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf enosislabs/math-mini-0.6b-preview-gguf:Q4_K_M # Run inference directly in the terminal: llama-cli -hf enosislabs/math-mini-0.6b-preview-gguf:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf enosislabs/math-mini-0.6b-preview-gguf:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf enosislabs/math-mini-0.6b-preview-gguf:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf enosislabs/math-mini-0.6b-preview-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf enosislabs/math-mini-0.6b-preview-gguf:Q4_K_M
Use Docker
docker model run hf.co/enosislabs/math-mini-0.6b-preview-gguf:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use enosislabs/math-mini-0.6b-preview-gguf 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-gguf" # 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-gguf", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/enosislabs/math-mini-0.6b-preview-gguf:Q4_K_M
- SGLang
How to use enosislabs/math-mini-0.6b-preview-gguf 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-gguf" \ --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-gguf", "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-gguf" \ --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-gguf", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use enosislabs/math-mini-0.6b-preview-gguf with Ollama:
ollama run hf.co/enosislabs/math-mini-0.6b-preview-gguf:Q4_K_M
- Unsloth Studio new
How to use enosislabs/math-mini-0.6b-preview-gguf with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for enosislabs/math-mini-0.6b-preview-gguf to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for enosislabs/math-mini-0.6b-preview-gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for enosislabs/math-mini-0.6b-preview-gguf to start chatting
- Pi new
How to use enosislabs/math-mini-0.6b-preview-gguf with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf enosislabs/math-mini-0.6b-preview-gguf:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "enosislabs/math-mini-0.6b-preview-gguf:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use enosislabs/math-mini-0.6b-preview-gguf with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf enosislabs/math-mini-0.6b-preview-gguf:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default enosislabs/math-mini-0.6b-preview-gguf:Q4_K_M
Run Hermes
hermes
- Docker Model Runner
How to use enosislabs/math-mini-0.6b-preview-gguf with Docker Model Runner:
docker model run hf.co/enosislabs/math-mini-0.6b-preview-gguf:Q4_K_M
- Lemonade
How to use enosislabs/math-mini-0.6b-preview-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull enosislabs/math-mini-0.6b-preview-gguf:Q4_K_M
Run and chat with the model
lemonade run user.math-mini-0.6b-preview-gguf-Q4_K_M
List all available models
lemonade list
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf enosislabs/math-mini-0.6b-preview-gguf:# Run inference directly in the terminal:
llama-cli -hf enosislabs/math-mini-0.6b-preview-gguf:Use pre-built binary
# Download pre-built binary from:
# https://github.com/ggerganov/llama.cpp/releases# Start a local OpenAI-compatible server with a web UI:
./llama-server -hf enosislabs/math-mini-0.6b-preview-gguf:# Run inference directly in the terminal:
./llama-cli -hf enosislabs/math-mini-0.6b-preview-gguf:Build from source code
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-server llama-cli# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama-server -hf enosislabs/math-mini-0.6b-preview-gguf:# Run inference directly in the terminal:
./build/bin/llama-cli -hf enosislabs/math-mini-0.6b-preview-gguf:Use Docker
docker model run hf.co/enosislabs/math-mini-0.6b-preview-gguf:Math Mini 0.6B (Preview)
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.
Philosophy & Capabilities
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.
Math Mini 0.6B (Preview) is optimized for:
- Basic Algebra: Solving equations and manipulating expressions.
- Arithmetic & Sequential Reasoning: Calculations and breaking down problems into logical steps.
- Elementary Logic: Applying deduction in mathematical contexts.
- Introductory Competition Problem Solving: Focus on foundational skills adapted to the model's scale.
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.
This model is a preview version and is under continuous improvement and evaluation.
Quick Start
Available in both Hugging Face Transformers and quantized GGUF formats.
Transformers (Hugging Face)
Ensure you have the latest transformers library. For Qwen3 models, a recent version is recommended.
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
model_id = "enosislabs/math-mini-0.6b-preview-gguf"
pipe = pipeline("text-generation", model=model_id, trust_remote_code=True)
messages = [
{"role": "system", "content": "You are a helpful math assistant."},
{"role": "user", "content": "Solve for x: 3x + 11 = 35"},
]
formatted_prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
outputs = pipe(formatted_prompt, max_new_tokens=100)
print(outputs[0]["generated_text"])
# Alternatively, load the model and tokenizer directly:
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(model_id, trust_remote_code=True)
inputs = tokenizer.apply_chat_template(messages, tokenize=True, add_generation_prompt=True, return_tensors="pt")
outputs = model.generate(inputs, max_new_tokens=100)
response_text = tokenizer.decode(outputs[0], skip_special_tokens=False)
print(response_text)
GGUF with Ollama
Download the .gguf file from Hugging Face and use Ollama. You can choose between other GGUF versions such as 4bit, 5bit, and 8bit. This example uses the 4bit version:
ollama run enosislabs/math-mini-0.6b-preview-gguf:Q4_K_M
For more control, create a Modelfile with the Qwen3 template:
FROM ./math-mini-0.6b-preview-Q4_K_M.gguf
TEMPLATE """
<|im_start|>system
{{ .System }}<|im_end|>
<|im_start|>user
{{ .Prompt }}<|im_end|>
<|im_start|>assistant
"""
Then run:
ollama create math-mini-0.6b -f Modelfile
ollama run math-mini-0.6b
GGUF with llama.cpp
./main -m ./path/to/math-mini-0.6b-preview.gguf -n 256 -p "<|im_start|>system\nYou are a helpful math assistant.<|im_end|>\n<|im_start|>user\nSolve for x: 2x + 5 = 15<|im_end|>\n<|im_start|>assistant\n" --temp 0.2 -c 2048
vLLM (Transformers)
pip install vllm
python -m vllm.entrypoints.openai.api_server --model enosislabs/math-mini-0.6b-preview-gguf --trust-remote-code
For chat:
curl -X POST "http://localhost:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "enosislabs/math-mini-0.6b-preview-gguf",
"messages": [
{"role": "system", "content": "You are a helpful math assistant."},
{"role": "user", "content": "What is the capital of France?"}
],
"max_tokens": 50,
"temperature": 0.2
}'
Prompt Format (Qwen3 ChatML)
For best results, use the Qwen3 ChatML format. The tokenizer.apply_chat_template method handles this automatically.
<|im_start|>system
You are a helpful AI assistant. Provide a detailed step-by-step solution.
<|im_end|>
<|im_start|>user
{user_question}
<|im_end|>
<|im_start|>assistant
Acknowledgements
- Fine-tuned from
unsloth/Qwen3-0.6B-unsloth-bnb-4bit. - Training process accelerated and optimized thanks to Unsloth.
Citation
If you use this model, please cite:
@software{enosislabs_math_mini_0.6b_preview_2025,
author = {{Enosis Labs}},
title = {{Math Mini 0.6B (Preview)}},
year = {2025},
publisher = {Hugging Face},
version = {0.1-preview},
url = {https://huggingface.co/enosislabs/math-mini-0.6b-preview-gguf}
}
- Downloads last month
- 21
4-bit
5-bit
8-bit
Model tree for enosislabs/math-mini-0.6b-preview-gguf
Base model
Qwen/Qwen3-0.6B-Base
Install from brew
# Start a local OpenAI-compatible server with a web UI: llama-server -hf enosislabs/math-mini-0.6b-preview-gguf:# Run inference directly in the terminal: llama-cli -hf enosislabs/math-mini-0.6b-preview-gguf: