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 library name
Verified signatureThis ensures a "Use this model" appears at the right side, showcasing inference with Transformers.bde0af8 -
Update README.md
Verified signature3e88a42 -
Add link to paper, add pipeline tag (#1)
Verified signature- Add link to paper, add pipeline tag (28d7665661afd99afb68dcb54e711a332e5a2a46) Co-authored-by: Niels Rogge <nielsr@users.noreply.huggingface.co>c2f8ad4 -
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