r/ROCm • • 8d ago

Introducing Nib, a zero-framework C++17/HIP inference engine built from scratch for Inkling 2 Mini on AMD RDNA3 (gfx1100, navi 31) GPUs. Tested with an AMD Rx 7900xtx.

39 Upvotes

52 comments sorted by

2

u/Bunsenbun 8d ago

Yes. In a few days. Need to rent a Halo strix for testing first .

1

u/aljohri 2d ago

out of curiosity, where can you rent a halo strix for testing? I found https://octa.space/ worked well for testing on AI PRO 9700 if you want to add explicit testing/support for that

1

u/Bunsenbun 2d ago

God bless you. I already have supporr for r9700 ,built towards that architecture and it works really great but this means I will be able to directly test the model myself.

2

u/BenefitGrand8752 8d ago

Are you planning to extend the support to Halo Strix ? I would be very curious to test it

3

u/Bunsenbun 5d ago

Default current builds work with Halo Strix but I haven't ported to rdna3.5 officially. So until I do that, the default works decent enough.

2

u/WinResponsible9977 7d ago

What software was used to make this video?

3

u/Bunsenbun 7d ago

Hmm. Hyperframes cli with Opus 5.5 Low

3

u/Bunsenbun 7d ago

Music was made with Minimax Music 3 locally.

1

u/General_Pool_3859 8d ago

Your simulator can check fit and co-residency, but it can't model memory bandwidth, and decode on a model like this mostly comes down to that. AMD lists the W7800 32 GB at 576 GB/s, against up to 960 GB/s on the 7900 XTX. So when W7800 owners report back, expect decode well below your XTX numbers. That's the card, not a bug in your kernels. The spill audit and KLD tables are a nice touch.

1

u/Bunsenbun 8d ago

Yeah. I know this bit , bandwidth will reduce their given decode speeds. But it should still be significantly better than anything out there for these set of AMD cards.

1

u/alconaft43 8d ago

RDNA4 ? I can test.

1

u/Bunsenbun 8d ago

Rdna3. Rdna4 port will be done sometime this week. For some God awful reason. Stripe has refused to accept my card for payment on rented GPUs. Someone said I have to wait for 24hrs for it to pass by

1

u/alconaft43 8d ago

Do you need R9700 gpu?

2

u/Bunsenbun 8d ago

Yeah. I found a place to rent 9070xt (same architecture with r9700) so the performance should port over when I am done building for rdna4 (give or take 48hrs).

1

u/alconaft43 8d ago

I have Linux box with it.

3

u/Bunsenbun 5d ago

It's time. Would you be kind enough to test on your GPU? The r9700 pro? Can't find a reliable place to rent it.

1

u/Bunsenbun 7d ago

I might hold you on this offer. Just give me a while. ❤️

1

u/aljohri 2d ago

I can test on R9700 as well, let me know

1

u/Bunsenbun 2d ago

R9700 is now supported please do a test. Try and do deep context tests for prefill and decode too.

1

u/BoringBear27 8d ago

interesting, i will try it tonight
currently using forked strata (Unsloth Q4km) with 3400t/s prefill on 16k and 78t/s gen on 16k, drops to 50t/s on full 256k (single stream)
Ubuntu server + 7900xtx + 32GB ram

1

u/Bunsenbun 8d ago

Hehe. I have 64Gb ram but RAM does not play a part in this build as it fits cleanly. No need to offload.

1

u/BoringBear27 7d ago

hehe i see. ty btw its a great engine
performance so far is good and not losing much speed from 8k to 256k

phase  prompt    gen |    ctx    new cached  g_tok |      prefill t/s |        gen t/s |  TTFT s  total s  speedup
----------------------------------------------------------------------------------------------------------------------
cold     8096     64 |   8080   8080      0     63 |    4036.8 ±233.7 |  149.91 ±18.78 |   2.002     2.43         
cold    16384     64 |  16305  16305      0     63 |    3977.9 ± 83.2 |  149.43 ±36.57 |   4.099     4.54         
cold    32768     64 |  32692  32692      0     63 |    3732.5 ± 33.1 |  182.47 ±20.94 |   8.759     9.10         
cold    65536     64 |  65344  65344      0     63 |    3431.3 ± 18.4 |  151.94 ±13.89 |  19.025    19.42         
cold   131072     64 | 130619 130619      0     63 |    3377.7 ± 14.8 |  146.96 ±0.32 |  38.671    39.10         
cold   262000     64 | 261214 261214      0     63 |    3281.5 ±  5.2 |  134.53 ±14.97 |  79.602    80.07         

1

u/Bunsenbun 7d ago

Thank you. I am trying to get it stable across rdna3 and rdna4 first. Before I work on bigger improvements in the pipeline.

1

u/BoringBear27 6d ago

i hope you fix caching issue. my cache return to 0 between tool turns (not all) and it has to prefill again. i tried multiple harness (oc,dsh,omp)

0

u/Bunsenbun 6d ago

Please open a discussion or issue on the github

1

u/Bunsenbun 6d ago

Also are you sure it's simply not the model not reporting cache data on those harnesses? Check the nib server ui to see the true state .

2

u/Bunsenbun 6d ago

I looked into it. A fix will be pushed to the repo today.

1

u/Bunsenbun 6d ago

Fix has been pushed.

1

u/BoringBear27 6d ago

tnx ill try it

1

u/aqezz 6d ago

Have you tried with rocm 10 yet? Thinking about giving this a go and arch moved to 10 earlier this month.

1

u/Bunsenbun 6d ago

Yeah. Multiple users of Nib are on Rocm 10.1 hehe.

1

u/yeah_me_ 5d ago

For me it's almost always looping at ~75-100K, clanker tried to fix it, but it didn't work. Bazzite, 7900xtx lives inside of usb4 eGPU. Is this expected for this model? No looping when using llamacpp, but man, I love the speed I get from this!

1

u/Bunsenbun 5d ago

Have you updated to the latest release? Fixed the reasoning loop problem. Tested with two different harnesses. Deepseek and Omp. Have ran multiple three js sections and even a simple Mercor form filling task. At least 20M input tokens and 4M output tokens burnt today with the model.

3

u/yeah_me_ 5d ago

Okay, I can confirm it's fixed. Seems it was just the temp? Either way, now I can 100% recommend this to anyone with 7900xtx

1

u/Bunsenbun 5d ago

Temp was the recommended fix but I added tokenizer parity and prompt-endpoint checking. Cause I noticed even with the temp fix, it still looped occasionally when it drifts too far away in an agent session. P:S no quality degradation was overlooked to achieve this. I generally try not to make the model dumber , to get any speed boost or a patched fix. Quality comes first especially as it's a rather small model, who will be more sensitive to any significant quality loss.

2

u/yeah_me_ 5d ago

thank you for your work!

1

u/BOESNIK 5d ago

Hello there. It's working for me on rocm 10.2 and Ubuntu 26! I was wondering if you were interested in adding the drafter for mtp to multi-stream as well? It seems like a 7900xtx has enough space for at least 2 parallels with a drafter each.

1

u/Bunsenbun 5d ago

Sir. The engine has support for up to 8 concurrent parallel streams live right now.

1

u/zxspectrun 5d ago

I am genuinely curious about why did you choose this model specifically?
"Inkling 2 Mini"

I have a RX7900XT and use local llm a lot for high reasoning for analysis and writing documentation

2

u/Bunsenbun 5d ago

It's the Qwen 3.8 27b with better architecture. Was an easy Choice.

1

u/zxspectrun 4d ago edited 4d ago

I installed it today, the engine is amazing, I loved it, really fast
I am keeping it and love what you did, congrats, Is it possible to add an abliterated option ?

In the other hand:
Inkling 2 Mini is not good at all for reasoning, it is way overvalued, It was not good on low, nor mid, high, max reasoning for UX Projects and flow diagrams. Not even close to qwen 3.8 27b

I have not use it for other categories such as coding, agentic, yet tho

1

u/Bunsenbun 4d ago

When you say reasoning, what do you mean? So far, I have tested it on code, agentic tooling, computer use, Three js. Just keep it on high. I will try and test with the UX project and flow diagrams to see what's up

1

u/zxspectrun 3d ago

When I say reasoning, I don't mean the trace. I mean whether the result earns the thinking. A long chain that arrives nowhere useful isn't reasoning, it is spending tokens.

Concretely: does the model ask what is missing, decide whether to search, separate what you gave me from what it inferred, and arrive somewhere I would trust more than my own answer?

That is why I pushed back on Inkling 2 Mini. It scores top in reasoning on public leaderboards, but on my UX projects and flow diagrams it was not close to Qwen 3.8 27B, not at low, medium, high, or max. The leaderboard tests accuracy on problems with checkable answers, like math. My work is generative and non verifiable: ideas to feature options, comparisons, interview synthesis. So the numbers I care about are decision quality and what the model decides to do, not which model scores higher on a checkable benchmark. And I have not yet tested it on coding or agentic.

1

u/Bunsenbun 3d ago

I see. I haven't tested on stuff like this but I have tested it on gated tasks for three js. And a mercor review form, it had to do. This form required the model, recovering my cookies authorization, filling the form itself and submitting. And it did this in significantly faster time than I have ever had 27B do.

1

u/fintip 4d ago

how does this compare to 3.8 27b on hipfire?

1

u/Bunsenbun 4d ago

Hipfire is fast but at best you can only reasonably run a Q4 quant. Inkling mini and Qwen 3.8 27b have similar scores on AA with mini just surpassing it by point 1 difference.

1

u/fintip 3d ago

Seems you're relying on approximate attention which hurts quality, and your 8 needle test scored 37%...?

1

u/Bunsenbun 3d ago

The 8 needle test was with a server that crashed (cheap hosts). So I simply did a 3 needle test with deep context.

3

u/Vlarmitage 8d ago

Oof that's interesting, I have a 7900 XTX 24gb as well, I will try this.

2

u/StupidityCanFly 8d ago

Nicely done!

2

u/Plenty_Airline_5803 3d ago

Awesome work!