Inkling-2-Mini-AgentCN
adapter for improved agenting and reasoning
2 min readupdated
A new LoRA adapter (a small add-on over the base model) of just 33 MB for the flagship looped MoE model Inkling-2-Mini from Thinking Machines Lab. Built on 26.4B parameters (3.4B active), the model is initially strong in speed, but in practice often slips into English and fails during tool calls in agent environments. The new AgentCN version activates reasoning chains and reliable tool calling without affecting the quantized NVFP4 and MXFP8 expert weights of the base model. It will be useful for developers of multi-agent systems and coding assistants.
Key features
- Micro size: weighs only 33 MB, updating only 120 BF16 attention linear projections.
- Improved Chinese: raises the CJK share in reasoning chains by 21% in benchmarks.
- Weight integrity: 100% of quantized expert weights remain untouched (0 bytes of changes).
- Compatibility: maintains the high speed of DFlash2 speculative decoding on hardware like NVIDIA DGX Spark.
What you can do
- Run in agent tasks: use in environments like Pi for stable multi-agent coding and tool calling.
- Apply graft script: inject LoRA directly into a local quantized shard via the built-in utility without VRAM loss.
- Run via PEFT: connect in the standard way in Hugging Face transformers to solve logical and algorithmic tasks.
Example
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_model_id = "thinkingmachines/Inkling-2-Mini"
lora_model_id = "alexdominiqu/Inkling-2-Mini-AgentCN-LoRA"
tokenizer = AutoTokenizer.from_pretrained(base_model_id)
base_model = AutoModelForCausalLM.from_pretrained(
base_model_id,
torch_dtype=torch.bfloat16,
device_map="auto",
trust_remote_code=True,
)
model = PeftModel.from_pretrained(base_model, lora_model_id)
model.eval()Read more
Details• Base model: thinkingmachines/Inkling-2-Mini (26.4B parameters, 3.4B active)
• Architecture: Attention-Only LoRA (r=16, alpha=16)
• Training dataset: 1,596 dialogues (agent traces and general reasoning)
• License: Apache 2.0










Comments