Feature request

#2
by Crudecfa - opened

Excellent project, very inspiring!

May I request some features?

  1. onwx for Qwen 3.6 35B a3b can you add image inputs up to 2560 × 2560 with NPU-accelerated vision encoding? Instead of only CPU
  2. onwx Would you consider adding Inkling 2 Mini support with SSD expert streaming?
    FastFlowLM already supports this model, but its approximately 20 GB runtime memory requirement leaves insufficient RAM for my other applications.

My hardware:
• AMD Ryzen AI 7 445 (50 TOPS NPU)
• Radeon 840M
• 32 GB LPDDR5X-7500
• 1 TB NVMe SSD
• Windows 11

Ideally, I would like to run Inkling 2 Mini with 64K context, vision support and a configurable SSD expert cache.

Is its looped MoE architecture technically feasible to implement in onwx? Are there any plans to support it?

I would be happy to help test and benchmark it on my hardware.

Thank you!

Thanks for the request! Inkling 2 Mini is now supported in onwx 1.5.0: pick "Inkling 2 Mini" in the Models tab (15.2 GB). The experts run on the NPU, the rest on the CPU; about 12 tok/s on a Ryzen AI Max+ 395. With "Memory for MoE experts" in Settings, the experts are streamed from the SSD (e.g. 6 GB → about 11 GB in all, ~9 tok/s), so it should fit a 32 GB machine. Context up to 64K. Vision for Inkling and Qwen3.6 NPU vision are not done yet.

You are so awesome!

Btw wondering for the vision, is it very difficult to implement on the AMD npu?

Thanks! Not impossible, but there is a limit. Here is the plan:

  • Images will be resized to 512 × 512 (as onwx does now), and the vision encoding will move to the NPU.
  • 2560 × 2560 is not realistic: the NPU programs are built for fixed shapes, and at that size the vision tower attends over 25,600 patches at once (full attention). That would take about 40 GB of memory and several minutes per image.

I'll post here again when the NPU vision encoder is in a release.

onwx 1.6.0 is out: the vision encoder now runs on the NPU (Qwen3.6 35B-A3B, Qwen3.5 9B / 4B, Ternary Bonsai 2 9B / 4B). Update onwx from its window (or reinstall) - the models need no update.

  • Images are resized to 512 x 512 by default. In Settings, "Image resolution" also offers 1024 x 1024 (small text reads better).
  • On a Ryzen AI Max+ 395: about 1.5 s an image at 512 x 512, about 7 s at 1024 x 1024 (the CPU-only encoder took about 7 s and 55 s). A 1024 x 1024 image is also 1,024 tokens for the model instead of 256, so the prompt takes longer too. Expect it to be somewhat slower on a chip with fewer CPU cores like yours.

A correction to my earlier reply: with the new encoder, memory is not the problem for larger images (a few GB). The time is: the attention over all the patches still runs on the CPU, and at 2048 x 2048 that alone would take a couple of minutes. I'm still looking into 2048 x 2048 (it needs the attention on the NPU too).

If you try it on your Ryzen AI 7 445, I'd be glad to hear the numbers.

Thanks so much for such quick implementation! Will try it next week and provide my feedback.

Sounds like npu already makes the vision encoder much faster. I would imagine the attention over all the patches running on the NPU would speed things up quite a bit as well.

Maybe this could be helpful?
https://arxiv.org/abs/2609.21264

Sign up or log in to comment