玩模型开放模型 · 清晰来源 · 自主选择
返回模型目录
llm-semantic-router /

lora_jailbreak_classifier_modernbert-base_model

HF 源站

llm-semantic-router/lora_jailbreak_classifier_modernbert-base_model is an uncensored open-source model hosted on Hugging Face.

safetensorsEnglishLicense: apache-2.0candlemodernbertlorasemantic-routerclassification-classificationtext-classificationrust
README.md说明 / 使用方法

license: apache-2.0 base_model: bert-base-uncased tags:

  • lora
  • semantic-router
  • classification-classification
  • text-classification
  • candle
  • rust language:
  • en pipeline_tag: text-classification library_name: candle

lora_jailbreak_classifier_modernbert-base_model

Model Description

This is a LoRA (Low-Rank Adaptation) fine-tuned model based on bert-base-uncased for Multi-task classification.

This model is part of the semantic-router project and is optimized for use with the Candle framework in Rust.

Model Details

  • Base Model: bert-base-uncased
  • Task: Classification Classification
  • Framework: Candle (Rust)
  • Model Size: ~571MB
  • LoRA Rank: 32
  • LoRA Alpha: 64
  • Target Modules: attn.Wqkv, attn.Wo, mlp.Wi, mlp.Wo

Usage

With semantic-router (Recommended)

from semantic_router import SemanticRouter

# The model will be automatically downloaded and used
router = SemanticRouter()
results = router.classify_batch(["Your text here"])

With Candle (Rust)

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)?;

Training Details

This model was fine-tuned using LoRA (Low-Rank Adaptation) technique:

  • Rank: 32
  • Alpha: 64
  • Dropout: 0.1
  • Target Modules: attn.Wqkv, attn.Wo, mlp.Wi, mlp.Wo

Performance

Multi-task classification

For detailed performance metrics, see the training results.

Files

  • model.safetensors: LoRA adapter weights
  • config.json: Model configuration
  • lora_config.json: LoRA-specific configuration
  • tokenizer.json: Tokenizer configuration
  • label_mapping.json: Label mappings for classification

Citation

If 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}
}

License

Apache 2.0

HUGGING FACE

上游数据

HF 下载量59
HF 点赞量0

HF 下载量为源站最近 30 天统计,与本站点击分开。

SITE STATS

本站统计

下载点击—
请求数—
匿名去重—最近 7 天—

本站下载量记录按钮点击,不代表下载完成;短时连点会去重。

来源与版本

作者
llm-semantic-router
最近更新
2025/09/13
最新创建
2025/09/13
HF 趋势
未知
数据快照
2026/09/17
版本
未知
许可证
apache-2.0