Muse-Glimmer-30B-ONNX-WebGPU
The text model of Meta's Muse Glimmer 30B converted to ONNX for running in a web browser with ONNX Runtime Web's WebGPU backend, as used by Quick Inference.
Changes from the original
- Made from Red Hat's GPTQ 4-bit checkpoint, RedHatAI/Muse-Glimmer-30B-INT4 (symmetric 4-bit weights in
blocks of 128, calibrated on 512 chat samples): its weight codes and scales are copied unchanged into
MatMulNBits. - Text only: the vision tower and projector are left out.
- Converted to an ONNX decoder in ONNX Runtime GenAI's layout (
input_ids,attention_mask,past_key_values.*→logits,present.*) by Quick Inference's own exporter (tools/export/export_glimmer.pyin Quick Inference), following transformers' Muse Glimmer model code:GroupQueryAttentionwith the 2,048-token sliding window and rotary embeddings on the sliding layers only, the output gate and the sandwich norms. logitsare before the final soft cap: apply20 * tanh(logits * 0.19611613513818404 / 20)(the config'soutput_multiplierandfinal_logit_softcapping) before sampling, as Quick Inference does.- The token embeddings and the output layer, which Red Hat kept in bfloat16, are quantised to 4 bits here (round to nearest, symmetric, block size 32). Activations and the KV cache are float16; the residual stream and the norms are float32. Rotary tables cover 65,536 positions.
These are modified files: their outputs are close to, but not identical to, the original model's.
Licence
Apache 2.0, as the original (LICENSE). Meta's usage policy for the model is in USAGE_POLICY.md.