Whisper Small (Qualcomm QNN, w8a16) for transformers.js

Qualcomm AI Hub's precompiled QNN ONNX builds of Whisper-Small-Quantized (w8a16, release v0.67.0), repacked so that @fugood/bricks-transformers can run them with ONNX Runtime and the QNN execution provider on the Hexagon NPU.

Each build is compiled for one chip family. The ONNX files of each chip are in their own folder; the config, tokenizer and preprocessor files at the root are shared.

Files

  • config.json: Whisper Small config with model_type: "whisper_static" and a static_io block: the I/O names, shapes, dtypes and quantization (scale / zero point) of the static graphs, and the decoder's fixed KV cache protocol (200 decoder positions).
  • <chip>/onnx/encoder_model.onnx, decoder_model_merged.onnx: ONNX wrappers with one EPContext node each; the QNN context binary is the .onnx_data file next to them.
  • <chip>/metadata.json: the original AI Hub metadata (chipset, QAIRT version).

Chips

Folder Aliases HTP AI Hub reference device QAIRT
qualcomm-qcm6690/onnx qcm6690, qualcomm-dragonwing-q-6690 v73 Dragonwing Q-6690 MTP 2.51.0.260929181845
qualcomm-qcs6490/onnx qcs6490, qualcomm-dragonwing-qcs6490 v68 Dragonwing RB3 Gen 2 Vision Kit 2.51.0.260929181845
qualcomm-qcs8275/onnx qcs8275, qualcomm-dragonwing-iq-8275 v75 Arduino VENTUNO Q 2.51.0.260929181845
qualcomm-qcs8550-proxy/onnx qualcomm-dragonwing-qcs8550-proxy v73 QCS8550 (Proxy) 2.51.0.260929181845
qualcomm-qcs9075/onnx qcs9075, qualcomm-dragonwing-iq-9075 v73 Dragonwing IQ-9075 EVK 2.51.0.260929181845
qualcomm-snapdragon-7gen4/onnx sm7750 v73 Snapdragon 7 Gen 4 QRD 2.51.0.260929181845
qualcomm-snapdragon-8-elite-extreme-gen6/onnx sm8975 v85 Snapdragon 8 Elite Extreme Gen 6 QRD 2.51.0.260929181845
qualcomm-snapdragon-8-elite-for-galaxy/onnx sm8750-ac v79 Samsung Galaxy S25 (Family) 2.51.0.260929181845
qualcomm-snapdragon-8-elite-gen5-for-galaxy/onnx sm8850-ad v81 Samsung Galaxy S26 (Family) 2.51.0.260929181845
qualcomm-snapdragon-8-elite-gen6/onnx sm8950 v85 Snapdragon 8 Elite Gen 6 QRD 2.51.0.260929181845
qualcomm-snapdragon-8gen1/onnx sm8450 v69 Samsung Galaxy S22 (Family) 2.51.0.260929181845
qualcomm-snapdragon-8gen3/onnx sm8650 v75 Samsung Galaxy S24 (Family) 2.50.0.260828221209
qualcomm-snapdragon-x-elite/onnx sc8380xp v73 Snapdragon X Elite CRD 2.51.0.260929181845
qualcomm-snapdragon-x2-elite/onnx sc8480xp v81 Snapdragon X2 Elite CRD 2.51.0.260929181845

A context binary only loads on an HTP that matches its build. Pick the folder of your SoC. The qualcomm-qcs6490 build was checked on an SM7325 (HTP v68) with the JFK sample; the other builds have not been run yet.

Usage

Needs ONNX Runtime 1.24.1 or later with the QNN plugin execution provider (QAIRT 2.51 or later), and @fugood/bricks-transformers with whisper_static support.

In BRICKS, pick this repo for Speech-to-Text (ONNX), choose the chip under Variant, and set the executors to qnn (backend HTP).

With @fugood/bricks-transformers:

import { pipeline } from '@fugood/bricks-transformers'

const asr = await pipeline('automatic-speech-recognition', 'BricksDisplay/whisper-small-qnn', {
  subfolder: 'qualcomm-qcs6490/onnx',
  session_options: {
    executionProviders: [{ name: 'qnn', backendPath: 'libQnnHtp.so' }],
  },
})
const { text } = await asr(audio, { language: 'en', task: 'transcribe' })

Limits of the static graphs: one 30 s window per encoder run, up to 200 decoder positions per window (long audio is chunked), batch size 1, no word-level timestamps.

License

Apache-2.0, the same as the source model (qualcomm/Whisper-Small-Quantized, based on openai/whisper-small). The model files are AI Hub's builds; only the file names and the context binary paths inside the ONNX wrappers were changed.

Downloads last month
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for BricksDisplay/whisper-small-qnn

Quantized
(295)
this model