# Thinking Machines Inkling 2 Small

> Source: <https://dev.to/vlad61758eng/thinking-machines-inkling-2-small-5e8c>
> Published: 2026-12-05 10:11:38+00:00

**Key takeaway:** Inkling 2 Small ships 4-bit and 8-bit GGUF/MLX weights with GQA and an 8k context, letting a Q4_K_M build run locally for JSON extraction and tool routing instead of a remote 70B model.

Most open-weight models force you to choose between local privacy and usable reasoning. Inkling 2 Small from Thinking Machines attempts to collapse that trade-off by shipping quantized decoder-only weights optimized for single-GPU and CPU inference.

**TL;DR:** Thinking Machines released Inkling 2 Small, an open-weight small language model. It runs on consumer hardware via llama.cpp or Hugging Face Transformers, supports constrained decoding for structured output, and is best suited for agentic tool-use workflows where latency and data privacy matter more than encyclopedic knowledge.

Shipping every agentic step to a remote 70B model adds two to four seconds of latency per tool call and exposes prompts, PII, and proprietary schemas to third-party inference endpoints. Teams end up paying per-token for tasks that are essentially classification or JSON extraction—work that does not require parametric knowledge of world history or Python libraries. The result is slow, expensive, and non-compliant pipelines that cannot run offline.

Inkling 2 Small is a dense, decoder-only transformer released in safetensors with quantized GGUF and MLX variants. It uses grouped-query attention (GQA) to reduce memory bandwidth during generation and an 8k token context window. The weights are optimized for 4-bit and 8-bit quantization, so a Q4_K_M GGUF file fits comfortably on a single consumer GPU or Apple Silicon with unified memory.

```
+----------------+       +----------------+       +----------------+
|   Raw Input    | ----> |   Tokenizer    | ----> |   Token IDs    |
+----------------+       +----------------+       +----------------+
                                                                   |
                                                                   v
+----------------+       +----------------+       +----------------+
|  Sampled Token | <---- |   LM Head      | <---- |  Transformer   |
|   (next word)  |       |  (vocab proj)  |       |  Blocks (GQA)  |
+----------------+       +----------------+       +----------------+
                                                                   |
                                                                   v
+----------------+       +----------------+       +----------------+
|  KV Cache      | <---- |  Positional    | ----> |  Embeddings    |
|  (paged blocks)|       |  Encodings     |       +----------------+
+----------------+       +----------------+
```

Component breakdown:

```
# 1. Install git-lfs and pull weights
git lfs install
git clone https://huggingface.co/thinkingmachines/Inkling-2-Small
cd Inkling-2-Small

# 2. Python environment
python -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install transformers accelerate sentencepiece auto-gptq
```

Run with Transformers:

``` python
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

model_id = "./Inkling-2-Small"

tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype=torch.float16,
    device_map="auto",
    trust_remote_code=True
)

prompt = """Route this request to the correct tool:
User: "Cancel my subscription"
Tools: [cancel_subscription, update_billing, contact_support]
Output format: {"tool": "...", "args": {}}
"""

inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(
    **inputs,
    max_new_tokens=128,
    do_sample=False,
    temperature=0.1,
    pad_token_id=tokenizer.eos_token_id
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
```

Run with llama.cpp (better for CPU/edge):

```
./llama-cli -m Inkling-2-Small.Q4_K_M.gguf \
  -p "You are a routing agent. Return only valid JSON." \
  -n 256 \
  -t 8 \
  --grammar-file tools.gbnf
```

**Three concrete wins:**

**Two honest limitations:**

🚀 **Join VibeNode AI on Telegram**

Daily open-source AI drops, Claude Code hooks, and ready-to-import n8n JSON workflows. Search `#Drop29` inside `https://t.me/vibenode_ai` for the latest model integrations and automation templates.

Have you replaced any remote API calls with a local 1–3B parameter model in your agent stack, and what was the actual latency win or trade-off?

**Need a fast fixed-price build (24–72h)?** I build turnkey landing pages, Telegram bots/Mini Apps, and Python scrapers — [test 8 live interactive demos here](https://vlad61758-eng.github.io/vibenode-demos/) or DM `@vlad256bak` on Telegram.
