Nanbeige4.3-33B-Q4_K_M-ONNX-WebGPU
Nanbeige/Nanbeige4.3-33B for running in a web browser with ONNX Runtime Web's WebGPU backend, as
used by Quick Inference: bartowski/Nanbeige_Nanbeige4.3-33B-GGUF's Nanbeige_Nanbeige4.3-33B-Q4_K_M.gguf (llama.cpp's
calibrated quantization, made with an importance matrix) converted to ONNX without re-quantizing anything.
Runtime
The quantized matrices use two operators that only Quick Inference's ONNX Runtime Web build has
(onnxruntime-web-kernels, v1.30.0-qi.5 or later, WebGPU):
com.microsoft.MatMulGgml and com.microsoft.GatherGgml, which read llama.cpp's quantization types (IQ2_S, IQ3_S,
IQ4_XS, Q3_K, Q4_K, Q5_K, Q6_K) directly. Stock ONNX Runtime can't load this model.
Changes from the original
- Converted to an ONNX decoder in ONNX Runtime GenAI's layout (
input_ids,attention_mask,past_key_values.*→logits,present.*), with the rotary embedding insideGroupQueryAttention. Activations and the KV cache are float16; norms are float16 weights. - Every quantized matrix keeps the GGUF's weights exactly: its blocks are only re-laid out so that each 32-weight
sub-block's codes sit in words of their own (the file is the same size), and each was checked to decode to exactly
what gguf-py decodes from the GGUF. Q8_0 matrices are ONNX Runtime's own 8-bit
MatMulNBits(the same codes, plus 128, and scales). llama.cpp's converter interleaves the two halves of each query and key head; their rows are put back in the original order. - The rotary tables cover 131,072 positions (the model's own maximum is 524,288).
These are modified files: their outputs are close to, but not identical to, the original model's.
Quality
Measured with llama.cpp on the source GGUF against bartowski's Q6_K (WikiText-2 test, 20 chunks of 512 tokens): mean KL divergence 0.051, same top token 91.5% (bartowski IQ2_M: 0.41, 74%).
Licence
Licensed under the same terms as the original model: apache-2.0.