Quadric Gets Loopy: Inkling 2 Mini on the Chimera GPNPU in a Few Hours Quadric ported Thinking Machines Lab's Inkling 2 Mini, the lab's first looped transformer released Friday, November 20, to an FPGA prototype of its Chimera GPNPU in about three hours on Monday, November 23, with every generated token matching its simulator. The 26.4-billion-parameter mixture-of-experts model, of which about 3.4 billion parameters are active per token, runs at 128 ms per token on a simulated 6 TOPS (int8) Chimera Perform core at 1.5 GHz (192.4 M cycles per decoded token) and 1.2 s per token on the 85 MHz HAPS-200 prototype. Quadric said the model's 24 layers with the middle twelve run three times, short convolutions inside attention, a dynamic expert router and the loop itself were all new to its stack, and that the port used the porting skills Quadric ships through its Developer Studio MCP server. Back to Blog https://quadric.ai/blog Quadric Gets Loopy: Inkling 2 Mini on the Chimera GPNPU in a Few Hours Thinking Machines released Inkling 2 Mini, its first looped transformer, on a Friday. The following Monday we ported and optimized it in about three hours, from the first weights downloading to the whole model running on an FPGA prototype of the Chimera processor. Written by Shayan Yassami Inkling 2 Mini on our processor core. The tokens are from a run on our FPGA prototype, played back at 1.5 GHz silicon speed: 128 ms per token, the pace our simulator measures. The 85 MHz prototype itself takes 1.2 s per token. Measured on a 6 TOPS int8 Chimera Perform core 16 × 16 PEs, 8 MB on-chip at 1.5 GHz with 32 GB/s external memory, in the instruction-set simulator: 192.4 M cycles per decoded token. FPGA: HAPS-200 prototype at 85 MHz. Experts are 4-bit integer a community checkpoint , attention and next-token scoring 8-bit. Text model only. On Friday, November 20th, Thinking Machines Lab released Inkling 2 Mini https://thinkingmachines.ai/news/inkling-2-mini/ , and with it a kind of model we had never run: a looped transformer. On Monday, November 23rd, I asked an agent to port it to our GPNPU, and at 10:07 am the weights started downloading. At 1:21 pm the whole model was running on an FPGA prototype of the core, and every token it produced matched our simulator. What a looped transformer is A normal transformer is a stack of layers. A token goes in at the bottom, each layer refines it a little, and the answer comes out of the top. If you want a smarter model, you add layers, and every layer you add is more weights to store. Inkling 2 Mini does something cheaper. It has 24 layers, and it runs the middle twelve three times. Think of reading a hard paragraph: you don't need a second copy of the page, you just read it again, and the second time through you notice things because of what you picked up on the first. The model works the same way. Each pass through the middle layers leaves short notes for the next pass, so the same weights do different work each time around. The result is 48 layer passes for every token from 24 layers of weights. The model is also a mixture of experts: each layer holds 128 small specialist networks and sends every token to just eight of them. So of its 26.4 billion parameters, only about 3.4 billion are used for any one token, and the file is about 20 GB. Thinking Machines built it to run on a laptop. None of this is hard for a GPU, which runs whatever software asks of it. It can be a real problem for a traditional NPU. Those chips hardwire the operations that mattered when they were designed, and a model that needs anything else, or needs to loop and route on the fly, falls back to a host CPU https://quadric.ai/blog/cpu-failback-npu-performance-ai-inference or doesn't run. Inkling has short convolutions tucked inside attention, a position scheme I hadn't seen before, a router that picks experts on the fly, and the loop itself. Every one of those was new to our stack on Monday morning. A few hours Here is how Monday went. The agent worked from the same porting skills we ship to customers through our Developer Studio MCP server https://quadric.ai/blog/mcp-ai-coding-assistant . They encode an order of operations, and the order matters more than any trick in them. First you rewrite the model in PyTorch in exactly the form the chip will compute it, one token at a time. We call this the twin, and it does two jobs. It is the reference: before anything else happens it has to give the same answers as the reference checkpoint, and proving that is where the care goes. And it is the program: each piece becomes a small PyTorch module with a decorator https://quadric.ai/blog/introducing-chipy-end-to-end-detection-pipelines on it, a hint that says "on the chip, use this CCL kernel, with these parameters." On a CPU the module runs as written and serves as the reference; compiled for the processor, the kernel from our Chimera Compute Library CCL takes its place. Then you settle the weights. Then you write the kernels, and every kernel carries a reference that the simulator's output is checked against. The first hour of the morning went to choosing the weights. Inkling ships its experts in NVFP4, a 4-bit floating-point format specific to recent NVIDIA GPUs. The skills say to look at what the community has published before quantizing anything yourself, and within three days of the release someone had: a careful 4-bit integer version of the experts credit to the Hugging Face user Pentium95 https://huggingface.co/Pentium95/Inkling-2-Mini-W4A16-g128-gptq . Integer weights run directly on the multipliers in every Chimera core shipping today, and the format matched one our kernels already understood, so we loaded its weights unchanged. It became our reference checkpoint: everything after this is checked against it. Once the weights were on disk things moved quickly: by 10:48 am the twin matched the reference checkpoint, and it kept matching over a 1,100-token passage: the same top choice at every position. Then the work split three ways, with one agent each on the experts, attention, and everything in between. Each piece was checked on its own, fed inputs recorded from the twin, so none had to wait for the others. At 11:23 am the final step, the one that scores all 200,058 possible next tokens, produced exactly the right numbers on the simulator. The expert kernel followed at 11:46 am and attention at 12:02 pm. Another agent assembled the pieces while one more prepared the FPGA. At 1:21 pm, three hours and fourteen minutes after the weights started downloading, the full model ran on the board: five tokens in a row, every output identical to the reference, with the model's memory of the conversation kept on the chip between them. I'd be overselling it if I said nothing went wrong. The first assembled program gave answers that were close but not exact, and it took a bisect to find a mismatch in how two pieces were wired together. That is what the references are for: when every step has to match to the last bit, a mistake has nowhere to hide. Borrowed speed Getting a model to run is half the job. The other half used to be a separate project: making it fast. What struck me on Monday is that the second half barely happened, because most of it was already done. To see why, you have to know what limits a model like this. Each token needs about 3.7 GB of weights counted from their sizes , and they have to travel from memory into the processing elements. Inkling does little arithmetic per byte it reads, so the chip spends its time loading, and the speed limit is simply how fast weights can be loaded. Engineers call that limit the roofline. The loop doesn't change this, by the way. By the time the model comes back around to a layer, hundreds of megabytes of other weights have passed through, so each pass reads its weights again. The agents didn't start from a blank page. Earlier this fall I wrote about the Kernel Arena https://quadric.ai/blog/enter-the-arena-agentic-kernel-optimization , the internal game where engineers and their agents compete to make kernels faster. Every winning entry stays on the board with its source code, which makes the Arena a database of optimizations that are already proven on our hardware. So the expert kernel began from the leading entry on an Arena task for a different mixture-of-experts model, which had already worked out how to fetch the next expert's weights while the current one is still computing. The big matrix-times-vector kernels came from our LFM3 port https://quadric.ai/blog/how-long-to-port-ai-model-npu-agentic-sdk a month ago. Each bar is one kernel measured on its own, against the fastest the core itself can take weights in. The first time the expert kernel ran correctly, it was already at 95% of its roofline. Next-token scoring came in at 99%. Attention was the one piece that needed real work, since Inkling's attention is new to us. It started at 84% and I asked a second agent to push it; ten measured steps and well under an hour later it was past 90%, with the output unchanged at every step. Put together, one token takes 128 milliseconds, about 7.8 tokens a second, on a Chimera Perform core a 16 × 16 array of processing elements with eight multipliers each, 6 TOPS of int8 compute at 1.5 GHz with 32 GB/s of external memory, about what a chip of this size usually ships with. That is 192.4 million cycles, measured on our cycle-accurate simulator. Moving 3.7 GB at 32 GB/s takes about 116 ms on its own, so on day one the whole token runs at roughly 90% of what the memory allows. That's a strong starting point, and further optimization can likely push it higher. On the board The Chimera instruction-set simulator models the full processor pipeline, cycle-accurate and bit-exact, which is why we trust it. But there is nothing like watching real hardware run. The FPGA prototype holds all 14.8 GB of the model's weights down from the 20 GB release, because the experts are 4-bit and the remaining layers 8-bit and generates text at 1.2 seconds per token. That's the 85 MHz prototype clock, not the chip's speed, so the board is a proof of correctness. The video at the top is sped up to the chip's real clock speed. Why this keeps happening In 2023, porting Llama 2 to our processor took thirteen engineer-weeks https://quadric.ai/blog/how-long-to-port-ai-model-npu-agentic-sdk . This one, a design new to our stack, took a few hours, and it arrived fast. I don't think the lesson is that agents are clever, though they are. It's that the knowledge has somewhere to live. The skills hold the method, and any licensee can run them through MCP with the coding assistant they already use. The Arena holds the speed, one proven kernel at a time, and Monday's attention kernel is going back in for whoever ports the next strange model. Each port makes the next one start from a higher floor. Model designers are going to keep inventing new shapes; looping layers will not be the last odd idea. A processor is only useful for those models if its software can keep up with them. I can't tell you what next month's architecture will look like. I'm fairly confident about how long it will take us to run it.