Instructions to use DuoGuard/DuoGuard-1.5B-transfer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DuoGuard/DuoGuard-1.5B-transfer with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="DuoGuard/DuoGuard-1.5B-transfer")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("DuoGuard/DuoGuard-1.5B-transfer") model = AutoModelForSequenceClassification.from_pretrained("DuoGuard/DuoGuard-1.5B-transfer", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Improve language tag
Verified signatureHi! As the model is multilingual, this is a PR to add other languages than English to the language tag to improve the referencing. Note that 29 languages are announced in the README, but only 13 are explicitly listed. I was therefore only able to add these 13 languages.fa477b4
-
Update README.md
Verified signaturea7419b9 -
Add link to code (#1)
Verified signature- Add link to code (a494421ea13c9d813040fecc312582b793b4bf6d) Co-authored-by: Niels Rogge <nielsr@users.noreply.huggingface.co>494f6df
-
Update README.md
Verified signature845d921 -
Update README.md
Verified signatureefdfc44 -
Update README.md
Verified signatureb1c0d83
-
Update README.md
Verified signature2971da4
-
Update README.md
Verified signature8afcfc8 -
Upload folder using huggingface_hub
Verified signature7c9529b -
initial commit
Verified signaturef15b7e0