Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

dannyliv
/
agent-guard-modernbert-base

Text Classification
Transformers
ONNX
Safetensors
English
modernbert
prompt-injection
guardrail
security
lora
agent-safety
owasp-llm-top-10
mitre-atlas
Eval Results (legacy)
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use dannyliv/agent-guard-modernbert-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use dannyliv/agent-guard-modernbert-base with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-classification", model="dannyliv/agent-guard-modernbert-base")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("dannyliv/agent-guard-modernbert-base")
    model = AutoModelForSequenceClassification.from_pretrained("dannyliv/agent-guard-modernbert-base")
  • Notebooks
  • Google Colab
  • Kaggle
agent-guard-modernbert-base
1.22 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 61 commits
dannyliv's picture
dannyliv
docs: drop 'stated honestly' phrasing from card heading
950afbb verified 21 days ago
  • adapter
    Move V3.2 adapter to adapter/ subfolder so root loads the merged model directly 22 days ago
  • onnx
    Ship V3.2: GCG-hardened weights, merged model + ONNX rebuild, honest FPR disclosure 22 days ago
  • .gitattributes
    1.52 kB
    initial commit 26 days ago
  • README.md
    13.6 kB
    docs: drop 'stated honestly' phrasing from card heading 21 days ago
  • config.json
    2.08 kB
    Ship V3.2: GCG-hardened weights, merged model + ONNX rebuild, honest FPR disclosure 22 days ago
  • model.safetensors
    598 MB
    xet
    Ship V3.2: GCG-hardened weights, merged model + ONNX rebuild, honest FPR disclosure 22 days ago
  • special_tokens_map.json
    694 Bytes
    Ship V3.2: GCG-hardened weights, merged model + ONNX rebuild, honest FPR disclosure 22 days ago
  • tokenizer.json
    3.58 MB
    Ship V3.2: GCG-hardened weights, merged model + ONNX rebuild, honest FPR disclosure 22 days ago
  • tokenizer_config.json
    20.8 kB
    Ship V3.2: GCG-hardened weights, merged model + ONNX rebuild, honest FPR disclosure 22 days ago