Downloads · 30 days
62
2% of all-time downloads
llm-semantic-router/lora_intent_classifier_roberta-base_model
lora_intent_classifier_roberta-base_model is a text classification model from llm-semantic-router. Use it when you need a label for a piece of text. It is set up for candle. The card lists the license as apache-2.0.
This is a LoRA (Low-Rank Adaptation) fine-tuned model based on roberta-base for Intent Classification - Classifies text into categories like business, technology, science, etc..
Downloads · 30 days
62
2% of all-time downloads
All-time downloads
2.8K
Public
Parameters
125M
997 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors499 MB · 99%
From the Hugging Face model README
This is a LoRA (Low-Rank Adaptation) fine-tuned model based on roberta-base for Intent Classification - Classifies text into categories like business, technology, science, etc..
This model is part of the semantic-router project and is optimized for use with the Candle framework in Rust.
from semantic_router import SemanticRouter
# The model will be automatically downloaded and used
router = SemanticRouter()
results = router.classify_batch(["Your text here"])
use candle_core::{Device, Tensor};
use candle_transformers::models::bert::BertModel;
// Load the model using Candle
let device = Device::Cpu;
let model = BertModel::load(&device, &config, &weights)?;
This model was fine-tuned using LoRA (Low-Rank Adaptation) technique:
Intent Classification - Classifies text into categories like business, technology, science, etc.
For detailed performance metrics, see the training results.
model.safetensors: LoRA adapter weightsconfig.json: Model configurationlora_config.json: LoRA-specific configurationtokenizer.json: Tokenizer configurationlabel_mapping.json: Label mappings for classificationIf you use this model, please cite:
@misc{semantic-router-lora,
title={LoRA Fine-tuned Models for Semantic Router},
author={Semantic Router Team},
year={2025},
url={https://github.com/vllm-project/semantic-router}
}
Apache 2.0