Downloads · 30 days
100
16% of all-time downloads
liodon-ai/Qwen2.5-0.5B-Instruct-ONNX
Qwen2.5-0.5B-Instruct-ONNX is a text generation model from liodon-ai. Use it when you need the model to write or continue text. It is set up for onnx. The card lists the license as apache-2.0.
ONNX export of Qwen/Qwen2.5-0.5B-Instruct, published by Liodon AI. Exported with optimum (optimum.exporters.onnx.mainexport, task text-generation-with-past, so the graph exposes past-key-value inputs/outputs for KV-ca…
Downloads · 30 days
100
16% of all-time downloads
All-time downloads
615
Public
Repo size
3.2 GB
Likes
0
Public
Click a slice to open those files.
.onnx_data2.5 GB · 80%
From the Hugging Face model README
ONNX export of Qwen/Qwen2.5-0.5B-Instruct, published by Liodon AI.
Exported with optimum (optimum.exporters.onnx.main_export,
task text-generation-with-past, so the graph exposes past-key-value inputs/outputs for KV-cached
autoregressive decoding).
| File | Size | Notes |
|---|---|---|
model.onnx | 0.00 GB | FP32, full precision |
model_quantized.onnx | 0.63 GB | Dynamic INT8 (weight-only, no calibration) |
import onnxruntime as ort
from transformers import AutoTokenizer
tok = AutoTokenizer.from_pretrained("liodon-ai/Qwen2.5-0.5B-Instruct-ONNX")
sess = ort.InferenceSession("model_quantized.onnx", providers=["CPUExecutionProvider"])
# past_key_values.*.key / .value inputs must be supplied (zero-length tensors
# for the first forward pass) -- see optimum's ORTModelForCausalLM for a
# ready-made wrapper that handles KV-cache bookkeeping automatically:
# from optimum.onnxruntime import ORTModelForCausalLM
# model = ORTModelForCausalLM.from_pretrained("liodon-ai/Qwen2.5-0.5B-Instruct-ONNX", file_name="model_quantized.onnx")
Exported by Liodon AI