Add model weights, tokenizer, and config with id2label/label2id
Browse files- config.json +70 -0
- id2label.json +22 -0
- label2id.json +22 -0
- model.safetensors +3 -0
config.json
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"RobertaForSequenceClassification"
|
| 4 |
+
],
|
| 5 |
+
"attention_probs_dropout_prob": 0.1,
|
| 6 |
+
"bos_token_id": 0,
|
| 7 |
+
"classifier_dropout": null,
|
| 8 |
+
"dtype": "float32",
|
| 9 |
+
"eos_token_id": 2,
|
| 10 |
+
"hidden_act": "gelu",
|
| 11 |
+
"hidden_dropout_prob": 0.1,
|
| 12 |
+
"hidden_size": 768,
|
| 13 |
+
"id2label": {
|
| 14 |
+
"0": "Arts & Culture",
|
| 15 |
+
"1": "Business & Finance",
|
| 16 |
+
"2": "Community Based",
|
| 17 |
+
"3": "Education & Learning",
|
| 18 |
+
"4": "Entertainment & Media",
|
| 19 |
+
"5": "Environment & Nature",
|
| 20 |
+
"6": "Family Based",
|
| 21 |
+
"7": "Food & Cooking",
|
| 22 |
+
"8": "Health & Wellness",
|
| 23 |
+
"9": "Historical",
|
| 24 |
+
"10": "Legal & Law",
|
| 25 |
+
"11": "News & Current Events",
|
| 26 |
+
"12": "Personal Development",
|
| 27 |
+
"13": "Politics & Government",
|
| 28 |
+
"14": "Science & Research",
|
| 29 |
+
"15": "Social Issues & Advocacy",
|
| 30 |
+
"16": "Spiritual & Religion",
|
| 31 |
+
"17": "Sports & Recreation",
|
| 32 |
+
"18": "Technology & Innovation",
|
| 33 |
+
"19": "Travel & Geography"
|
| 34 |
+
},
|
| 35 |
+
"initializer_range": 0.02,
|
| 36 |
+
"intermediate_size": 3072,
|
| 37 |
+
"label2id": {
|
| 38 |
+
"Arts & Culture": 0,
|
| 39 |
+
"Business & Finance": 1,
|
| 40 |
+
"Community Based": 2,
|
| 41 |
+
"Education & Learning": 3,
|
| 42 |
+
"Entertainment & Media": 4,
|
| 43 |
+
"Environment & Nature": 5,
|
| 44 |
+
"Family Based": 6,
|
| 45 |
+
"Food & Cooking": 7,
|
| 46 |
+
"Health & Wellness": 8,
|
| 47 |
+
"Historical": 9,
|
| 48 |
+
"Legal & Law": 10,
|
| 49 |
+
"News & Current Events": 11,
|
| 50 |
+
"Personal Development": 12,
|
| 51 |
+
"Politics & Government": 13,
|
| 52 |
+
"Science & Research": 14,
|
| 53 |
+
"Social Issues & Advocacy": 15,
|
| 54 |
+
"Spiritual & Religion": 16,
|
| 55 |
+
"Sports & Recreation": 17,
|
| 56 |
+
"Technology & Innovation": 18,
|
| 57 |
+
"Travel & Geography": 19
|
| 58 |
+
},
|
| 59 |
+
"layer_norm_eps": 1e-05,
|
| 60 |
+
"max_position_embeddings": 514,
|
| 61 |
+
"model_type": "roberta",
|
| 62 |
+
"num_attention_heads": 12,
|
| 63 |
+
"num_hidden_layers": 12,
|
| 64 |
+
"pad_token_id": 1,
|
| 65 |
+
"position_embedding_type": "absolute",
|
| 66 |
+
"transformers_version": "4.56.1",
|
| 67 |
+
"type_vocab_size": 1,
|
| 68 |
+
"use_cache": true,
|
| 69 |
+
"vocab_size": 50265
|
| 70 |
+
}
|
id2label.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"0": "Arts & Culture",
|
| 3 |
+
"1": "Business & Finance",
|
| 4 |
+
"2": "Community Based",
|
| 5 |
+
"3": "Education & Learning",
|
| 6 |
+
"4": "Entertainment & Media",
|
| 7 |
+
"5": "Environment & Nature",
|
| 8 |
+
"6": "Family Based",
|
| 9 |
+
"7": "Food & Cooking",
|
| 10 |
+
"8": "Health & Wellness",
|
| 11 |
+
"9": "Historical",
|
| 12 |
+
"10": "Legal & Law",
|
| 13 |
+
"11": "News & Current Events",
|
| 14 |
+
"12": "Personal Development",
|
| 15 |
+
"13": "Politics & Government",
|
| 16 |
+
"14": "Science & Research",
|
| 17 |
+
"15": "Social Issues & Advocacy",
|
| 18 |
+
"16": "Spiritual & Religion",
|
| 19 |
+
"17": "Sports & Recreation",
|
| 20 |
+
"18": "Technology & Innovation",
|
| 21 |
+
"19": "Travel & Geography"
|
| 22 |
+
}
|
label2id.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"Arts & Culture": 0,
|
| 3 |
+
"Business & Finance": 1,
|
| 4 |
+
"Community Based": 2,
|
| 5 |
+
"Education & Learning": 3,
|
| 6 |
+
"Entertainment & Media": 4,
|
| 7 |
+
"Environment & Nature": 5,
|
| 8 |
+
"Family Based": 6,
|
| 9 |
+
"Food & Cooking": 7,
|
| 10 |
+
"Health & Wellness": 8,
|
| 11 |
+
"Historical": 9,
|
| 12 |
+
"Legal & Law": 10,
|
| 13 |
+
"News & Current Events": 11,
|
| 14 |
+
"Personal Development": 12,
|
| 15 |
+
"Politics & Government": 13,
|
| 16 |
+
"Science & Research": 14,
|
| 17 |
+
"Social Issues & Advocacy": 15,
|
| 18 |
+
"Spiritual & Religion": 16,
|
| 19 |
+
"Sports & Recreation": 17,
|
| 20 |
+
"Technology & Innovation": 18,
|
| 21 |
+
"Travel & Geography": 19
|
| 22 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:688cff59b4bb0526b9db0b8155541ff37e6e6a2ae9bf088b4765b5113c6539ab
|
| 3 |
+
size 498668192
|