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
Add library name
Browse filesThis ensures a "Use this model" appears at the right side, showcasing inference with Transformers.
README.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
|
|
|
| 3 |
pipeline_tag: text-classification
|
| 4 |
base_model:
|
| 5 |
- Qwen/Qwen2.5-0.5B
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
+
library_name: transformers
|
| 4 |
pipeline_tag: text-classification
|
| 5 |
base_model:
|
| 6 |
- Qwen/Qwen2.5-0.5B
|