Instructions to use sudy-super/Sentinel with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sudy-super/Sentinel with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="sudy-super/Sentinel")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("sudy-super/Sentinel") model = AutoModelForSequenceClassification.from_pretrained("sudy-super/Sentinel") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -19,9 +19,7 @@ LABEL_1 means that it was determined to be Prompt Injection.
|
|
| 19 |
|
| 20 |
### Tutorial
|
| 21 |
```
|
| 22 |
-
pip install sentencepiece
|
| 23 |
-
pip install accelerate
|
| 24 |
-
pip install transformers
|
| 25 |
```
|
| 26 |
|
| 27 |
```python
|
|
|
|
| 19 |
|
| 20 |
### Tutorial
|
| 21 |
```
|
| 22 |
+
pip install accelerate sentencepiece transformers
|
|
|
|
|
|
|
| 23 |
```
|
| 24 |
|
| 25 |
```python
|