Downloads · 30 days
24
36% of all-time downloads
huluhuluu/llama-3.2-3b-instruct-executorch-qnn-htp
llama-3.2-3b-instruct-executorch-qnn-htp is a machine learning model from huluhuluu. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for executorch. The card lists the license as llama3.2.
Two ExecuTorch .pte artifacts of Llama-3.2-3B-Instruct compiled for the Qualcomm Hexagon NPU (HTP).
Downloads · 30 days
24
36% of all-time downloads
All-time downloads
66
Public
Repo size
5.6 GB
Likes
0
Public
Click a slice to open those files.
.pte5.6 GB · 100%
From the Hugging Face model README
Two ExecuTorch .pte artifacts of Llama-3.2-3B-Instruct compiled for the
Qualcomm Hexagon NPU (HTP).
Not yet benchmarked. These are uploaded as a backup of a completed host export. No 160-request device measurement exists for either SoC yet, so this card contains no latency numbers. The local copies are being kept.
| File | Bytes | SHA-256 | Target |
|---|---|---|---|
sm8650/hybrid_llama_qnn.pte | 2,800,052,736 | c2d7c64d07c488c9b1dc536a5afd3d7b2830bfa2e28434061acfe8e2dabee6fb | Snapdragon 8 Gen 3, HTP v75 |
sm8750/hybrid_llama_qnn.pte | 2,799,057,408 | 8a821c2e402ccddfccce05682c8ce8e4b76aa350bffcc44edd70a109cebb9e09 | Snapdragon 8 Elite, HTP v79 |
Both carry the FlatBuffer identifier ET12 at bytes 4–7. The SM8650 file was
additionally parsed with the generated schema: identifier valid, 75 execution
plans, 5 segments.
The filename hybrid_llama_qnn.pte is upstream's name for
--model_mode hybrid; here the model genuinely is Llama.
Exact launcher: export_executorch_llama32_3b_host.sh (included in this repo).
| Parameter | Value |
|---|---|
| Exporter | executorch/examples/qualcomm/oss_scripts/llama/llama.py |
--decoder_model | llama3_2-3b_instruct |
--backend | htp |
--soc_model | SM8650 / SM8750 (one export each) |
--model_mode | hybrid |
--prefill_ar_len | 128 |
--max_seq_len | 2048 |
--max_context_len | 2048 |
--temperature | 0 (greedy) |
--checkpoint | Llama-3.2-3B-Instruct/original/consolidated.00.pth |
--params | Llama-3.2-3B-Instruct/original/params.json |
--tokenizer_model | Llama-3.2-3B-Instruct/original/tokenizer.model |
--compile_only | yes (host-side compile; no AI Hub job) |
| Item | Value |
|---|---|
| Recipe | Llama3_3BQuantRecipe (PTQ) |
| Calibration data | WikiText-2 raw, wikitext-2-raw-v1-train.parquet |
--calib_parquet_column | page |
--calib_parquet_limit | 128 |
| Observed calibration steps | 315 |
| Toolchain | QNN SDK 2.40.0 (251030114326_189385), host torch 2.9.1+cu128 |
Note on the environment: lm_eval 0.4.5 is unusable in this host env, so the
--calib_tasks wikitext route cannot work here; calibration is fed from the
parquet file directly instead. This is why --calib_parquet* is used rather
than the task-based flags.
The SM8650 compile emitted temporary AIMET files whose names contain
Qwen3_4B_Instruct_2507. That is a naming artifact of the shared quantization
harness — both the invocation and the log identify llama3_2-3b_instruct with
Llama3_3BQuantRecipe. The produced PTE is Llama-3.2-3B.
python executorch/examples/qualcomm/oss_scripts/llama/llama.py \
--artifact <out> --build_folder <android-build> \
--soc_model SM8750 --backend htp \
--decoder_model llama3_2-3b_instruct \
--checkpoint <Llama-3.2-3B-Instruct>/original/consolidated.00.pth \
--params <Llama-3.2-3B-Instruct>/original/params.json \
--tokenizer_model <Llama-3.2-3B-Instruct>/original/tokenizer.model \
--model_mode hybrid --prefill_ar_len 128 \
--max_seq_len 2048 --max_context_len 2048 --temperature 0 \
--calib_parquet <wikitext-2-raw-v1-train.parquet> \
--calib_parquet_column page --calib_parquet_limit 128 \
--prompt "Reply with one word." --compile_only
The export peaks around 80 GiB host RSS and writes a ~19.9 GiB QDQ intermediate
plus a ~34 GiB compiler temp tree; point TMPDIR at fast storage with room for
both. Verify the result by checking bytes 4–7 for ET12 — not bytes 0–3,
which is the FlatBuffer size prefix, not the identifier.
On device, ADSP_LIBRARY_PATH must include the runner directory alongside the
platform DSP paths or QNN device creation fails with 14001. Launch under
setsid nohup so the device process survives host-side adb teardown.
Intended for a serial-arrival, single-request latency comparison across on-device inference frameworks: batch size 1, no continuous batching, no speculative decoding. Accuracy was not evaluated.