mlsanityData to 7 Oct 2026

Nanbeige4.2-3B on Apple Silicon: Fixing Deployment Bugs and Decreasing Looped Transformer Memory Overhead

arXiv 2608.13987 ↗First posted 14 Aug 2026cs.AI cs.LGcited by 0

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

Nanbeige4.2-3B is a 3B-parameter agentic model built around a Looped Transformer (LT) that reuses one stack of layers for a second forward pass, adding effective depth without additional parameters. Evaluated on Apple Silicon (MPS), we identify five independent bugs which prevent the released checkpoint from running via Hugging Face transformers out of the box (including a silently-zeroed RoPE buffer and calls to removed transformers cache APIs). Furthermore, we show that fixing these bugs is still not sufficient for agentic tasks, due to the LT's layer-reuse strategy (which effectively doubles peak attention memory) used to achieve parameter efficiency. We thus introduce a chunked-prefill strategy which alleviates the incurred memory-capacity penalty, extending allowable context width by 2.7 × on 32~GiB shared memory. However, even with the reduced memory overhead, we show that patches are required to render Nanbeige4.2-3B usable; resolving both system prompt and MPS-native memory bugs finally allows reliable evaluation on standard MCP and tool-calling benchmarks. On a subset of MCPMark, the debugged model completes up to 30% of real agentic tasks (up from the original's 0%), while, on BFCL, it is near-perfect at single tool calls (yet fails the majority of multi-tool tests). We release the patched checkpoint, system prompt optimizer, and evaluation harnesses at https://github.com/johnhalloran321/Nanbeige4.2-3B-mps-fix.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 4 of its 8 references that are in the map. First posted on arXiv 14 Aug 2026.

Builds on

4 of 8 references.

References · 4

  1. 2025Mixture-of-Recursions: Learning Dynamic Recursive Depths for Adaptive Token-Level Computationcited by 120
  2. 2025MCPMark: A Benchmark for Stress-Testing Realistic and Comprehensive MCP Usecited by 37
  3. 2026LongBench Pro: A More Realistic and Comprehensive Bilingual Long-Context Evaluation Benchmarkcited by 17
  4. 2026Nanbeige4.2-3B: Unlocking Agentic Capabilities in a Compact Modelcited by 9

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025EdgeFlex-Transformer: Transformer Inference for Edge Devices
  2. 2026SiliconBench: Speed, Memory, and Fidelity for LLM Serving on Unified-Memory Desktops
  3. 2026Exploring a Layer-Wise Design Space for KV Cache Eviction
  4. 2024Challenges in Deploying Long-Context Transformers: A Theoretical Peak Performance Analysis
  5. 2026CacheFlow: Efficient LLM Serving with 3D-Parallel KV Cache Restoration
  6. 2026The Surprising Effectiveness of Shared Memory in Looped Transformers
  7. 2026Long-Context Aware Upcycling: A New Frontier for Hybrid LLM Scaling
  8. 2026How Weight Encoding Affects Language Model Placement and Performance on the Apple Neural Engine