Text Classification
Adapters
PyTorch
bert
cybersecurity
africa
threat-detection
NLP
Allsafeafrica
cyber-aware
Instructions to use Allsafeafrica/GreenGuard-AI-Defender with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Adapters
How to use Allsafeafrica/GreenGuard-AI-Defender with Adapters:
from adapters import AutoAdapterModel model = AutoAdapterModel.from_pretrained("undefined") model.load_adapter("Allsafeafrica/GreenGuard-AI-Defender", set_active=True) - Notebooks
- Google Colab
- Kaggle
Create pytorch_model.bin
Browse files- pytorch_model.bin +4 -0
pytorch_model.bin
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from transformers import BertForSequenceClassification
|
| 2 |
+
|
| 3 |
+
model = BertForSequenceClassification.from_pretrained("bert-base-uncased")
|
| 4 |
+
model.save_pretrained("GreenGuard-AI-Defender")
|