Downloads · 30 days
77
18% of all-time downloads
vllm-sr/mmbert32k-intent-classifier-lora
mmbert32k-intent-classifier-lora is a text classification model from vllm-sr. Use it when you need a label for a piece of text. It is set up for peft. The card lists the license as apache-2.0.
LoRA adapter for intent classification based on mmBERT-32K-YaRN (32K context, multilingual).
Downloads · 30 days
77
18% of all-time downloads
All-time downloads
427
Public
Repo size
164 MB
Likes
2
Trending 1
Click a slice to open those files.
.json34.4 MB · 56%
From the Hugging Face model README
LoRA adapter for intent classification based on mmBERT-32K-YaRN (32K context, multilingual).
biology, business, chemistry, computer science, economics, engineering, health, history, law, math, other, philosophy, physics, psychology
| Metric | Score |
|---|---|
| Test Accuracy | 80.0% |
| Adapter Size | 27 MB |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
from peft import PeftModel
# Load base model and LoRA adapter
base_model = AutoModelForSequenceClassification.from_pretrained(
"vllm-sr/mmbert-32k-yarn", num_labels=14
)
model = PeftModel.from_pretrained(base_model, "vllm-sr/mmbert32k-intent-classifier-lora")
tokenizer = AutoTokenizer.from_pretrained("vllm-sr/mmbert32k-intent-classifier-lora")
# Inference
inputs = tokenizer("How do neural networks learn?", return_tensors="pt")
outputs = model(**inputs)
predicted_class = outputs.logits.argmax().item()