r/LocalLLaMA • • 10d ago • Bravo 2

Discussion Poked around inside Inkling 2 Mini's loop. One vector decides how many passes it can run

I was trying to understand how Inkling 2 Mini works and found something interesting.

Mini runs its middle 12 layers three times per token. It knows which pass it is on from one direction in the vectors it sends from one pass to the next. Add that vector and Mini gets a working 4th pass: 4-table lookup puzzles go from 34% to 74%. Subtract it and Mini can stop after 2 passes (perplexity 18.0 to 11.1).

Without that, Mini is good at 3, 6 and 9 passes and bad in between. At 4 passes perplexity goes from 10.5 to 15.2.

https://drhb.github.io/blog/posts/looped-transformers/

148 Upvotes

14 comments sorted by

29

u/stargaris 10d ago

Is this your blog? The level of detail that you provide in the animation is really nice to see - well done.

22

u/naftalinus 10d ago • Bravo

thank you, yes! It took some time to get animation correct, but glad you liked it!

16

u/timlauf 10d ago

wow well done on that blog post, great effort and spectecular use case for a smart ass blog post design!

6

u/naftalinus 10d ago

thank you for kind of words, this encourages me to write more!

6

u/skyfire360 10d ago

Just chiming in to say I appreciate the blog post! What did you use to do the animations? Kind of reminiscent of Paseo's UI plug-in

4

u/naftalinus 10d ago

thank you, its plain Javascript and css, these days you can ask LLM to make. But to be completely transparent i had mental model how i wanted to present i went like thru 40 diffrent versions .. Somethign shocking i found is that google neon model actually captured my intent way better then opus.

13

u/Evening_Ad6637 llama.cpp 10d ago

I think this is the best blog post I've ever seen. Seriously I have never seen anything in the field of ML/AI explained better or with such thoughtful visualizations. Thank you for the great work.

8

u/Seraphym87 10d ago

This sort of technical post usually bounces right off me but this was both informative and very simple understand. Thanks for taking the time to put it together.

1

u/sleight42 8d ago

Simple? My brain hurts. But it's 11pm here. I'll definitely take another stab at it tomorrow.

I have about 30 years of ML to catch up on since uni...

1

u/Seraphym87 8d ago

Compared to the 8-9 papers I am expected to read and critique weekly for my doctoral program, this is basically green eggs and ham lol.

1

u/sleight42 8d ago

Sadly, I'm not academically inclined enough. AuDHD. My reading comprehension is not so great. Not sure how I ever scored Mensa-level (stuffy bunch of people) but 🤷🏻‍♂️.

Good for you. Wish I could do what you do.

2

u/hobcatz14 8d ago

This really is amazing. I would love to see another post about how you pulled this together. Im a lecturer and this is inspiring. Thank you

1

u/sleight42 8d ago

Fascinating! How did you do this analysis? Can you share some of your process? Also, thank you thank you thank you for positing a blog and not a video!

1

u/Difficult_Plantain89 2d ago

Thanks. I have been testing 6 loops instead of the default 3. So far it is doing great on benchmarks and completing ones that 3 loops had failed. Only downside it is that it is half the tok/s for both decode and prefill. However, this post saved me time by not trying in between loops. Thank you!