A single-file ONNX export of Qwen/Qwen2.5-1.5B-Instruct, 4-bit weight-quantized with fp16 activations and pre-fused RMSNorm. It is built for, and used by, the word prediction of EyeCtrl, an eye-tracking accessibility app.
This is not an official Qwen release. It is a derivative of the Apache-2.0 base model; see LICENSE.
| Path | onnx/model_q4f16_fused.onnx |
| Size | 1,671,599,992 bytes |
| SHA-256 | 61e17fef2f6df1fd112dc42c69777298271c8b5992de21d35a43b4bfef99d688 |
| Quantization | MatMulNBits, 4-bit, block size 32, symmetric; 196 nodes; lm_head not quantized |
| Format | a single file (no .onnx_data sidecar) |
The tokenizer is the base model's tokenizer.json (unchanged).
The commonly used community q4f16 export of this model fails to load on ONNX Runtime 1.23 and later on the CPU execution provider:
onnxruntime::graph_utils::GetIndexFromName ... was false.
Attempting to get index by a name which does not exist:
InsertedPrecisionFreeCast_/model/layers.1/input_layernorm/Constant_output_0
for node: /model/layers.0/input_layernorm/Mul_1/SimplifiedLayerNormFusion/
The runtime's SimplifiedLayerNormFusion graph pass chokes on the decomposed RMSNorm pattern combined with the q4f16 boundary casts. This export fuses RMSNorm offline, before the fp16 conversion and quantization, so the runtime pass has nothing left to fuse.
Load check (recorded when the artifact was built, 2026-09-07):
| ONNX Runtime | CPU | DirectML |
|---|---|---|
| 1.21.0 | OK | OK |
| 1.22.1 | OK | OK |
| 1.24.4 | OK | OK |
Qwen/Qwen2.5-1.5B-Instruct with optimum 1.27 (torch 2.7.1, CPU), task text-generation-with-past.onnxruntime.transformers.optimizer (model_type="gpt2", 12 heads, hidden 1536). This turns the 57 decomposed RMSNorm patterns into SimplifiedLayerNormalization / SkipSimplifiedLayerNormalization (6,964 → 3,225 nodes).InsertedPrecisionFreeCast_ boundary casts.MatMulNBits, block 32, symmetric; lm_head excluded).The scripts are in the EyeCtrl repository under tools/model-export/qwen2.5-1.5b/.