This is a LoRA (Low-Rank Adaptation) fine-tuned model based on bert-base-uncased 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
google-bert/bert-base-uncased