Hi, @schuler
Sorry for not coming back earlier here are some of the results after the most recent
git pull but this time using my other GPU
Intel Arc Pro B50, this is a nice little nifty yet capable GPU that I use for low power inferencing.
Qwen 3.5 4B with --int4 (Q4_0) re-quantization OpenCL -
Intel Arc Pro B50 Release mode:
Code: [Select]
Model loaded : 10.8s.
GPU offload : 6.7s.
Time to fill : 422 ms
Prefill : 40.9 tok/s
Token Gen : 50.8 tok/s
Prefill and TTF here seems normal!, i used the provided parameters, and got a similar figures, I'm still puzzled why my AMD GPU was slower despite the better X2 performance and memory, OpenCL driver issues perhaps? I'll try to find time to dig into debugging it, I'll share with you my findings once I'm able to spot it
Qwen 3.8 27B with --int4 (Q4_0) re-quantization OpenCL -
Intel Arc Pro B50 Release mode:
Code: [Select]
Model loaded : 60.4s.
GPU offload : 42.2s.
Time to fill : 22344 ms
Prefill : 0.9 tok/s
Token Gen : 6.2 tok/s
Well... as a dense model, Qwen 3.8 27B size was really massive so it couldn't totally fit in the 16GB internal vram here and had to borrow ~2.7GB from the shared GPU memory which explains the significant performance hit! for int4 quantisation I was anticipating around 14GB GPU offload, maybe because of mixed precisions. any parameters to squeeze it further?
On your 4B model, can I suggest please to run the same int4 test on CPU (--cpu) ? It will be super cool to find how your AMD CPU does.
here you go:
Qwen 3.5 4B with --int4 (Q4_0) re-quantization OpenCL -
AMD Ryzen 9 9900X 24T 12C - 32GB DDR5 CL30 clocked to 4800MT/s Release mode:
Code: [Select]
Model loaded : 10.9s.
GPU offload : N/A
Time to fill : 921 ms
Prefill : 18.6 tok/s
Token Gen : 16.1 tok/s
Impressive!!... here is one little issue, my CPU supports AVX512 and all of it's extensions, I compiled CAI with FPC 3.2.2 which doesn't support AVX512, I tried FPC 3.3.1 (recent trunk release, clean and build..) but got lot's of compiling errors.
Just to comment that the coding to support Qwen Image 2.1 has started. 
Wow .. great minds think alike!!!

I also have an NVIDIA DGX Spark but it for some reason it hates OpenCL!!, yet I really wish to test CAI on it, would you be interested in integrating CUDA with it? and if so, I'm happy to contribute do you take PRs in this regards?
I'm working on Vulkan implementation for Envision still rough on the edges, (GEMM further optimisation phase) I think i can also help there if this is on your radar.