Welcome Inkling 2 Mini, Cutting-edge Performance for your Local Setup
本文为原文前 6,000 字符的节选翻译,完整内容请查看原文。
Welcome Inkling 2 Mini, Cutting-edge Performance for your Local Setup
Back to Articles Welcome Inkling 2 Mini, Cutting-edge Performance for your Local Setup Published November 20, 2026 Update on GitHub Upvote 23 +17 merve merve Follow Pedro Cuenca pcuenq Follow Aritra Roy Gosthipaty ariG23498 Follow Guarin Flück guarin Follow TLDR; Inkling 2 Mini is a new looped transformer model. It’s a multimodal Mixture-of-Experts with ~26B physical total and 3B active parameters per token. It uses a neat trick to increase capacity: some layers are visited in a loop that repeats three times, which makes it work like it had more parameters. It supports a 1M-token context size, accepts images and text inputs. Thinking Machines Lab ships the model in a mixed-precision format, with NVFP4 and MXFP8 expert weights. A DSpark drafter is also included for additional speed-up at a small memory cost. Inkling 2 Mini is much, much smaller than Inkling 2 Small, and is designed for local AI setups. We think this is a refreshingly new great local model. In our vibe tests, it’s at least comparable with Qwen 3.8 27B. More validation is needed, but we are super excited about this release! We ship transformers, Llama App (llama.cpp), and MLX support. SGLang also provides day-zero inference support for production deployments on datacenter hardware. This post goes through what makes Inkling Mini different, some of our vibe tests, and how you can use it with your setup.
欢迎使用 Inkling 2 Mini,为您的本地设置提供尖端性能。文章发布于 2026 年 11 月 20 日。TLDR;Inkling 2 Mini 是一款全新的循环 Transformer 模型。它是一个多模态混合专家模型(MoE),每个 token 拥有约 26B 的物理总参数和 3B 的活跃参数。它使用了一种巧妙的技巧来增加容量:某些层在循环中被访问三次,使其运行效果如同拥有更多参数一样。它支持 1M token 的上下文长度,并接受图像和文本输入。Thinking Machines Lab 以混合精度格式发布该模型,包含 NVFP4 和 MXFP8 专家权重。此外还包含一个 DSpark 草稿器,以较小的内存成本实现额外的速度提升。Inkling 2 Mini 比 Inkling 2 Small 小得多,专为本地 AI 设置而设计。我们认为这是一个令人耳目一新的优秀本地模型。在我们的主观测试中,它至少可以与 Qwen 3.8 27B 相媲美。虽然还需要更多验证,但我们对这次发布感到非常兴奋!我们提供 transformers、Llama App (llama.cpp) 和 MLX 支持。SGLang 也为数据中心硬件的生产部署提供了首日推理支持。本文将介绍 Inkling Mini 的独特之处、我们的一些测试结果,以及您如何将其用于自己的设置。
What is new with Inkling 2 Mini? Inkling 2 Mini is a mixture-of-experts model with 24 decoder layers, but the 12 middle layers run three times in a loop. Therefore, the model acts as if it had 48 (6+ 3*12 + 6) logical layers with just 24 physical ones. Similar to Inkling 2 Small, Inkling 2 Mini executes 48 layer visits per token. The hidden size is 2,304 instead of 4,608. At each layer visit, both variants route the token to 8 experts, but Mini selects them from among 128 experts per layer, while Small selects from 384. The decoder runs layers 0–5 once, layers 6–17 three times, and layers 18–23 once. All three passes through layers 6–17 reuse the same weights. Architectures such as Nanbeige have explored looping before. But Inkling 2 Mini explores an interesting approach. Every pass through the looped core (layers 6–17) starts from the same inputs which is the output of the first six layers. Information moves between passes through cross-pass messages. Each looped layer reads a message from the previous pass’s outputs with its own learned query (one message for its query, key, value and MLP inputs). A small gating controller then looks at both the layer’s current input and the message. It decides how much of the current input to forget and how much of the message to add. Each pass therefore refines what the previous one computed.
Inkling 2 Mini 有什么新功能?Inkling 2 Mini 是一个拥有 24 个解码器层的混合专家模型,但中间的 12 层会循环运行三次。因此,该模型在仅有 24 个物理层的情况下,表现得如同拥有 48 个(6 + 3*12 + 6)逻辑层。与 Inkling 2 Small 类似,Inkling 2 Mini 每个 token 执行 48 次层访问。其隐藏层大小为 2,304 而非 4,608。在每次层访问时,两个版本都会将 token 路由到 8 个专家,但 Mini 是从每层 128 个专家中选择,而 Small 是从 384 个中选择。解码器运行第 0-5 层一次,第 6-17 层三次,第 18-23 层一次。所有三次通过第 6-17 层的过程都重用了相同的权重。Nanbeige 等架构之前已经探索过循环机制,但 Inkling 2 Mini 探索了一种有趣的方法。每次通过循环核心(第 6-17 层)时,都从相同输入开始,即前六层的输出。信息通过跨通道消息在各次通过之间传递。每个循环层通过其自身学习到的查询从前一次通过的输出中读取一条消息(一条用于其查询、键、值和 MLP 输入的消息)。一个小型的门控控制器随后会查看该层的当前输入和消息,决定忘记多少当前输入并添加多少消息。因此,每一次通过都会优化前一次的计算结果。
Each six-layer block has five sliding-window layers and one full-attention layer. The local window holds up to 1,024 tokens. Attention uses 24 query heads and eight KV heads. It uses learned relative position logits, a learned sink, and an output gate. Full-attention layers use dynamic key and value convolutions. The router selects eight of 128 SwiGLU experts for each token. It normalizes the selected scores and scales the weights by 8. During passes 2 and 3, each core layer attends over two residual blocks from the previous pass. Four rank-64 gates mix separate messages into the query, key, value, and MoE inputs. Text decoder width is 2,304, and the intermediate width of each expert is 1,152. Reusing core weights reduces the number of distinct layers the checkpoint stores. The model still executes all 48 visits, and each visit keeps its own KV and short-convolution state. In addition to the flagship Inkling 2 Mini model, a research artifact has also been released. It shares the same architecture, but this variant was trained to accept a variable number of passes through the loop 🤯. Setting 1 or 2 passes instead of 3 will make inference run a lot faster, but generations may be of slightly lower quality. We tested this variant, and it works, but we haven’t evaluated it in depth.
每个六层模块包含五个滑动窗口层和一个全注意力层。本地窗口最多可容纳 1,024 个 token。注意力机制使用 24 个查询头和 8 个 KV 头。它使用学习到的相对位置 Logits、一个学习到的 Sink 以及一个输出门。全注意力层使用动态键和值卷积。路由器为每个 token 从 128 个 SwiGLU 专家中选择 8 个。它会对选定的分数进行归一化,并将权重缩放 8 倍。在第 2 次和第 3 次通过期间,每个核心层都会关注前一次通过的两个残差块。四个秩为 64 的门将独立消息混合到查询、键、值和 MoE 输入中。文本解码器宽度为 2,304,每个专家的中间宽度为 1,152。重用核心权重减少了检查点存储的不同层数。该模型仍然执行所有 48 次访问,并且每次访问都保留其自己的 KV 和短卷积状态。除了旗舰版 Inkling 2 Mini 模型外,还发布了一个研究工件。它共享相同的架构,但该变体经过训练,可以接受可变次数的循环通过 🤯。将通过次数设置为 1 或 2 而非 3 会使推理速度快得多,但生成质量可能会略有下降。我们测试了这个变体,它确实有效,但我们尚未对其进行深入评估。
Benchmark Results Inkling 2 Mini is state-of-the-art in its class in the Artificial Analysis Intelligence Index v5 (AAv5), as well as across many benchmarks in various categories. Compared with Gemma 4 31B, Muse Glimmer, Qwen3.8-27B, and Nemotron 3.5 Super VL, Inkling 2 Mini leads in 32 benchmarks out of 48. These cover coding and autoresearch, agentic search and tool use for knowledge work, vision interpretation and creation, reasoning and knowledge, and safety and alignment. See the Inkling 2 Mini model card for the full list of benchmarks and scores. Inkling 2 Mini is a great local coding companion. It leads in FrontierCode v2.0, ties with Qwen3.8-27B on Terminal-Bench 4.0, and trails Qwen on AutomationBench-AA v1.0.6. You can check out a few of our highlights below for coding and knowledge work. Note that AA Briefcase is in ELO rating, higher is better.
基准测试结果:Inkling 2 Mini 在 Artificial Analysis Intelligence Index v5 (AAv5) 以及各类别的许多基准测试中均处于同类领先水平。与 Gemma 4 31B、Muse Glimmer、Qwen3.8-27B 和 Nemotron 3.5 Super VL 相比,Inkling 2 Mini 在 48 个基准测试中的 32 个中处于领先地位。这些测试涵盖了编码和自动研究、知识工作的代理搜索和工具使用、视觉解释和创作、推理和知识,以及安全与对齐。有关基准测试和分数的完整列表,请参阅 Inkling 2 Mini 模型卡。Inkling 2 Mini 是一个出色的本地编码助手。它在 FrontierCode v2.0 中领先,在 Terminal-Bench 4.0 上与 Qwen3.8-27B 持平,在 AutomationBench-AA v1.0.6 上略逊于 Qwen。您可以在下方查看我们在编码和知识工作方面的一些亮点。请注意,AA Briefcase 采用 ELO 评分,分数越高越好。
Inference Support In this section, you can find how to use Inkling 2 Mini in transformers, llama.cpp, MLX, and SGLang. Transformers We provide support for both Inkling 2 Mini (fixed loop) and the TML-d24-varloop-research (variable loop) research variant. Fixed loop with Inkling 2 Mini You can use the AutoModelForMultimodalLM class. import torch from transformers import AutoModelForMultimodalLM, AutoProcessor model_id = “thinkingmachines/Inkling-2-Mini” processor = AutoProcessor.from_pretrained(model_id) model = AutoModelForMultimodalLM.from_pretrained( model_id, ) messages = [{“role”: “user”, “content”: [{“type”: “text”, “text”: “Why is the sky blue?”}]}] inputs = processor.apply_chat_template( messages, tokenize=True, add_generation_prompt=True, return_dict=True, return_tensors=“pt”, ).to(model.device) input_len = inputs[“input_ids”].shape[-1] outputs = model.generate(**inputs, max_new_tokens=1024) print(processor.decode(outputs[0][input_len:], skip_special_tokens=False)) Variable loop To set the number of loops in the research checkpoint, you can modify the loop_num_passes
推理支持:在本节中,您可以找到如何在 transformers、llama.cpp、MLX 和 SGLang 中使用 Inkling 2 Mini。Transformers:我们为 Inkling 2 Mini(固定循环)和 TML-d24-varloop-research(可变循环)研究变体提供支持。使用 Inkling 2 Mini 进行固定循环:您可以使用 AutoModelForMultimodalLM 类。代码示例:[此处省略代码]。可变循环:要设置研究检查点中的循环次数,您可以修改 loop_num_passes。