Instructions to use andythetechnerd03/BERT-tiny_AI-Human with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use andythetechnerd03/BERT-tiny_AI-Human with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="andythetechnerd03/BERT-tiny_AI-Human")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("andythetechnerd03/BERT-tiny_AI-Human") model = AutoModelForSequenceClassification.from_pretrained("andythetechnerd03/BERT-tiny_AI-Human") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +6 -1
config.json
CHANGED
|
@@ -22,5 +22,10 @@
|
|
| 22 |
"transformers_version": "4.37.2",
|
| 23 |
"type_vocab_size": 2,
|
| 24 |
"use_cache": true,
|
| 25 |
-
"vocab_size": 30522
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
}
|
|
|
|
| 22 |
"transformers_version": "4.37.2",
|
| 23 |
"type_vocab_size": 2,
|
| 24 |
"use_cache": true,
|
| 25 |
+
"vocab_size": 30522,
|
| 26 |
+
"label2id" : {"AI": 0,
|
| 27 |
+
"Human": 1},
|
| 28 |
+
"id2label" : {0: "Human",
|
| 29 |
+
1: "AI"}
|
| 30 |
+
|
| 31 |
}
|