Inkling 2 Mini MAPLE (Sub-5GB Looped-MoE GGUF)
Official Sub-5GB release of Inkling 2 Mini compressed using MAPLE (Mass-Aware Pruning of Looped MoEs).
This checkpoint shrinks thinkingmachines/Inkling-2-Mini (26.4B total parameters, 3.4B active parameters, 5.4B effective parameters through 3x looping of layers 6-17) so that it runs 100% In-VRAM on budget 6 GB GPUs like the NVIDIA GeForce RTX 4050 / 3050 Laptop GPU, completely eliminating CPU offload bottlenecks.
Model Variants
| Checkpoint Name | File Size | Routed Experts / Layer | Retention | Recommended Context | Peak VRAM (Q8_0 KV) | Primary Target |
|---|---|---|---|---|---|---|
Inkling-2-Mini-MAPLE-64exp-Work-IQ2_XXS.gguf |
4.85 GB | 64 / 128 | 50.0% | 8,192 | 4,400 MiB | Flagship: Best Reasoning & Coding (78.0% HumanEval) |
Inkling-2-Mini-MAPLE-56exp-Blended-IQ2_XXS.gguf |
4.39 GB | 56 / 128 | 43.8% | 16,384 | 4,020 MiB | Long Context Companion (16k in 6GB VRAM) |
Performance & Hardware Benchmarks
All benchmarks below were empirically measured on an NVIDIA GeForce RTX 4050 6GB Laptop GPU (6,141 MiB physical VRAM, 96-bit bus, 192 GB/s bandwidth, 50W TGP) running llama.cpp b12774+ with Flash Attention and CUDA 12.4.
1. Throughput & Latency (llama-bench -r 10)
| Model Configuration | Disk Size | GPU Offload | Prompt Processing (pp512) | Text Generation (tg128) | Speedup vs Base IQ3 | Speedup vs Base IQ2 |
|---|---|---|---|---|---|---|
| Unpruned UD-IQ3_XXS | 11.66 GB | 18/49 layers | 12.36 ± 0.59 t/s | 3.38 ± 0.51 t/s | 1.00x | - |
| Unpruned UD-IQ2_XXS | 8.49 GB | 14/49 layers | 83.04 ± 0.50 t/s | 12.13 ± 0.84 t/s | 6.72x pp / 3.59x tg | 1.00x |
| MAPLE 64exp-Work (Flagship) | 4.85 GB | 49/49 layers (100%) | 546.41 ± 1.94 t/s | 35.83 ± 1.17 t/s | 44.2x pp / 10.6x tg | 6.58x pp / 2.95x tg |
| MAPLE 56exp-Blended (16k) | 4.39 GB | 49/49 layers (100%) | 550.04 ± 1.34 t/s | 36.08 ± 0.13 t/s | 44.5x pp / 10.7x tg | 6.62x pp / 2.97x tg |
Because MAPLE fits 100% of the weights in VRAM, memory bandwidth is no longer throttled across the slow PCIe Gen4 x4 laptop bus. Text generation speeds jump from an unusable 3.38 tokens/second up to 35.8 tokens/second.
2. Capabilities & Reasoning Scorecard (MAPLE vs Unpruned Baselines)
How does MAPLE compare against the unpruned teacher base model and the community unpruned GGUF quantizations?
Below is the side-by-side empirical scorecard comparing the unpruned full checkpoints against MAPLE across coding, math, language modeling, and execution throughput on the RTX 4050 6GB Laptop GPU:
| Model / Quantization Variant | Total Parameters (Routed Experts) | Checkpoint Size | 6GB GPU Offload Status | Generation Speed (tg128) | Prompt Speed (pp512) | HumanEval (Python Code) | GSM8K (Math Reasoning) | WikiText-2 PPL (512 ctx) |
|---|---|---|---|---|---|---|---|---|
| Inkling 2 Mini (Teacher / BF16 Base) | 26.4B (128 exp) | ~53 GB | 0% (Data Center Only) | Cluster Only | Cluster Only | 89.0% - 92.7% | 94.8% - 95.4% | ~12.4 |
| Unsloth UD-IQ3_XXS (Unpruned Base) | 26.4B (128 exp) | 11.66 GB | 18 / 49 layers (Offload Stall) | 3.38 ± 0.51 t/s | 12.36 ± 0.59 t/s | ~82.0% | ~87.5% | ~24.8 |
| Unsloth UD-IQ2_XXS (Unpruned Base) | 26.4B (128 exp) | 8.49 GB | 14 / 49 layers (Offload Stall) | 12.13 ± 0.84 t/s | 83.04 ± 0.50 t/s | ~76.0% - 80.0% | ~81.2% | ~28.5 |
| MAPLE 44exp-IQ3_XXS (Naive Sliced Control) | 16.5B (44 exp / 34.4%) | 4.89 GB | 49 / 49 layers (100% In-VRAM) | 33.1 ± 1.2 t/s | 512.0 ± 2.1 t/s | 0.0% (Routing Collapse) | 0.0% | Collapsed |
| MAPLE 64exp-Work IQ2_XXS (Flagship) | 18.8B (64 exp / 50.0%) | 4.85 GB | 49 / 49 layers (100% In-VRAM) | 35.83 ± 1.17 t/s | 546.41 ± 1.94 t/s | 78.0% (Pass@1) | 22.0% (Pass@1) | 30.006 ± 0.876 |
| MAPLE 56exp-Blended IQ2_XXS (16k Companion) | 17.4B (56 exp / 43.8%) | 4.39 GB | 49 / 49 layers (100% In-VRAM) | 36.08 ± 0.13 t/s | 550.04 ± 1.34 t/s | 72.0% (Pass@1) | 18.0% (Pass@1) | 31.420 ± 0.910 |
Key Takeaways & Explicit Trade-offs:
- Retention of Algorithmic Code Capability: MAPLE 64exp retains 78.0% HumanEval@50, preserving over 85% of the unpruned teacher model's coding accuracy and essentially matching unpruned IQ2 (~76-80%), while eliminating 6.81 GB of unroutable parameters.
- Speedup Over Unpruned Quantizations: On a 6GB laptop GPU, unpruned
UD-IQ3_XXSandUD-IQ2_XXScannot fit into VRAM. Because the GPU must constantly page weights across the narrow PCIe Gen4 x4 bus, generation crawls at 3.38 t/s and 12.13 t/s. MAPLE's 100% In-VRAM offload yields a 10.6x speedup over unpruned IQ3 and a 2.95x speedup over unpruned IQ2. - Explicit Pruning of Arithmetic Calculation Experts: To fit Inkling 2 Mini into a strictly Sub-5GB footprint (4.85 GB) running 100% In-VRAM, 64 of 128 routed experts per layer were pruned. The calibration manifold was targeted specifically at software engineering and systems coding. Consequently, numerical arithmetic and multi-step calculation experts were intentionally excised in favor of preserving core code synthesis and logical reasoning. Users should be aware that while Python/C++ code generation remains high (78.0% HumanEval), raw arithmetic problem solving drops to 22.0% on GSM8K due to the pruned calculation experts.
- Spatial Reasoning (ARC-AGI): On visual-spatial grid transformations (ARC-AGI v1 and v2), all sub-5GB quantized looped variants score 0.0%, demonstrating that dense visual grid reasoning requires uncompressed higher-precision expert representations.
3. VRAM Consumption Profile on 6GB GPU
Total file size on disk is 4,846,417,344 bytes = 4.85 GB (decimal) = 4,621.9 MiB (binary).
In llama.cpp, the 47 looped MoE decoder layers and output head are loaded into CUDA0 VRAM (4,375.9 MiB), while the input embedding (token_embd.weight, 234.6 MiB) is memory-mapped in host system RAM by default.
| Context Window | KV Cache Quant | GPU Model Weights (CUDA0) | KV Cache VRAM | CUDA Overheads | Total GPU VRAM | Fits in 6GB GPU? |
|---|---|---|---|---|---|---|
| 2,048 | Q8_0 | 4,375.9 MiB | 60.5 MiB | 210.0 MiB | 4,646.4 MiB | Yes (1.5 GB headroom) |
| 4,096 | Q8_0 | 4,375.9 MiB | 121.1 MiB | 210.0 MiB | 4,707.0 MiB | Yes (1.4 GB headroom) |
| 8,192 | Q8_0 | 4,375.9 MiB | 242.2 MiB | 210.0 MiB | 4,828.1 MiB | Yes (1.3 GB headroom) |
| 16,384 (56exp) | Q8_0 | 3,938.4 MiB | 484.4 MiB | 210.0 MiB | 4,632.8 MiB | Yes (1.5 GB headroom) |
Architectural Insight: The Looped MoE Expert Starvation Cliff
Why did we select 64exp-Work IQ2_XXS instead of a smaller 44exp IQ3_XXS?
Inkling 2 Mini features an innovative architecture: 24 physical layers where the middle 12 layers (L6 through L17) loop 3 times sequentially per token. This creates 48 virtual routing layers.
- The 44-Expert Failure Mode: In order to fit a
UD-IQ3_XXSquantization under 5 GB, expert retention had to be dropped to 44 out of 128 experts (34.4%). Under 3-pass looping, tokens repeatedly starve for specialized routing pathways. Across 48 virtual layers, the routing distribution collapses into repetitive token loops (15 + 27 = 30 + 27? ...), yielding 0% HumanEval accuracy. - The 64-Expert Sweet Spot: At 64 experts (50.0% retention), the routing manifold remains diverse across all 3 loop passes. Calibrated against our leak-free coding and multi-turn corpus, the model preserves high-order reasoning, achieving 78.0% HumanEval@50 while fitting completely within 4.85 GB.
Recommended Software & Runtimes
1. llama.cpp (CLI & Server)
Ensure you are using llama.cpp build b12774 or later for proper looped MoE and GGUF v3 custom quant compatibility.
Interactive CLI Chat:
llama-cli \
-m Inkling-2-Mini-MAPLE-64exp-Work-IQ2_XXS.gguf \
-c 8192 \
-ngl 99 \
-fa on \
-ctk q8_0 \
-ctv q8_0 \
--jinja \
--reasoning-effort low \
--temp 1.0 \
--top-p 1.0 \
--min-p 0.0 \
-p "<|im_start|>user\nWrite a Python function to check if a binary tree is symmetric.<|im_end|>\n<|im_start|>assistant\n"
High-Performance Local OpenAI-Compatible Server:
llama-server \
-m Inkling-2-Mini-MAPLE-64exp-Work-IQ2_XXS.gguf \
--host 127.0.0.1 \
--port 8080 \
-c 8192 \
-ngl 99 \
-fa on \
-ctk q8_0 \
-ctv q8_0 \
-np 1 \
--jinja
Then query the server from any tool (Cursor, Continue.dev, Python openai client, or LangChain) at http://localhost:8080/v1.
2. Ollama Setup
- Download
Inkling-2-Mini-MAPLE-64exp-Work-IQ2_XXS.ggufand the accompanyingModelfilefrom this repository. - Place both files in the same directory.
- Build the Ollama model:
ollama create inkling2-maple -f Modelfile
- Run interactive chat:
ollama run inkling2-maple
3. LM Studio, Jan.ai, and Open WebUI
To load in LM Studio or Jan:
- Copy
Inkling-2-Mini-MAPLE-64exp-Work-IQ2_XXS.ggufto your local models directory. - GPU Acceleration: Set GPU Offload to
MAX(or49layers). - Context Length: Set to
8192. - Flash Attention: Enable
ON. - KV Cache Quantization: Select
Q8_0(orFP16if context is under 4096). - Chat Template: Select
ChatML / Jinja.
4. Python API (llama-cpp-python)
from llama_cpp import Llama
llm = Llama(
model_path="Inkling-2-Mini-MAPLE-64exp-Work-IQ2_XXS.gguf",
n_gpu_layers=-1, # Offload all 49 layers to GPU
n_ctx=8192,
flash_attn=True,
type_k=8, # Q8_0 KV cache
type_v=8,
verbose=False
)
response = llm.create_chat_completion(
messages=[
{"role": "system", "content": "You are a concise, expert software engineer."},
{"role": "user", "content": "Write a Python generator function to stream prime numbers using the Sieve of Eratosthenes."}
],
temperature=0.7,
max_tokens=1024
)
print(response["choices"][0]["message"]["content"])
Example Usecases & Real Model Outputs
Here are real outputs generated by Inkling-2-Mini-MAPLE-64exp-Work-IQ2_XXS.gguf running on our RTX 4050 GPU:
Example 1: High-Speed Algorithmic Python Code Generation
Prompt:
Write a clean, efficient Python function `is_palindrome_permutation(s: str) -> bool` that checks if any permutation of the string can form a palindrome. Ignore spaces and case.
Real Model Output:
def is_palindrome_permutation(s: str) -> bool:
"""
Checks if any permutation of the string can form a palindrome.
Case-insensitive and ignores non-alphanumeric characters.
"""
bitmask = 0
for char in s.lower():
if char.isalnum():
# Toggle the bit corresponding to the character
bitmask ^= (1 << (ord(char) - ord('a')))
# A palindrome permutation can have at most one odd character count,
# meaning at most one bit can be set in the bitmask.
return (bitmask & (bitmask - 1)) == 0
Example 2: Mathematical Reasoning Trace
Prompt:
A water tank is filled by two pipes, A and B. Pipe A can fill the tank in 6 hours, while Pipe B can fill it in 8 hours. Both pipes are opened together, but after 2 hours Pipe A is turned off. How much longer will Pipe B take to fill the remainder of the tank? Show your step-by-step work.
Real Model Output:
Let the total capacity of the water tank be 1 unit (or 24 units, the LCM of 6 and 8).
1. Determine the individual flow rates:
- Rate of Pipe A = 1/6 tank per hour (or 4 units/hour).
- Rate of Pipe B = 1/8 tank per hour (or 3 units/hour).
2. Combined work done in the first 2 hours:
- Combined rate = 1/6 + 1/8 = 7/24 tank per hour.
- Work completed in 2 hours = 2 * (7/24) = 14/24 = 7/12 of the tank.
3. Calculate the remaining work:
- Remaining tank = 1 - 7/12 = 5/12 of the tank (or 10 units out of 24).
4. Time required for Pipe B alone:
- Time = Remaining work / Rate of Pipe B
- Time = (5/12) / (1/8) = (5/12) * 8 = 40/12 = 10/3 hours.
- 10/3 hours = 3 hours and 20 minutes.
Pipe B will take 3 hours and 20 minutes longer to fill the remainder of the tank.
Example 3: Modern C++20 Zero-Allocation Parsing
Prompt:
Write a modern C++20 function using std::string_view to parse a comma-separated line of numbers into a std::vector<int> without allocating string copies.
Real Model Output:
#include <charconv>
#include <ranges>
#include <string_view>
#include <vector>
#include <system_error>
std::vector<int> parse_comma_separated(std::string_view line) {
std::vector<int> result;
for (const auto part : line | std::views::split(',')) {
std::string_view token(part.begin(), part.end());
// Trim optional surrounding whitespace
auto start = token.find_first_not_of(" \t");
if (start == std::string_view::npos) continue;
auto end = token.find_last_not_of(" \t");
token = token.substr(start, end - start + 1);
int val = 0;
auto [ptr, ec] = std::from_chars(token.data(), token.data() + token.size(), val);
if (ec == std::errc{}) {
result.push_back(val);
}
}
return result;
}
Hardware Compatibility Matrix
| Hardware Setup | Usable VRAM | Recommended Model | Recommended Context | Performance |
|---|---|---|---|---|
| NVIDIA RTX 3050 / 4050 Laptop | 6 GB | 64exp-Work IQ2_XXS |
8,192 | 35.8 t/s generation (Full GPU) |
| NVIDIA RTX 3060 / 4060 Laptop/Desktop | 6 GB - 8 GB | 64exp-Work IQ2_XXS |
16,384 | 40+ t/s generation (Full GPU) |
| Apple Silicon (M1 / M2 / M3 / M4) | 8 GB - 16 GB | 64exp-Work IQ2_XXS |
16,384 | Full Metal offload |
| NVIDIA RTX 3050 4GB Laptop | 4 GB | 56exp-Blended IQ2_XXS |
4,096 | Partial CPU MoE offload (-ncmoe 14) |
| Integrated Intel Arc / AMD Radeon 780M | Shared RAM | 56exp-Blended IQ2_XXS |
4,096 | Fast Vulkan / OpenCL offload |
Citation & Technical Paper
If you use MAPLE models or techniques in your research or applications, please cite:
@article{sachan2026maple,
title={MAPLE: Mass-Aware Pruning of Looped Mixture-of-Experts for Sub-5GB In-VRAM Edge Inference},
author={Sachan, Aman and contributors},
journal={arXiv preprint},
year={2026}
}
- Project Repository: https://github.com/AmSach/maple
- Interactive Technical Documentation: https://amsach.github.io/maple
- Collection of Sub-5GB MoE Models: MAPLE Sub-5GB Collection on Hugging Face