[Feature]: Support for Thinking Machines Inkling 2 Mini (Looped MoE, 26B-A3B)
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 10/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- cpp, huggingface
- Lĩnh vực
- ai-infra-agents, machine-learning
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Suggestion Description
Model Information
- Model:
thinkingmachines/Inkling-2-Mini(and optionally the variable-loop research variantthinkingmachines/TML-d24-varloop-research) - Release Blog: https://huggingface.co/blog/inkling2mini
- Reference Implementations: Upstreamed in
llama.cpp,transformers,mlx-lm, andsglang.
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
- Layers
- 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
- Hidden size:
- 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:
24query heads,8KV heads, learned relative position logits, learned sink, and output gate
- Hybrid 5:1 pattern per 6-layer block: 5 sliding-window layers (window size
- Chat Template & Features:
- Supports
reasoning_effort(none,minimal,low,medium,high,xhigh,max/ float0.0–0.99) - Native tool calling and vision inputs
- Supports
- Source Formats: Original weights in mixed
NVFP4+MXFP8; officialllama.cppGGUF 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)
- Ngôn ngữ chính
- C++
- Star
- 2.1k
- Fork
- 184
- Merge trung bình
- 12 giờ 22 phút
- Pull request đã merge (30 ngày)
- 239
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ROCm/FastFlowLM
-
Update Gemma tokenizer.json after Google's recent fixCó thể đã có người làm @four1er đã nhận 6 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
ROCm/FastFlowLM#1057 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
ROCm/FastFlowLM#757 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
No valid checkpoint to restore + Max length reached on multi-turn tool calls (Qwen3.6-MoE, NPU)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
ROCm/FastFlowLM#744 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Truncated tool call is emitted as a complete one (unterminated heredoc reaches the client)Có thể đã có người làm @Javinator9889 đã nhận 72 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
ROCm/FastFlowLM#741 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Download timeoutCó thể đã có người làm @stdevPavelmc đã nhận 200 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
ROCm/FastFlowLM#520 · 7 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của ROCm/FastFlowLM
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
riscv-software-src/riscv-isa-sim#2640 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
difficulty:easy func:gui prio:normal type:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
NatronGitHub/Natron#2118 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
-
mechanics UI
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
endless-sky/endless-sky#12949 ·
Maintainer thường phản hồi trong vòng 1 ngày