Ordicio toxicity classifier (ONNX, int8)
An int8 ONNX export of textdetox/bert-multilingual-toxicity-classifier for on-device inference in the Ordicio apps (ONNX Runtime on Android / iOS, onnxruntime-web in browsers).
manifest.json: the current version, file hashes, tokenizer settings, labels and threshold.v1/model.onnx: weights quantized to int8 (dynamic quantization), inputsinput_ids,attention_mask,token_type_idsas int32 (cast to int64 inside the graph), outputlogits(index 0 neutral, 1 toxic).v1/vocab.txt: the WordPiece vocabulary of the base model (cased, no lowercasing).
The int8 model agrees with the fp32 model on 98.5 % of decisions (3600 samples of textdetox/multilingual_toxicity_dataset in 12 languages). For accuracy per language, see the base model's card: German results are weak (F1 0.52).
The use restrictions of the openrail++ license of the base model apply to this export.
Model tree for ordicio/toxicity-classifier
Base model
google-bert/bert-base-multilingual-cased