[KongchangAI]
ConceptGather_Quant

GatherBlockQuantized

GatherBlockQuantized is a contributed operator in ONNX Runtime that fuses table lookup (Gather) with block quantization (Block Quantized). It is designed for the embedding layers of low-bit quantized models, enabling efficient loading of quantized weights.

Timeline (last 90 days)

Oct 14

The asyncify build of onnxruntime-web does not include the CPU kernel for the GatherBlockQuantized operator, so it cannot load and use 4-bit Gemma ONNX models with block-quantized embeddings on pure WebAssembly (no WebGPU) devices.

Unverified50%
Oct 14

The regular build of onnxruntime-web (ort-wasm-simd-threaded.{mjs,wasm}) includes the CPU kernel for GatherBlockQuantized and can support running 4-bit Gemma on WebAssembly.

Unverified50%
Oct 14

GatherBlockQuantized is a contrib operator of ONNX Runtime that fuses Gather (table lookup) and Block Quantized, designed specifically for low-bit quantized embedding layers, and is not a standard ONNX operator.

Unverified50%
Oct 14

okasi/onnx-lab#2 documented the problem of asyncify lacking GatherBlockQuantized and switched to the JSEP build to work around it; dephelion/ufeed#64 also encountered a similar problem.

Unverified50%

All Facts (4)

Source Articles