Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

DuoGuard
/
DuoGuard-0.5B

Text Classification
Transformers
Safetensors
qwen2
Model card Files Files and versions
xet
Community
6

Instructions to use DuoGuard/DuoGuard-0.5B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use DuoGuard/DuoGuard-0.5B with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-classification", model="DuoGuard/DuoGuard-0.5B")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("DuoGuard/DuoGuard-0.5B")
    model = AutoModelForSequenceClassification.from_pretrained("DuoGuard/DuoGuard-0.5B")
  • Notebooks
  • Google Colab
  • Kaggle
DuoGuard-0.5B
Ctrl+K
Ctrl+K
  • 2 contributors
History: 13 commits
ydeng9's picture
ydeng9
Update README.md
44396c3 verified about 1 year ago
  • .gitattributes
    1.52 kB
    initial commit over 1 year ago
  • README.md
    4.6 kB
    Update README.md about 1 year ago
  • config.json
    1.29 kB
    Upload folder using huggingface_hub over 1 year ago
  • model.safetensors
    988 MB
    xet
    Upload folder using huggingface_hub over 1 year ago