Downloads · 30 days
0
HikmaAI/hikmaai-mdeberta-v3-base-xnli-multilingual
hikmaai-mdeberta-v3-base-xnli-multilingual is a zero-shot classification model from HikmaAI. Use it when you need labels you did not train the model on. It is set up for onnx. The card lists the license as mit.
ONNX repackaging of a multilingual zero-shot NLI model, published for the TOPICALML input control in hikma-mirsad. It scores an input prompt against operator-defined topic labels via zero-shot Natural Language Inference.
Downloads · 30 days
0
Access
Public
Updated Jul 25, 2026
Repo size
2 GB
Likes
1
Public
Click a slice to open those files.
.onnx2 GB · 99%
From the Hugging Face model README
ONNX repackaging of a multilingual zero-shot NLI model, published for the TOPICALML input control in hikma-mirsad. It scores an input prompt against operator-defined topic labels via zero-shot Natural Language Inference.
MoritzLaurer/mDeBERTa-v3-base-mnli-xnli (MIT).scripts/export_xnli_onnx.py in hikma-mirsad (optimum main_export, opset 17; INT8 dynamic quant for CPU, FP16 for GPU).Zero-shot topic classification is run as NLI: premise = the user prompt, hypothesis =
"This text is about <label>.". The gateway takes softmax over the entailment vs
contradiction logits (neutral is ignored); the entailment probability is the on-topic score.
The Go scorer (internal/topicalml/scorer.go) depends on this contract, validated at export:
input_ids + attention_mask (mDeBERTa-v3 has type_vocab_size=0, so no token_type_ids).0=entailment, 1=neutral, 2=contradiction.Sanity (premise about weapons): P(entailment | "about weapons") = 0.998, P(entailment | "about cooking") = 0.001.
| Path | Precision | Use |
|---|---|---|
onnx/int8/model_quantized.onnx | INT8 dynamic-quant | CPU (edge/hub hot path) |
onnx/fp16/model.onnx | FP16 | GPU (CUDA execution provider) |
onnx/fp32/model.onnx | FP32 | source for re-quantization |
onnx/int8/tokenizer.json | — | fast tokenizer (loaded by the gateway) |
The classifier scores topic presence, not intent: a benign text discussing a blocked topic (e.g. an essay arguing against weapons) scores on-topic. TOPICALML defaults to shadow and requires a calibrated threshold before enforcing.