llm-semantic-router / mmbert-fact-check-lora

huggingface.co
Total runs: 1
24-hour runs: 0
7-day runs: 0
30-day runs: -1
Model's Last Updated: January 12 2026
text-classification

Introduction of mmbert-fact-check-lora

Model Details of mmbert-fact-check-lora

mmBERT Fact-Check Classifier (LoRA Adapter)

A multilingual binary classifier that determines whether a query requires external fact-checking or can be answered without verification.

Model Description

This model classifies prompts into two categories:

  • FACT_CHECK_NEEDED : Information-seeking questions requiring external verification
  • NO_FACT_CHECK_NEEDED : Creative, opinion, coding, math - no verification needed

Supports 1800+ languages through mmBERT's multilingual pretraining.

Performance
Metric Score
Accuracy 96.2%
F1 96.2%
Precision 96.2%
Recall 96.2%
Training Time 151 seconds (MI300X GPU)
Training Details
  • Base Model : jhu-clsp/mmBERT-base
  • LoRA Rank : 32
  • LoRA Alpha : 64
  • Trainable Parameters : 6.8M / 314M (2.2%)
  • Epochs : 10
  • Batch Size : 64
  • Learning Rate : 2e-5
Training Data Sources

FACT_CHECK_NEEDED:

  • SQuAD, TriviaQA, HotpotQA, TruthfulQA, CoQA
  • HaluEval QA, RAG dataset questions

NO_FACT_CHECK_NEEDED:

  • Dolly (creative_writing, brainstorming)
  • WritingPrompts, Alpaca (coding, math, opinion)
Usage
from peft import PeftModel
from transformers import AutoModelForSequenceClassification, AutoTokenizer

# Load model
base_model = AutoModelForSequenceClassification.from_pretrained(
    "jhu-clsp/mmBERT-base", num_labels=2
)
model = PeftModel.from_pretrained(base_model, "llm-semantic-router/mmbert-fact-check-lora")
tokenizer = AutoTokenizer.from_pretrained("jhu-clsp/mmBERT-base")

# Classify
queries = [
    "When was the Eiffel Tower built?",  # FACT_CHECK_NEEDED
    "Write a poem about the ocean",       # NO_FACT_CHECK_NEEDED
]

for query in queries:
    inputs = tokenizer(query, return_tensors="pt", truncation=True)
    outputs = model(**inputs)
    label = "FACT_CHECK_NEEDED" if outputs.logits.argmax(-1).item() == 1 else "NO_FACT_CHECK_NEEDED"
    print(f"{query} -> {label}")
Use Cases
  • LLM Guardrails : Route factual queries to RAG systems
  • Hallucination Prevention : Flag queries needing external verification
  • Cost Optimization : Skip expensive retrieval for creative/coding tasks
Part of vLLM Semantic Router

This model is part of the vLLM Semantic Router project.

License

Apache 2.0

Runs of llm-semantic-router mmbert-fact-check-lora on huggingface.co

1
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
-1
30-day runs

More Information About mmbert-fact-check-lora huggingface.co Model

More mmbert-fact-check-lora license Visit here:

https://choosealicense.com/licenses/apache-2.0

mmbert-fact-check-lora huggingface.co

mmbert-fact-check-lora huggingface.co is an AI model on huggingface.co that provides mmbert-fact-check-lora's model effect (), which can be used instantly with this llm-semantic-router mmbert-fact-check-lora model. huggingface.co supports a free trial of the mmbert-fact-check-lora model, and also provides paid use of the mmbert-fact-check-lora. Support call mmbert-fact-check-lora model through api, including Node.js, Python, http.

llm-semantic-router mmbert-fact-check-lora online free

mmbert-fact-check-lora huggingface.co is an online trial and call api platform, which integrates mmbert-fact-check-lora's modeling effects, including api services, and provides a free online trial of mmbert-fact-check-lora, you can try mmbert-fact-check-lora online for free by clicking the link below.

llm-semantic-router mmbert-fact-check-lora online free url in huggingface.co:

https://huggingface.co/llm-semantic-router/mmbert-fact-check-lora

mmbert-fact-check-lora install

mmbert-fact-check-lora is an open source model from GitHub that offers a free installation service, and any user can find mmbert-fact-check-lora on GitHub to install. At the same time, huggingface.co provides the effect of mmbert-fact-check-lora install, users can directly use mmbert-fact-check-lora installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

mmbert-fact-check-lora install url in huggingface.co:

https://huggingface.co/llm-semantic-router/mmbert-fact-check-lora

Url of mmbert-fact-check-lora

Provider of mmbert-fact-check-lora huggingface.co

llm-semantic-router
ORGANIZATIONS

Other API from llm-semantic-router