Two parts of the image path

The update extends the FlashAttention flip shader to more shapes, including head widths divisible by eight and partial KV tiles. Its author connects that work to attention in vision encoders. A second optimization addresses FP16 matrix multiplication at shapes commonly encountered in those encoders.

A vision encoder converts image data into representations that a multimodal model can consume. Its latency is a separate measurement from text-generation throughput. Faster image encoding can reduce one part of a request, but does not establish the same speedup for the assistant’s complete response.

The benchmark configuration

The PR reports mtmd_encode_chunk processing a 1120-by-1600 RGB image producing 1,750 image tokens. Its Qwen4-35B-A3B comparison uses a Q8_0 projector and distinguishes baseline master, the FlashAttention update alone, FlashAttention plus matrix multiplication changes, and the separate ROCm backend.

On Radeon 8060S, the reported time falls from 2,002,800 to 1,105,712 microseconds with both updates. On Radeon AI PRO R9700, it falls from 506,502 to 264,117 microseconds. These are the contributor’s measurements, not independently reproduced results from this publication, and apply to that encoding stage and configuration.

A backend comparison needs context

In the same Qwen4 test, ROCm records 1,081,016 microseconds on the 8060S and 314,018 on the R9700. Updated Vulkan therefore approaches ROCm on the former and performs better in this particular measurement on the latter. The table does not establish a universal winner between the backends.

The contributor supplies separate Qwen3.8-27B results and an attention microbenchmark. They should not be collapsed into a single speed multiplier: models and operations have different bottlenecks. Projector format, image resolution and the remainder of the inference pipeline also influence the practical choice.

What local users can evaluate

The relevant workload is local multimodal inference through Vulkan on suitable AMD hardware, particularly when image encoding contributes a meaningful share of latency. This change does not release new Qwen weights or implement LoRA training or retrieval-augmented generation.

It is distinct from earlier CUDA FP8 and Hexagon changes. A useful comparison holds images, model and projector constant, records encoding time separately, and also measures complete request latency. Users should check binary availability independently of the tag: a source tag alone does not establish a ready-to-run package for every operating system or hardware configuration.