Downloads · 30 days
3.6K
6% of all-time downloads
vllm-sr/mmbert32k-intent-classifier-merged
mmbert32k-intent-classifier-merged is a text classification model from vllm-sr. Use it when you need a label for a piece of text. The card lists the license as apache-2.0.
Full merged model for intent classification based on mmBERT-32K-YaRN (32K context, multilingual). This is the LoRA adapter merged with the base model for direct inference without PEFT.
Downloads · 30 days
3.6K
6% of all-time downloads
All-time downloads
61.8K
Public
Parameters
308M
6.2 GB on disk
Likes
3
Public
Click a slice to open those files.
.onnx3.1 GB · 70%
From the Hugging Face model README
Full merged model for intent classification based on mmBERT-32K-YaRN (32K context, multilingual). This is the LoRA adapter merged with the base model for direct inference without PEFT.
biology, business, chemistry, computer science, economics, engineering, health, history, law, math, other, philosophy, physics, psychology
| Metric | Score |
|---|---|
| Test Accuracy | 80.0% |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
model = AutoModelForSequenceClassification.from_pretrained("vllm-sr/mmbert32k-intent-classifier-merged")
tokenizer = AutoTokenizer.from_pretrained("vllm-sr/mmbert32k-intent-classifier-merged")
# Inference
inputs = tokenizer("How do neural networks learn?", return_tensors="pt")
with torch.no_grad():
outputs = model(**inputs)
probs = torch.softmax(outputs.logits, dim=1)
predicted_class = probs.argmax().item()
confidence = probs[0][predicted_class].item()
# Get label
print(f"Category: {model.config.id2label[str(predicted_class)]}, Confidence: {confidence:.2%}")
This merged model is compatible with the candle-binding Rust library for high-performance inference in production systems.