Instructions to use textattack/bert-base-uncased-snli with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use textattack/bert-base-uncased-snli with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="textattack/bert-base-uncased-snli")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("textattack/bert-base-uncased-snli") model = AutoModelForSequenceClassification.from_pretrained("textattack/bert-base-uncased-snli", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update train_args.json
Browse files- train_args.json +5 -0
train_args.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "bert-base-uncased",
|
| 3 |
+
"dataset": "snli",
|
| 4 |
+
"num_labels": 3
|
| 5 |
+
}
|