llm-semantic-router / mmbert-feedback-detector-lora

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

Introduction of mmbert-feedback-detector-lora

Model Details of mmbert-feedback-detector-lora

mmBERT Feedback Detector (LoRA Adapter)

A multilingual 4-class user feedback classifier built on jhu-clsp/mmBERT-base . This is the LoRA adapter version for parameter-efficient fine-tuning and inference.

Model Description

This model uses LoRA (Low-Rank Adaptation) for efficient fine-tuning, reducing trainable parameters to just 1.09% of the full model while maintaining high performance.

For the merged version (ready for direct inference), see llm-semantic-router/mmbert-feedback-detector-merged .

Labels
Label ID Description
SAT 0 User is satisfied with the response
NEED_CLARIFICATION 1 User needs more explanation or clarification
WRONG_ANSWER 2 User indicates the response is incorrect
WANT_DIFFERENT 3 User wants alternative options or different response
Performance
Metric Score
Accuracy 96.89%
F1 Macro 96.88%
F1 Weighted 96.88%
Per-Class Performance
Class F1 Score
SAT 100.0%
NEED_CLARIFICATION 99.7%
WRONG_ANSWER 94.0%
WANT_DIFFERENT 93.8%
LoRA Configuration
Parameter Value
Rank (r) 16
Alpha 32
Target Modules query, key, value, dense
Dropout 0.1
Trainable Params 3.38M (1.09%)
Total Params 310.9M
Multilingual Support

Thanks to mmBERT's multilingual pretraining (256k vocabulary, 100+ languages), this model achieves excellent cross-lingual transfer:

Language Accuracy
🇺🇸 English 100%
🇪🇸 Spanish 100%
🇫🇷 French 100%
🇩🇪 German 100%
🇨🇳 Chinese 100%
🇯🇵 Japanese 100%
🇰🇷 Korean 100%
🇸🇦 Arabic 100%
Usage
With PEFT
from peft import PeftModel, PeftConfig
from transformers import AutoModelForSequenceClassification, AutoTokenizer
import torch

# Load base model and LoRA adapter
base_model_name = "jhu-clsp/mmBERT-base"
adapter_name = "llm-semantic-router/mmbert-feedback-detector-lora"

# Load tokenizer
tokenizer = AutoTokenizer.from_pretrained(adapter_name)

# Load base model
base_model = AutoModelForSequenceClassification.from_pretrained(
    base_model_name,
    num_labels=4,
    trust_remote_code=True
)

# Load LoRA adapter
model = PeftModel.from_pretrained(base_model, adapter_name)
model.eval()

# Classify feedback
text = "Thanks, that's exactly what I needed!"
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=512)

with torch.no_grad():
    outputs = model(**inputs)
    probs = torch.softmax(outputs.logits, dim=-1)
    pred = probs.argmax().item()

labels = ["SAT", "NEED_CLARIFICATION", "WRONG_ANSWER", "WANT_DIFFERENT"]
print(f"Prediction: {labels[pred]} ({probs[0][pred]:.1%})")
Merge and Save
from peft import PeftModel
from transformers import AutoModelForSequenceClassification, AutoTokenizer

# Load and merge
base_model = AutoModelForSequenceClassification.from_pretrained(
    "jhu-clsp/mmBERT-base",
    num_labels=4,
    trust_remote_code=True
)
model = PeftModel.from_pretrained(base_model, "llm-semantic-router/mmbert-feedback-detector-lora")
merged_model = model.merge_and_unload()

# Save merged model
merged_model.save_pretrained("./merged_model")
tokenizer = AutoTokenizer.from_pretrained("llm-semantic-router/mmbert-feedback-detector-lora")
tokenizer.save_pretrained("./merged_model")
Continue Fine-tuning
from peft import PeftModel, get_peft_model, LoraConfig
from transformers import AutoModelForSequenceClassification

# Load existing adapter
base_model = AutoModelForSequenceClassification.from_pretrained(
    "jhu-clsp/mmBERT-base",
    num_labels=4,
    trust_remote_code=True
)
model = PeftModel.from_pretrained(base_model, "llm-semantic-router/mmbert-feedback-detector-lora")

# Continue training with your data
# model.train()
# ... training code ...
Training Details
Use Cases
  • Conversational AI : Understand if users are satisfied with chatbot responses
  • Customer Support : Route dissatisfied users to human agents
  • Quality Monitoring : Track response quality across languages
  • Feedback Analysis : Categorize user feedback automatically
  • Continued Fine-tuning : Adapt to domain-specific feedback patterns
Advantages of LoRA
  • Storage Efficient : Only ~13MB adapter vs ~1.2GB full model
  • Fast Training : Train in minutes on consumer GPUs
  • Composable : Stack with other adapters
  • Base Model Updates : Benefit from base model improvements
Related Models
Citation
@misc{mmbert-feedback-detector-lora,
  title={mmBERT Feedback Detector LoRA Adapter},
  author={vLLM Semantic Router Team},
  year={2025},
  publisher={Hugging Face},
  url={https://huggingface.co/llm-semantic-router/mmbert-feedback-detector-lora}
}
License

Apache 2.0

Runs of llm-semantic-router mmbert-feedback-detector-lora on huggingface.co

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

More Information About mmbert-feedback-detector-lora huggingface.co Model

More mmbert-feedback-detector-lora license Visit here:

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

mmbert-feedback-detector-lora huggingface.co

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

llm-semantic-router mmbert-feedback-detector-lora online free

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

llm-semantic-router mmbert-feedback-detector-lora online free url in huggingface.co:

https://huggingface.co/llm-semantic-router/mmbert-feedback-detector-lora

mmbert-feedback-detector-lora install

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

mmbert-feedback-detector-lora install url in huggingface.co:

https://huggingface.co/llm-semantic-router/mmbert-feedback-detector-lora

Url of mmbert-feedback-detector-lora

Provider of mmbert-feedback-detector-lora huggingface.co

llm-semantic-router
ORGANIZATIONS

Other API from llm-semantic-router