broadfield-dev/Qwen3-0.6B-onnx
By broadfield-dev · ↓ 1 · ♥ 0 · Updated 2026-01-04
What's in this repo
This page lists the files in broadfield-dev/Qwen3-0.6B-onnx, including model.onnx.
- 1 ONNX models (.onnx files)
- 14 files, including 8 .json, 1 .md, 1 .jinja, 1 .txt, 1 .onnx, 1 .onnx_data
- Last updated 2026-01-04
ONNX files
| File | Size | Download |
|---|---|---|
| model.onnx | — | Download |
How to use
These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.
README
ONNX Export: Qwen/Qwen3-0.6B
This is a version of Qwen/Qwen3-0.6B that has been converted to ONNX and optimized.
Model Details
- Base Model:
Qwen/Qwen3-0.6B - Task:
text-generation - Opset Version:
17 - Optimization:
FP32 (No Quantization)
Usage
Installation
For a lightweight mobile/serverless setup, you only need onnxruntime and tokenizers.
pip install onnxruntime tokenizers optimum
Python Example
from tokenizers import Tokenizer
import onnxruntime as ort
import numpy as np
# 1. Load the lightweight tokenizer (No Transformers dependency needed)
tokenizer = Tokenizer.from_pretrained("broadfield-dev/Qwen3-0.6B-onnx")
# 2. Load the ONNX model
# For Generative/Chat models, use: optimum.onnxruntime.ORTModelForCausalLM
session = ort.InferenceSession("model.onnx")
# 3. Preprocess (Simple text encoding)
text = "Run inference on mobile!"
encoding = tokenizer.encode(text)
# Prepare inputs (Exact names vary by model, usually input_ids + attention_mask)
inputs = {
"input_ids": np.array([encoding.ids], dtype=np.int64),
"attention_mask": np.array([encoding.attention_mask], dtype=np.int64)
}
# 4. Run Inference
outputs = session.run(None, inputs)
print("Output logits shape:", outputs[0].shape)
About this Export
This model was exported using Optimum.
It includes the FP32 (No Quantization) quantization settings and a pre-compiled tokenizer.json for fast loading.
Model info
Created: 2026-01-04
Updated: 2026-01-04
View on Hugging Face