Documented scale layouts
The updated OPENCL.md describes F32 weight scales for MUL_MAT, either per tensor or per output channel. MUL_MAT_ID supports scales per tensor, per expert or per output channel of each expert. These layouts represent different ways to retain and restore weight magnitudes. Scale support does not introduce every possible quantization format. Existing kernel requirements and compatibility with a particular model graph still apply, so the documentation’s specific operation list matters more than a broad claim of unrestricted model support.
A stage after multiplication
The implementation selects ordinary or expert-indexed multiplication and returns without extra work when no scale exists. When a scale is present, both the result and scale must be F32, and the output tensor must be contiguous. The epilogue kernel multiplies already computed output elements by their corresponding scale. This makes scaling an explicit additional operation. Adding it does not by itself establish a speed advantage over fused implementations or a different backend on different hardware.
Expert indices and fusion constraints
Strides and offsets identify the scale for each channel and expert. The scaling kernel skips expert identifiers that are outside the valid range or represent an omitted slot. The patch also disables a particular gate/up fusion path when those matrix operations carry weight scales. That is a correctness boundary: an abbreviated fast path must not silently discard scaling. Work-item allocation for the scaling stage additionally depends on the number of output rows rather than using one fixed element grouping for every workload.
Practical scope without universal benchmarks
The release expands which model graphs OpenCL can handle with weight scales instead of the previous blanket rejection. It does not promise support for every OpenCL device, automatic execution of every model or a guaranteed tokens-per-second improvement. A separate epilogue has its own cost, making results dependent on operation shapes and runtime conditions. We read the release, PR description, backend changes, kernel and documentation without installing the update or running local models. Evaluation still needs numerical checks and measurements on the intended workload.

Discussion.
Your perspective matters. Sign in, pick a nickname and choose your cyber identity.
Loading discussion…
Your account name, email and photo stay off your comments.