Instructions to use hendri/emotion with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hendri/emotion with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="hendri/emotion")# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("hendri/emotion") model = AutoModel.from_pretrained("hendri/emotion", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload config
Browse files- config.json +1 -3
config.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "indobenchmark/indobert-large-p1",
|
| 3 |
"_num_labels": 5,
|
| 4 |
"architectures": [
|
| 5 |
-
"
|
| 6 |
],
|
| 7 |
"attention_probs_dropout_prob": 0.1,
|
| 8 |
"classifier_dropout": null,
|
|
@@ -40,7 +39,6 @@
|
|
| 40 |
"pooler_size_per_head": 128,
|
| 41 |
"pooler_type": "first_token_transform",
|
| 42 |
"position_embedding_type": "absolute",
|
| 43 |
-
"torch_dtype": "float32",
|
| 44 |
"transformers_version": "4.47.1",
|
| 45 |
"type_vocab_size": 2,
|
| 46 |
"use_cache": true,
|
|
|
|
| 1 |
{
|
|
|
|
| 2 |
"_num_labels": 5,
|
| 3 |
"architectures": [
|
| 4 |
+
"BertModel"
|
| 5 |
],
|
| 6 |
"attention_probs_dropout_prob": 0.1,
|
| 7 |
"classifier_dropout": null,
|
|
|
|
| 39 |
"pooler_size_per_head": 128,
|
| 40 |
"pooler_type": "first_token_transform",
|
| 41 |
"position_embedding_type": "absolute",
|
|
|
|
| 42 |
"transformers_version": "4.47.1",
|
| 43 |
"type_vocab_size": 2,
|
| 44 |
"use_cache": true,
|