ONNX Model Zoo

broadfield-dev/Qwen3-0.6B-1767563653-onnx

By broadfield-dev · ↓ 0 · ♥ 0 · Updated 2026-01-04

What's in this repo

This page lists the files in broadfield-dev/Qwen3-0.6B-1767563653-onnx, including model.onnx.

  • 1 ONNX models (.onnx files)
  • 13 files, including 7 .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

text-generation transformers
transformers onnx qwen3 text-generation onnxruntime tokenizers optimum conversational en base_model:Qwen/Qwen3-0.6B base_model:quantized:Qwen/Qwen3-0.6B endpoints_compatible
↓ 0 ♥ 0

Created: 2026-01-04

Updated: 2026-01-04

View on Hugging Face

Files (13)

.gitattributes
README.md
added_tokens.json
chat_template.jinja
config.json
generation_config.json
merges.txt
model.onnx ONNX
model.onnx_data
special_tokens_map.json
tokenizer.json
tokenizer_config.json
vocab.json

Related models