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")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("DuoGuard/DuoGuard-0.5B") model = AutoModelForSequenceClassification.from_pretrained("DuoGuard/DuoGuard-0.5B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Add link to paper, add pipeline tag
Verified signatureThis PR ensures it can be found at https://huggingface.co/papers/arXiv:2502.05163 as well as https://huggingface.co/models?pipeline_tag=text-classification.28d7665 -
Update README.md
Verified signature9b04526 -
Update README.md
Verified signature071f306
-
Update README.md
Verified signaturefae7427
-
Upload folder using huggingface_hub
Verified signaturee83e1b3 -
Update README.md
Verified signature447d23b -
Update README.md
Verified signature597b7ab -
initial commit
Verified signatureedb3698