Downloads · 30 days
0
Hug0007/qwen3-1.7b-int4-onnx-genai
qwen3-1.7b-int4-onnx-genai is a text generation model from Hug0007. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
Conversion of Qwen/Qwen3-1.7B to the ONNX Runtime GenAI format, quantised to INT4 for CPU execution. Built for the on-device assistant in Diarion, an offline diary application; published because no INT4 ORT-GenAI buil…
Downloads · 30 days
0
Access
Public
Updated Aug 5, 2026
Repo size
1.1 GB
Likes
0
Public
Click a slice to open those files.
.data1.1 GB · 99%
From the Hugging Face model README
Conversion of Qwen/Qwen3-1.7B to the ONNX Runtime GenAI format, quantised to INT4 for CPU execution. Built for the on-device assistant in Diarion, an offline diary application; published because no INT4 ORT-GenAI build of this model existed.
Nothing about the model's weights or behaviour was changed beyond quantisation.
| File | Purpose |
|---|---|
genai_config.json | Runtime configuration; the folder is loaded as a whole |
model.onnx + model.onnx.data | Graph and weights, ~1.1 GB together |
tokenizer.json, tokenizer_config.json | Tokeniser |
chat_template.jinja | Chat template — required; without it the model continues the prompt instead of answering |
pip install onnxruntime-genai==0.15.1 onnx onnx_ir torch transformers
python -m onnxruntime_genai.models.builder \
-i ./Qwen3-1.7B -o ./qwen3-1.7b-int4 -p int4 -e cpu
Builder 0.15.x is required: 0.14.1 segfaults on this model immediately after loading weights. The output loads and runs correctly under the 0.14.1 runtime, so an application may pin the older runtime and still use this build.
/no_think to suppress <think> blocks.repetition_penalty=1.1 and greedy decoding.Apache-2.0, inherited from the base model.