Instructions to use execbat/bert-finetuned-sst2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use execbat/bert-finetuned-sst2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="execbat/bert-finetuned-sst2")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("execbat/bert-finetuned-sst2") model = AutoModelForSequenceClassification.from_pretrained("execbat/bert-finetuned-sst2") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +1 -0
config.json
CHANGED
|
@@ -19,6 +19,7 @@
|
|
| 19 |
"pad_token_id": 0,
|
| 20 |
"position_embedding_type": "absolute",
|
| 21 |
"problem_type": "single_label_classification",
|
|
|
|
| 22 |
"torch_dtype": "float32",
|
| 23 |
"transformers_version": "4.49.0",
|
| 24 |
"type_vocab_size": 2,
|
|
|
|
| 19 |
"pad_token_id": 0,
|
| 20 |
"position_embedding_type": "absolute",
|
| 21 |
"problem_type": "single_label_classification",
|
| 22 |
+
"task": "text-classification",
|
| 23 |
"torch_dtype": "float32",
|
| 24 |
"transformers_version": "4.49.0",
|
| 25 |
"type_vocab_size": 2,
|