Instructions to use Bluish-AI/anant with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Bluish-AI/anant with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Bluish-AI/anant") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Bluish-AI/anant", dtype="auto") - llama-cpp-python
How to use Bluish-AI/anant with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Bluish-AI/anant", filename="anant-1.5b-base-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 Bluish-AI/anant with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Bluish-AI/anant:Q4_K_M # Run inference directly in the terminal: llama-cli -hf Bluish-AI/anant:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Bluish-AI/anant:Q4_K_M # Run inference directly in the terminal: llama-cli -hf Bluish-AI/anant: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 Bluish-AI/anant:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Bluish-AI/anant: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 Bluish-AI/anant:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Bluish-AI/anant:Q4_K_M
Use Docker
docker model run hf.co/Bluish-AI/anant:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use Bluish-AI/anant with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Bluish-AI/anant" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Bluish-AI/anant", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Bluish-AI/anant:Q4_K_M
- SGLang
How to use Bluish-AI/anant 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 "Bluish-AI/anant" \ --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": "Bluish-AI/anant", "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 "Bluish-AI/anant" \ --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": "Bluish-AI/anant", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use Bluish-AI/anant with Ollama:
ollama run hf.co/Bluish-AI/anant:Q4_K_M
- Unsloth Studio new
How to use Bluish-AI/anant 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 Bluish-AI/anant 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 Bluish-AI/anant to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Bluish-AI/anant to start chatting
- Pi new
How to use Bluish-AI/anant with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf Bluish-AI/anant: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": "Bluish-AI/anant:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use Bluish-AI/anant with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf Bluish-AI/anant: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 Bluish-AI/anant:Q4_K_M
Run Hermes
hermes
- Docker Model Runner
How to use Bluish-AI/anant with Docker Model Runner:
docker model run hf.co/Bluish-AI/anant:Q4_K_M
- Lemonade
How to use Bluish-AI/anant with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Bluish-AI/anant:Q4_K_M
Run and chat with the model
lemonade run user.anant-Q4_K_M
List all available models
lemonade list
Anant
Anant is a small, local-first AI model family by BlueishAI. It is designed to run comfortably on consumer devices while still giving useful assistant behavior and stronger reasoning than the base chat variant when needed.
This repository contains GGUF builds for local inference with Ollama, llama.cpp, LM Studio, and other GGUF-compatible runtimes.
Available Files
| File | Variant | Quantization | Best for |
|---|---|---|---|
anant-1.5b-base-Q4_K_M.gguf |
Base | Q4_K_M | Fastest local chat |
anant-1.5b-base-Q8_0.gguf |
Base | Q8_0 | Better base quality with more RAM |
anant-3b-reason-Q4_K_M.gguf |
Reason | Q4_K_M | Math, logic, planning, and analysis |
anant-3b-reason-Q8_0.gguf |
Reason | Q8_0 | Higher quality reasoning with more RAM |
Which Variant Should You Use?
Use anant-1.5b-base-Q4_K_M.gguf if you want the fastest Anant model for normal chat, short answers, summarization, rewriting, and lightweight coding help.
Use anant-3b-reason-Q4_K_M.gguf if the task needs stronger reasoning: math, multi-step logic, debugging, planning, or careful analysis.
Use Q8_0 if you have enough memory and want quality closer to the merged model. Use Q4_K_M if you want the best balance of size, speed, and quality.
What Makes Anant Different?
Anant is not trying to be the largest model. The goal is a practical local model that:
- Runs on normal laptops and desktops.
- Has small GGUF files that are easy to download and run.
- Keeps a fast 1.5B base variant for everyday use.
- Provides a larger 3B reason variant for harder prompts.
- Uses LoRA adaptation instead of training a full model from scratch.
- Uses Q4_K_M and Q8_0 GGUF quantization for local inference.
The base model is intended to be quick and useful. The reason model is intended to be more deliberate, especially on tasks where the base model may make algebra, logic, or constraint-checking mistakes.
Training Overview
Anant is built from Qwen2.5 Instruct checkpoints and adapted using LoRA.
The training process used this broad pipeline:
- Start from a Qwen2.5 Instruct checkpoint.
- Train a LoRA adapter on curated instruction or reasoning data.
- Merge the LoRA adapter back into the base model.
- Export the merged model to F16 GGUF.
- Quantize the F16 GGUF into Q4_K_M and Q8_0.
- Test the final GGUF models locally with llama.cpp/Ollama style prompts.
The models were NOT trained from scratch. They are adaptations of Qwen2.5 models, which keeps the training cost manageable and preserves the strong tokenizer, chat format, and general language ability of the source model. This decision was made because it would've been a waste of time and resources if we had trained it from scratch. So, we took Qwen as the base model since qwen itself is a really strong model.
Base Variant
The base variant is the lightweight general assistant model.
Base model family:
Qwen2.5 Instruct
Training method:
LoRA supervised fine-tuning
Purpose:
- General chat
- Simple explanations
- Rewriting
- Summarization
- Lightweight coding help
- Fast local inference
The base model is optimized for responsiveness. It is the model to use when the prompt does not require deep reasoning.
Reason Variant
The reason variant is the stronger Anant model for multi-step problem solving.
Base model:
Qwen/Qwen2.5-3B-Instruct
Reasoning dataset:
open-r1/OpenR1-Math-220k
Training method:
QLoRA adaptation
Purpose:
- Math reasoning
- Constraint solving
- Logic problems
- Planning
- Debugging
- Programming
- Analysis tasks where checking intermediate steps matters
The reason variant is instructed to decide whether a prompt actually needs reasoning. For simple questions, it should answer directly. For math, logic, debugging, planning, or analysis, it should reason carefully and then give a clear answer.
LoRA And QLoRA
LoRA means Low-Rank Adaptation. Instead of updating every parameter in the base model, LoRA trains small adapter matrices attached to selected layers of the model. This makes training much cheaper and faster while still changing the model's behavior.
QLoRA is a memory-efficient version of this idea. The base model is loaded in 4-bit quantized form during training, while the LoRA adapter remains trainable. This makes it possible to adapt larger models on limited GPU memory.
After training, the adapter is merged into the base model to create a normal standalone model. That merged model is then exported to GGUF for local inference.
Why GGUF?
GGUF is the model format used by llama.cpp and many local inference tools. It is useful because it:
- Runs well on CPU.
- Supports quantized models.
- Works with Ollama and LM Studio.
- Makes local deployment simple.
- Avoids needing a full Python/Transformers stack for inference.
Quantization
The included models use:
Q4_K_M
Q8_0
Q4_K_M is smaller and faster. It is recommended for most users.
Q8_0 is larger and slower, but it keeps more of the original F16 model quality.
Approximate tradeoff:
| Quantization | Size | Speed | Quality |
|---|---|---|---|
| Q4_K_M | Smaller | Faster | Good |
| Q8_0 | Larger | Slower | Better |
Ollama Usage
Run the base model:
ollama run anant
Run the reason model:
ollama run anant-reason
llama.cpp Usage
Example with the reason model:
llama-cli -m anant-3b-reason-Q4_K_M.gguf -c 4096 -n 512 -p "Solve carefully: A factory makes two products..."
Example with the base model:
llama-cli -m anant-1.5b-base-Q4_K_M.gguf -c 4096 -n 256 -p "Explain LoRA in simple terms."
Example Reasoning Test
Prompt:
A factory makes two products, A and B.
Each unit of A needs 2 hours of machine time and 1 hour of labor.
Each unit of B needs 1 hour of machine time and 3 hours of labor.
The factory has 100 machine hours and 90 labor hours available.
Profit is $40 per unit of A and $50 per unit of B.
How many units of A and B should the factory make to maximize profit? Show the reasoning.
Expected answer:
A = 42
B = 16
Maximum profit = $2480
This kind of prompt is useful because it checks whether the model can set up constraints, solve the intersection, evaluate corner points, and reject infeasible answers.
Web Search
Anant does not browse the internet by itself.
For web search, connect Anant to an external wrapper or application that performs search and injects the retrieved results into the prompt. The model can then answer from those provided results.
Do NOT rely on the model alone for current events, live prices, breaking news, laws, or anything time-sensitive.
Tokenizer And Chat Format
The tokenizer and chat template come from the Qwen2.5 model family. The Anant variants use the same tokenization format, so the base and reason variants are compatible with the same general chat formatting.
Limitations
Anant is small. It can be fast and useful, but it will not match large frontier models.
Known limitations:
- May hallucinate facts.
- Does not have live internet access.
- Can make reasoning mistakes, especially under long or ambiguous prompts.
- May struggle with very long context.
- Coding ability is limited compared with larger code-specialized models.
- Quantized models may lose some quality compared with F16.
For high-stakes medical, legal, financial, or safety-critical work, verify outputs with reliable sources and expert review.
Recommended Settings
General base model:
temperature: 0.7
top_p: 0.9
repeat_penalty: 1.08
context: 4096
Reason model:
temperature: 0.35
top_p: 0.9
repeat_penalty: 1.08
context: 4096
Lower temperature is recommended for reasoning tasks because it reduces random mistakes.
Citation
If you use Anant, cite or link this repository and BlueishAI.
Anant, BlueishAI. Local-first GGUF language models adapted from Qwen2.5 using LoRA.
- Downloads last month
- -
4-bit
8-bit