Instructions to use textattack/distilbert-base-uncased-WNLI with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use textattack/distilbert-base-uncased-WNLI with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="textattack/distilbert-base-uncased-WNLI")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("textattack/distilbert-base-uncased-WNLI") model = AutoModelForSequenceClassification.from_pretrained("textattack/distilbert-base-uncased-WNLI") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +1 -1
config.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
| 6 |
"attention_dropout": 0.1,
|
| 7 |
"dim": 768,
|
| 8 |
"dropout": 0.1,
|
| 9 |
-
"finetuning_task": "wnli",
|
| 10 |
"hidden_dim": 3072,
|
| 11 |
"initializer_range": 0.02,
|
| 12 |
"max_position_embeddings": 512,
|
|
|
|
| 6 |
"attention_dropout": 0.1,
|
| 7 |
"dim": 768,
|
| 8 |
"dropout": 0.1,
|
| 9 |
+
"finetuning_task": "glue:wnli",
|
| 10 |
"hidden_dim": 3072,
|
| 11 |
"initializer_range": 0.02,
|
| 12 |
"max_position_embeddings": 512,
|