Downloads · 30 days
38
12% of all-time downloads
larryliu0820/Qwen3-1.7B-INT8-INT4-ExecuTorch-XNNPACK
Qwen3-1.7B-INT8-INT4-ExecuTorch-XNNPACK is a text generation model from larryliu0820. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
This folder contains an ExecuTorch .pte export of Qwen/Qwen3-1.7B for CPU inference via the XNNPACK backend, with post-training quantization enabled.
Downloads · 30 days
38
12% of all-time downloads
All-time downloads
319
Public
Repo size
1.3 GB
Likes
0
Public
Click a slice to open those files.
.pte1.3 GB · 99%
From the Hugging Face model README
This folder contains an ExecuTorch .pte export of Qwen/Qwen3-1.7B for CPU inference via the XNNPACK backend, with post-training quantization enabled.
model.pte: ExecuTorch programtokenizer.json, vocab.json, merges.txt: tokenizer artifactsconfig.json, generation_config.json, tokenizer_config.json: metadata files from the upstream Hugging Face repoExport flags:
--qlinear 8da4w: linear layers use 8-bit dynamic activations + 4-bit weights--qembedding 8w: embeddings use 8-bit weightsOther export settings:
text-generationxnnpack--use_custom_sdpa --use_custom_kv_cacheTooling versions used to generate these artifacts:
executorch==1.2.0a0+d265acf (git d265acfb63)optimum-executorch==0.2.0.dev0 (git 4c62ed77)Command used:
optimum-cli export executorch \
--model "Qwen/Qwen3-1.7B" \
--task "text-generation" \
--recipe "xnnpack" \
--use_custom_sdpa \
--use_custom_kv_cache \
--qlinear "8da4w" \
--qembedding "8w" \
--output_dir "<output_dir>"
Build the runner from the ExecuTorch repo root:
make llama-cpu
Binary: cmake-out/examples/models/llama/llama_main
cmake-out/examples/models/llama/llama_main \
--model_path "model.pte" \
--tokenizer_path "tokenizer.json" \
--prompt "Simply put, the theory of relativity states that" \
--max_new_tokens 48 \
--temperature 0