Views
No views yet
MoritzLaurer/mDeBERTa-v3-base-mnli-xnli (DeBERTa-v2 NLI cross-encoder), quantized for CPU inference as the NLI entailment scorer (entailment = class index 0) in a single-engine semantic grounding pipeline. The int8 preserves the fp32 max-over-chunks grounding signal at pearson 0.9863 (full-gold 0.9841) - no measurable quality loss.MoritzLaurer/mDeBERTa-v3-base-mnli-xnli (DeBERTa-v2 NLI cross-encoder)openvino_model.xml + openvino_model.bin), int81from huggingface_hub import snapshot_download
2import numpy as np, openvino as ov
3from transformers import AutoTokenizer
4
5d = snapshot_download("stellars/mdeberta-v3-base-mnli-xnli-openvino-int8")
6core = ov.Core()
7model = core.compile_model(core.read_model(f"{d}/openvino_model.xml"), "CPU")
8tok = AutoTokenizer.from_pretrained(d)
9
10enc = tok(["a sentence"], ["another sentence"], return_tensors="np",
11 padding=True, truncation=True, max_length=512)
12feed = {"input_ids": enc["input_ids"].astype(np.int64),
13 "attention_mask": enc["attention_mask"].astype(np.int64)}
14logits = model(feed)[model.output(0)]optimum-intelmit license of the base model.