Views
No views yet
| Component | Inference | Peak memory | Profile job |
|---|---|---|---|
| Encoder (30 s window) | 26.4 ms | 133.6 MB | jpey22z15 |
| Decoder (per token) | 6.2 ms | 169.7 MB | j5w4xxl6g |
--quantize_full_type int8 --quantize_io, applied server-side at compile — no local AIMET needed) compiles and runs fast for both components.1import qai_hub as hub
2from qai_hub_models.models._shared.hf_whisper.model import HfWhisperEncoder, HfWhisperDecoder
3
4device = hub.Device(attributes="chipset:qualcomm-snapdragon-8gen3")
5for name, cls in (("encoder", HfWhisperEncoder), ("decoder", HfWhisperDecoder)):
6 component = cls.from_pretrained(hf_whisper_version="vinai/PhoWhisper-small").eval()
7 spec = component.get_input_spec()
8 hub.submit_compile_job(
9 model=component.convert_to_torchscript(spec), device=device, input_specs=spec,
10 options="--target_runtime qnn_context_binary --quantize_full_type int8 --quantize_io",
11 name=f"phowhisper-small-{name}-int8")pip install "qai-hub-models[whisper-small]", and an aihub.qualcomm.com API token. I/O is quantized per --quantize_io; exact tensor specs are on the job pages. Companion QCS6490/IoT builds of Whisper-base/small live in this org; the same recipe with the QCS6490 target produces a PhoWhisper build for Dragonwing boards.