[Feature]: Support for Thinking Machines Inkling 2 Mini (Looped MoE, 26B-A3B)

オープン
#1,110 コメント 4 件 リアクション 5 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
10/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
cpp, huggingface

調査の方向性

This asks FastFlowLM to add an entirely new multimodal looped-MoE architecture, so start by reading how an existing model is wired into the C++ inference path (model loading, layer execution, quantization handling) rather than from the issue body. Use the linked llama.cpp and transformers reference implementations for the layer-loop and hybrid attention semantics, and compare against the closest architecture already supported in the repo. Done means Inkling-2-Mini loads and generates correctly at 4-bit on the NPU, with the loop passes, cross-pass gates and 5:1 attention pattern matching the reference outputs.

索引モデルが issue の本文から書いたものです。

説明

Suggestion Description
Model Information
Why this model is a great fit for FastFlowLM
  • High efficiency for NPU inference: Only 3B active parameters per token (~26B total physical parameters), offering strong coding, reasoning, and agentic tool-use performance comparable to ~27B–31B dense models (e.g., Qwen3.8-27B / Gemma 4 31B) at a fraction of the per-token compute and memory bandwidth cost.
  • Compact weight footprint: Because the 12 core layers are reused across 3 loop passes, only 24 physical decoder layers need to be stored in memory (fitting comfortably in ~14–16 GB at 4-bit quantization).
  • Multimodal & long context: Supports text + image inputs and up to 1M context via hybrid sliding-window attention.
Architectural Summary
  • Type: Multimodal Looped Mixture-of-Experts (MoE)
  • Parameters: ~26B total / 3B active per token
  • Layer Loop Structure: 24 physical decoder layers executing as 48 logical layer visits per token:
    • Layers 0–5: 1 pass
    • Layers 6–17: 3 passes (reusing weights; passes 2 and 3 integrate cross-pass messages from two residual blocks of the previous pass via four rank-64 gates for Q, K, V, and MoE inputs)
    • Layers 18–23: 1 pass
  • Dimensions & MoE:
    • Hidden size: 2,304
    • MoE: 128 SwiGLU experts per layer, top-8 routing (normalized and scaled by 8), expert intermediate width 1,152
  • Attention:
    • Hybrid 5:1 pattern per 6-layer block: 5 sliding-window layers (window size 1,024) + 1 full-attention layer (with dynamic K/V convolutions)
    • GQA: 24 query heads, 8 KV heads, learned relative position logits, learned sink, and output gate
  • Chat Template & Features:
    • Supports reasoning_effort (none, minimal, low, medium, high, xhigh, max / float 0.0–0.99)
    • Native tool calling and vision inputs
  • Source Formats: Original weights in mixed NVFP4 + MXFP8; official llama.cpp GGUF quantizations (IQ4_NL, Q8_0) are available for reference.
Operating System

Ubuntu 26.04 (Linux) / Windows

GPU

AMD Ryzen AI 7 350 (XDNA 2 NPU / Radeon 860M)

ROCm Component

XRT / AIE (XDNA 2 NPU)

主要言語
C++
スター
2.1k
フォーク
184
平均マージ
12時間 22分
マージ済み PR(30日)
239

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ROCm/FastFlowLM のほかの issue

ROCm/FastFlowLM の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。