Instructions to use ishaan1402/cbt-thought-pattern-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ishaan1402/cbt-thought-pattern-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ishaan1402/cbt-thought-pattern-classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("ishaan1402/cbt-thought-pattern-classifier") model = AutoModelForSequenceClassification.from_pretrained("ishaan1402/cbt-thought-pattern-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload RobertaForSequenceClassification
Browse files- config.json +33 -7
- model.safetensors +2 -2
config.json
CHANGED
|
@@ -10,19 +10,45 @@
|
|
| 10 |
"eos_token_id": 2,
|
| 11 |
"hidden_act": "gelu",
|
| 12 |
"hidden_dropout_prob": 0.1,
|
| 13 |
-
"hidden_size":
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
"initializer_range": 0.02,
|
| 15 |
-
"intermediate_size":
|
| 16 |
"is_decoder": false,
|
| 17 |
-
"
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
"model_type": "roberta",
|
| 20 |
-
"num_attention_heads":
|
| 21 |
-
"num_hidden_layers":
|
| 22 |
"pad_token_id": 1,
|
| 23 |
"tie_word_embeddings": true,
|
| 24 |
"transformers_version": "5.0.0",
|
| 25 |
-
"type_vocab_size":
|
| 26 |
"use_cache": true,
|
| 27 |
"vocab_size": 50265
|
| 28 |
}
|
|
|
|
| 10 |
"eos_token_id": 2,
|
| 11 |
"hidden_act": "gelu",
|
| 12 |
"hidden_dropout_prob": 0.1,
|
| 13 |
+
"hidden_size": 1024,
|
| 14 |
+
"id2label": {
|
| 15 |
+
"0": "Catastrophizing",
|
| 16 |
+
"1": "Discounting the positive",
|
| 17 |
+
"2": "Labeling and mislabeling",
|
| 18 |
+
"3": "Mental filtering",
|
| 19 |
+
"4": "Jumping to conclusions: mind reading",
|
| 20 |
+
"5": "Jumping to conclusions: Fortune-telling",
|
| 21 |
+
"6": "Overgeneralization",
|
| 22 |
+
"7": "Personalization",
|
| 23 |
+
"8": "Black-and-white or polarized thinking / All or nothing thinking",
|
| 24 |
+
"9": "Should statements",
|
| 25 |
+
"10": "None"
|
| 26 |
+
},
|
| 27 |
"initializer_range": 0.02,
|
| 28 |
+
"intermediate_size": 4096,
|
| 29 |
"is_decoder": false,
|
| 30 |
+
"label2id": {
|
| 31 |
+
"Black-and-white or polarized thinking / All or nothing thinking": 8,
|
| 32 |
+
"Catastrophizing": 0,
|
| 33 |
+
"Discounting the positive": 1,
|
| 34 |
+
"Jumping to conclusions: Fortune-telling": 5,
|
| 35 |
+
"Jumping to conclusions: mind reading": 4,
|
| 36 |
+
"Labeling and mislabeling": 2,
|
| 37 |
+
"Mental filtering": 3,
|
| 38 |
+
"None": 10,
|
| 39 |
+
"Overgeneralization": 6,
|
| 40 |
+
"Personalization": 7,
|
| 41 |
+
"Should statements": 9
|
| 42 |
+
},
|
| 43 |
+
"layer_norm_eps": 1e-05,
|
| 44 |
+
"max_position_embeddings": 514,
|
| 45 |
"model_type": "roberta",
|
| 46 |
+
"num_attention_heads": 16,
|
| 47 |
+
"num_hidden_layers": 24,
|
| 48 |
"pad_token_id": 1,
|
| 49 |
"tie_word_embeddings": true,
|
| 50 |
"transformers_version": "5.0.0",
|
| 51 |
+
"type_vocab_size": 1,
|
| 52 |
"use_cache": true,
|
| 53 |
"vocab_size": 50265
|
| 54 |
}
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:269bcbbb68e7e9a0269fc8045469aeb3b046954d7d8c32ba818b992a76e79e3a
|
| 3 |
+
size 1421532268
|