aryasuneesh-quilr/hybrid-intent-crossencoder-deberta-v3-base
060
hybrid-intent-crossencoder-deberta-v3-base
Cross-encoder reranker for enterprise intent detection (DLP / security). Fine-tuned from cross-encoder/nli-deberta-v3-base on a hybrid synthetic intent-detection dataset.
Input format
user_input [SEP] intent_descriptionPerformance (held-out test set, threshold=0.3)
Training config
Inference snippet
import torch
from transformers import AutoTokenizer, AutoModelForSequenceClassification
model_id = "aryasuneesh-quilr/hybrid-intent-crossencoder-deberta-v3-base"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForSequenceClassification.from_pretrained(model_id)
model.eval()
def score(user_input: str, intent_description: str) -> float:
pair = f"{user_input} [SEP] {intent_description}"
enc = tokenizer(pair, return_tensors="pt", truncation=True, max_length=256)
with torch.no_grad():
logits = model(**enc).logits
return torch.softmax(logits, dim=1)[0, 1].item() # P(match)
# Example
s = score(
"Our AWS_SECRET_ACCESS_KEY was found in a public repo",
"Identify exposure of authentication credentials or API keys"
)
print(f"Match probability: {s:.4f}") # use threshold 0.7188 for best F1Files in this repo
Generated 2026-02-24 10:19 UTC by ablation_reranker_training.py
