Views
No views yet
1from semantic_router import SemanticRouter
2
3# The model will be automatically downloaded and used
4router = SemanticRouter()
5results = router.classify_batch(["Your text here"])1use candle_core::{Device, Tensor};
2use candle_transformers::models::bert::BertModel;
3
4// Load the model using Candle
5let device = Device::Cpu;
6let model = BertModel::load(&device, &config, &weights)?;model.safetensors: LoRA adapter weightsconfig.json: Model configurationlora_config.json: LoRA-specific configurationtokenizer.json: Tokenizer configurationlabel_mapping.json: Label mappings for classification1@misc{semantic-router-lora,
2 title={LoRA Fine-tuned Models for Semantic Router},
3 author={Semantic Router Team},
4 year={2025},
5 url={https://github.com/vllm-project/semantic-router}
6}