Instructions to use enosislabs/math-mini-1.7b-preview-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use enosislabs/math-mini-1.7b-preview-gguf with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("enosislabs/math-mini-1.7b-preview-gguf", dtype="auto") - llama-cpp-python
How to use enosislabs/math-mini-1.7b-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-1.7b-preview-gguf", filename="mathmini.Q4_K_M.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use enosislabs/math-mini-1.7b-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-1.7b-preview-gguf:Q4_K_M # Run inference directly in the terminal: llama-cli -hf enosislabs/math-mini-1.7b-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-1.7b-preview-gguf:Q4_K_M # Run inference directly in the terminal: llama-cli -hf enosislabs/math-mini-1.7b-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-1.7b-preview-gguf:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf enosislabs/math-mini-1.7b-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-1.7b-preview-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf enosislabs/math-mini-1.7b-preview-gguf:Q4_K_M
Use Docker
docker model run hf.co/enosislabs/math-mini-1.7b-preview-gguf:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use enosislabs/math-mini-1.7b-preview-gguf with Ollama:
ollama run hf.co/enosislabs/math-mini-1.7b-preview-gguf:Q4_K_M
- Unsloth Studio new
How to use enosislabs/math-mini-1.7b-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-1.7b-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-1.7b-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-1.7b-preview-gguf to start chatting
- Pi new
How to use enosislabs/math-mini-1.7b-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-1.7b-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-1.7b-preview-gguf:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use enosislabs/math-mini-1.7b-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-1.7b-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-1.7b-preview-gguf:Q4_K_M
Run Hermes
hermes
- Docker Model Runner
How to use enosislabs/math-mini-1.7b-preview-gguf with Docker Model Runner:
docker model run hf.co/enosislabs/math-mini-1.7b-preview-gguf:Q4_K_M
- Lemonade
How to use enosislabs/math-mini-1.7b-preview-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull enosislabs/math-mini-1.7b-preview-gguf:Q4_K_M
Run and chat with the model
lemonade run user.math-mini-1.7b-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-1.7b-preview-gguf:# Run inference directly in the terminal:
llama-cli -hf enosislabs/math-mini-1.7b-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-1.7b-preview-gguf:# Run inference directly in the terminal:
./llama-cli -hf enosislabs/math-mini-1.7b-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-1.7b-preview-gguf:# Run inference directly in the terminal:
./build/bin/llama-cli -hf enosislabs/math-mini-1.7b-preview-gguf:Use Docker
docker model run hf.co/enosislabs/math-mini-1.7b-preview-gguf:Uploaded model
Math Mini 1.7B (Preview)
Math Mini 1.7B (Preview) is a larger, more capable model developed by Enosis Labs as part of the "Mini Series." Building on the foundation of the 0.6B version, this 1.7B model delivers significantly improved performance, deeper reasoning, and greater accuracy in mathematical tasks. It is fine-tuned from the original Qwen/Qwen3-1.7B base model (not from Unsloth's pre-adapted versions).
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 1.7B (Preview) is optimized for:
- Basic and Intermediate Algebra: Solving equations, manipulating expressions, and handling more complex algebraic problems.
- Arithmetic & Sequential Reasoning: Calculations and breaking down problems into logical steps, with improved multi-step reasoning.
- Elementary & Intermediate Logic: Applying deduction in mathematical contexts, now with broader coverage.
- Competition Problem Solving (Introductory to Intermediate): Enhanced foundational and competition-style skills, adapted to the increased model scale.
Larger models in the "Enosis Math" series address even more 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 Hugging Face Transformers format and for high-throughput inference servers like vLLM.
vLLM (Inference Server)
Install vLLM:
pip install vllm
Start the vLLM server with the model (16-bit version):
vllm serve "enosislabs/math-mini-1.7b-preview-16bits"
Call the server using curl:
curl -X POST "http://localhost:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "enosislabs/math-mini-1.7b-preview-16bits",
"messages": [
{"role": "user", "content": "What is the capital of France?"}
]
}'
Transformers (Hugging Face)
Use a pipeline as a high-level helper:
from transformers import pipeline
pipe = pipeline("text-generation", model="enosislabs/math-mini-1.7b-preview-16bits")
messages = [
{"role": "user", "content": "Who are you?"},
]
pipe(messages)
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 the original
Qwen/Qwen3-1.7Bbase model. - Training process accelerated and optimized using Unsloth for efficiency.
Citation
If you use this model, please cite:
@software{enosislabs_math_mini_1.7b_preview_2025,
author = {{Enosis Labs}},
title = {{Math Mini 1.7B (Preview)}},
year = {2025},
publisher = {Hugging Face},
version = {0.1-preview},
url = {https://huggingface.co/enosislabs/math-mini-1.7b-preview-16bits}
}
- Downloads last month
- 15
4-bit
5-bit
8-bit
Install from brew
# Start a local OpenAI-compatible server with a web UI: llama-server -hf enosislabs/math-mini-1.7b-preview-gguf:# Run inference directly in the terminal: llama-cli -hf enosislabs/math-mini-1.7b-preview-gguf: