Instructions to use cardiffnlp/twitter-roberta-base-offensive with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cardiffnlp/twitter-roberta-base-offensive with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="cardiffnlp/twitter-roberta-base-offensive")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("cardiffnlp/twitter-roberta-base-offensive") model = AutoModelForSequenceClassification.from_pretrained("cardiffnlp/twitter-roberta-base-offensive") - Inference
- Notebooks
- Google Colab
- Kaggle
Commit ·
f50ce6c
1
Parent(s): c77b3b9
Adding `safetensors` variant of this model
Browse files- .gitattributes +1 -0
- model.safetensors +3 -0
.gitattributes
CHANGED
|
@@ -7,3 +7,4 @@
|
|
| 7 |
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 8 |
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 9 |
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 7 |
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 8 |
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 9 |
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
model.safetensors filter=lfs diff=lfs merge=lfs -text
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:35ebad0cb76d64c2ce454fc8514c69408ebf8cba6909f454aacbe28e07a0393d
|
| 3 |
+
size 498617024
|