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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

nuhmanpk
/
gatekeeper-base

Text Classification
Transformers
ONNX
Safetensors
Transformers.js
English
modernbert
gatekeeper
prompt-injection
jailbreak-detection
llm-security
guardrails
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use nuhmanpk/gatekeeper-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use nuhmanpk/gatekeeper-base with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-classification", model="nuhmanpk/gatekeeper-base")
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("nuhmanpk/gatekeeper-base")
    model = AutoModelForSequenceClassification.from_pretrained("nuhmanpk/gatekeeper-base", device_map="auto")
  • Transformers.js

    How to use nuhmanpk/gatekeeper-base with Transformers.js:

    // npm i @huggingface/transformers
    import { pipeline } from '@huggingface/transformers';
    
    // Allocate pipeline
    const pipe = await pipeline('text-classification', 'nuhmanpk/gatekeeper-base');
  • Notebooks
  • Google Colab
  • Kaggle
gatekeeper-base
1.35 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 5 commits
nuhmanpk's picture
nuhmanpk
Gatekeeper model card with benchmark results
0049558 verified 8 days ago
  • onnx
    Gatekeeper ONNX (fp32 + int8) 8 days ago
  • .gitattributes
    1.52 kB
    initial commit 8 days ago
  • README.md
    5.74 kB
    Gatekeeper model card with benchmark results 8 days ago
  • config.json
    2.23 kB
    Gatekeeper weights 8 days ago
  • model.safetensors
    598 MB
    xet
    Gatekeeper weights 8 days ago
  • tokenizer.json
    3.58 MB
    Upload tokenizer 8 days ago
  • tokenizer_config.json
    351 Bytes
    Upload tokenizer 8 days ago