Text Generation
GGUF
English
1-bit
q1_0
reasoning
code
math
long-context
qwen35
maba-studios
conversational
Instructions to use MABA-Studios-AI/Affan-AI-Engine-3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use MABA-Studios-AI/Affan-AI-Engine-3 with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf MABA-Studios-AI/Affan-AI-Engine-3 # Run inference directly in the terminal: llama cli -hf MABA-Studios-AI/Affan-AI-Engine-3
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf MABA-Studios-AI/Affan-AI-Engine-3 # Run inference directly in the terminal: llama cli -hf MABA-Studios-AI/Affan-AI-Engine-3
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf MABA-Studios-AI/Affan-AI-Engine-3 # Run inference directly in the terminal: ./build/bin/llama cli -hf MABA-Studios-AI/Affan-AI-Engine-3
Use Docker
docker model run hf.co/MABA-Studios-AI/Affan-AI-Engine-3
- Llama new
- LM Studio
- Jan
- vLLM
How to use MABA-Studios-AI/Affan-AI-Engine-3 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MABA-Studios-AI/Affan-AI-Engine-3" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MABA-Studios-AI/Affan-AI-Engine-3", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/MABA-Studios-AI/Affan-AI-Engine-3
- Ollama
How to use MABA-Studios-AI/Affan-AI-Engine-3 with Ollama:
ollama run hf.co/MABA-Studios-AI/Affan-AI-Engine-3
- Unsloth Desktop
- Docker Model Runner
How to use MABA-Studios-AI/Affan-AI-Engine-3 with Docker Model Runner:
docker model run hf.co/MABA-Studios-AI/Affan-AI-Engine-3
- Lemonade
How to use MABA-Studios-AI/Affan-AI-Engine-3 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull MABA-Studios-AI/Affan-AI-Engine-3
Run and chat with the model
lemonade run user.Affan-AI-Engine-3-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
File size: 4,079 Bytes
2197725 c9076d5 2197725 c9076d5 2197725 c9076d5 2197725 c9076d5 2197725 c9076d5 2197725 c9076d5 2197725 c9076d5 2197725 c9076d5 2197725 c9076d5 2197725 c9076d5 2197725 c9076d5 2197725 c9076d5 2197725 c9076d5 2197725 c9076d5 2197725 c9076d5 2197725 c9076d5 2197725 c9076d5 2197725 c9076d5 2197725 c9076d5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | ---
license: apache-2.0
library_name: gguf
pipeline_tag: text-generation
language:
- en
tags:
- gguf
- 1-bit
- q1_0
- reasoning
- code
- math
- long-context
- qwen35
- maba-studios
---
# Affan AI Engine 3
**Our flagship: a 27-billion-parameter reasoning model compressed to about 3.3 GB.**
Affan AI Engine 3 is the most capable model in the Affan AI Engine family. It is a 27B-parameter model compressed to **1-bit (`Q1_0`)**, bringing a large reasoning and coding model within reach of consumer hardware that could never load it at normal precision.
It thinks before it answers, working through mathematics, reasoning and full-stack programming problems inside `<think>` tags, then replies with clear explanations and fenced code. With a **262,144-token context window**, it can read and reason over very long documents and large codebases.
This model represents everything MABA Studios stands for: making large AI fit on everyday devices. We're proud of it, and we hope you enjoy using it.
## Why you'll like it
- **27B capability, ~3.3 GB size:** a model of this scale on ordinary consumer hardware.
- **Reasoning built in:** visible chain of thought in `<think>` tags (LM Studio shows it in the reasoning box).
- **Excellent for code and maths:** full-stack programming, debugging, and step-by-step problem solving.
- **Huge context:** up to **262,144 tokens**, ready for long documents and big projects.
- **Efficient hybrid design:** combines full attention with state-space layers for strong long-context efficiency.
- **Runs locally:** private and offline, no cloud needed.
## Model details
| | |
|---|---|
| Developer | MABA Studios (Muhammad Affan Bin Adnan) |
| Model family | Affan AI Engine |
| Version | 3.0.0 |
| Parameters | 27B |
| Architecture | Qwen3.5-style hybrid decoder (64 layers, 5120 hidden size, 24 attention heads, 4 KV heads, SSM layers) |
| Quantization | 1-bit `Q1_0` (group size 128, FP8-aligned scales) |
| Context length | 262,144 tokens |
| Vocabulary | 65,536 tokens |
| Language | English |
| Format | GGUF, single file |
| License | Apache 2.0 |
## Best for
- Complex reasoning and multi-step problem solving
- Mathematics and logic
- Full-stack coding, code review and debugging
- Analysing long documents and large codebases
- Private, offline assistants on desktops and workstations
## Recommended settings
| Setting | Value |
|---|---|
| Temperature | 0.4 |
| Top-k | 40 |
| Top-p | 0.9 |
| Min-p | 0.05 |
| Repeat penalty | 1.0 |
Recommended runtime flags for long context with lower memory use: `-ctk q8_0 -ctv q4_0 -fa -c 32768`
## Files
| File | Size | Description |
|---|---|---|
| `Affan-AI-Engine-3-27B.gguf` | ~3.3 GB | 1-bit GGUF weights |
## Run it
**LM Studio** – search for `MABA-Studios-AI/Affan-AI-Engine-3`, download, and chat. Thinking appears in LM Studio's reasoning box.
**llama.cpp** – use a recent build with `Q1_0` support:
```bash
huggingface-cli download MABA-Studios-AI/Affan-AI-Engine-3 Affan-AI-Engine-3-27B.gguf --local-dir .
llama-cli -m Affan-AI-Engine-3-27B.gguf -cnv
```
> This model uses the 1-bit `Q1_0` format. Make sure your runtime (llama.cpp, LM Studio, etc.) is up to date, otherwise older versions may fail to load it.
## Limitations
- It is an extremely compressed (1-bit) model. Quality can differ from full-precision versions, and we have not published benchmark numbers, so test it on your own tasks.
- Like all language models it can produce incorrect or biased output. Verify anything important, especially code and calculations, before relying on it.
- Not intended for medical, legal or other high-stakes decisions without human review.
## License
Released under the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0).
## About MABA Studios
MABA Studios is an AI optimization and compression company. We make large AI models fit on low-end devices and everyday consumer hardware. Created by **Muhammad Affan Bin Adnan**. Explore the rest of the **Affan AI Engine** family on our [organization page](https://huggingface.co/MABA-Studios-AI).
|