Downloads · 30 days
0
Hosstia/albert-tiny-chinese-ner-onnx
albert-tiny-chinese-ner-onnx is a token classification model from Hosstia. Use it when you need labels on individual words, such as names. The card lists the license as gpl-3.0.
INT8 quantized ONNX export of ckiplab/albert-tiny-chinese-ner for token-classification (NER) tasks.
Downloads · 30 days
0
Access
Public
Updated Jul 25, 2026
Repo size
8.8 MB
Likes
0
Public
Click a slice to open those files.
.onnx8.8 MB · 99%
From the Hugging Face model README
INT8 quantized ONNX export of ckiplab/albert-tiny-chinese-ner for token-classification (NER) tasks.
model_int8.onnx — INT8 quantized ONNX modelvocab.txt — WordPiece vocabularylabels.txt — NER label set (line N = label ID N)import onnxruntime as ort
import numpy as np
session = ort.InferenceSession("model_int8.onnx")
inputs = {
"input_ids": np.array([[...]], dtype=np.int64),
"attention_mask": np.array([[...]], dtype=np.int64),
"token_type_ids": np.array([[...]], dtype=np.int64),
}
logits = session.run(None, inputs)[0] # (batch, seq_len, num_labels)