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

GOSHUNCLE
/
ood-guardrail-zh

Text Classification
sentence-transformers
Chinese
traditional-chinese
guardrail
safety
ood-detection
jailbreak-detection
mahalanobis
Model card Files Files and versions
xet
Community

Instructions to use GOSHUNCLE/ood-guardrail-zh with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use GOSHUNCLE/ood-guardrail-zh with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("GOSHUNCLE/ood-guardrail-zh")
    
    sentences = [
        "The weather is lovely today.",
        "It's so sunny outside!",
        "He drove to the stadium."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [3, 3]
  • Notebooks
  • Google Colab
  • Kaggle
ood-guardrail-zh
2.21 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
GOSHUNCLE's picture
GOSHUNCLE
Initial release: OOD Guardrail ZH v3 (model card + detector + stats)
6bad759 verified 2 months ago
  • .gitattributes
    1.52 kB
    initial commit 2 months ago
  • README.md
    4.74 kB
    Initial release: OOD Guardrail ZH v3 (model card + detector + stats) 2 months ago
  • detector.py
    9.19 kB
    Initial release: OOD Guardrail ZH v3 (model card + detector + stats) 2 months ago
  • stats.npz

    Detected Pickle imports (3)

    • "numpy._core.multiarray._reconstruct",
    • "numpy.dtype",
    • "numpy.ndarray"

    What is a pickle import?

    2.19 MB
    xet
    Initial release: OOD Guardrail ZH v3 (model card + detector + stats) 2 months ago