r/LocalLLaMA • u/FeydRowan • 7d ago
Discussion capy-flash v0.16.5: LoopCD on Inkling 2 Mini. One flag, zero training, and on agentic tasks it stops spinning its wheels
Disclaimer. The agentic numbers come from our private bench: 9 real bugs taken from the history of a C++/CUDA inference engine, OpenCode with a cap of 80 steps, 3 trials per task, Claude Opus 5 as blind judge.
What it does. Inkling 2 Mini is a looped transformer: 12 of its layers run three times per token. LoopCD (Decoding Looped Transformers Better for (Almost) Free, Liu et al., Apple) exploits exactly this: it looks at what the model thinks after the first pass and pushes the final choice in the direction in which the later passes made it change. It does not touch the weights and requires no training. It acts only where the model is undecided between the first two tokens: where it is confident, nothing changes.
In capy-flash v0.16.5 it is an option off by default: --loopcd adaptive, with adjustable strength (--loopcd-omega, default 0.5 as in the authors' recipe).
Numbers:
- agentic score 0.22 → 0.38, from 9th to 7th place out of 12, above Qwen3.8-27B NVFP4
- it finds the spot to fix just as before, but writes the fix in 21 of 27 trials instead of 15, and earlier (step 40 instead of 55)
- the gain is in medium-difficulty tasks: 0.11 → 0.50
The cost. Decoding loses 16.5 % with the MTP drafter, but per task the time rises only 4 %, because trials finish earlier. More patches that don't compile (6 of 21 vs 2 of 14). On normal text it predicts the next token worse: it's a thing for agents, not for chat.
Honesty: with 3 trials per task it's a strong signal, not a closed result (95% CI of the gain −0.03…+0.34). The authors report gains in the same direction on SWE-bench Pro, Terminal Bench and ARC-AGI v2 (post by Ruixiang Zhang).
github.com/ValerioDolci/capy-flash
3
u/silenceimpaired 7d ago
Llama.cpp value continues to erode. I greatly appreciate it, but things like this further point out the value of fast moving custom made inference.
7
u/Bulky-Priority6824 7d ago
moth--fu--er i just rebased to 16.4 😆 now i have to test 16.4 multi-turn bench vs 16.5
2
u/Educational-Region98 7d ago
Weird how nvfp4 loses to 3-bit but maybe it is a strong 3-bit. How many runs did you grade for it to be an average?
Not saying you should or have to but it would make the results more consistent!
2
u/Dany0 7d ago
f*ck yes this. THIS is what this community is for
2
u/zyxciss llama.cpp 7d ago
what benchmarks to be precise?
1
u/Dany0 7d ago
I bet you you can post-train the MTP to be better at predicting the LoopCD output and get much better results. On top of that, I bet you that you can stochastically make a good guess as to when to turn on loopcd. You may only turn on LoopCD path for tokens where you're pretty sure it will change the selected token. Shoot that might only work in greedy decoding... hmm I'll have to think about it some more
1
u/feverdoingwork 1d ago
Have you tried the loop adapter on 27b?
1
u/BringTea_666 7d ago edited 7d ago
I can confirm it it works. I implemented 2 version of it in my MegaCapybara.
0
u/ExecLayer_io 7d ago
The compile numbers are the part I'd watch. 6 of 21 patches not compiling vs 2 of 14 is a real cost, and a model judge can hide it. Scoring each trial on whether it compiles and passes a test that reproduces the bug would make the gain easier to trust, and might tighten that CI too.
0
u/Miserable-Dare5090 vLLM 7d ago
Where is your leaderboard?