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 Github repository
Verified signatureThis PR adds a link to the Github repository, improving discoverability.8825682
-
Add library name (#2)
Verified signature- Add library name (bde0af8d4f02ddfe7ea23df6b60c967aaaaa354a) Co-authored-by: Niels Rogge <nielsr@users.noreply.huggingface.co>c9dda4d -
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