Upload GPT2ForSequenceClassification
Browse files- config.json +66 -0
- model.safetensors +3 -0
config.json
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "openai-community/gpt2",
|
| 3 |
+
"activation_function": "gelu_new",
|
| 4 |
+
"architectures": [
|
| 5 |
+
"GPT2ForSequenceClassification"
|
| 6 |
+
],
|
| 7 |
+
"attn_pdrop": 0.1,
|
| 8 |
+
"bos_token_id": 50256,
|
| 9 |
+
"embd_pdrop": 0.1,
|
| 10 |
+
"eos_token_id": 50256,
|
| 11 |
+
"id2label": {
|
| 12 |
+
"0": "LABEL_0",
|
| 13 |
+
"1": "LABEL_1",
|
| 14 |
+
"2": "LABEL_2",
|
| 15 |
+
"3": "LABEL_3",
|
| 16 |
+
"4": "LABEL_4",
|
| 17 |
+
"5": "LABEL_5",
|
| 18 |
+
"6": "LABEL_6",
|
| 19 |
+
"7": "LABEL_7",
|
| 20 |
+
"8": "LABEL_8",
|
| 21 |
+
"9": "LABEL_9"
|
| 22 |
+
},
|
| 23 |
+
"initializer_range": 0.02,
|
| 24 |
+
"label2id": {
|
| 25 |
+
"LABEL_0": 0,
|
| 26 |
+
"LABEL_1": 1,
|
| 27 |
+
"LABEL_2": 2,
|
| 28 |
+
"LABEL_3": 3,
|
| 29 |
+
"LABEL_4": 4,
|
| 30 |
+
"LABEL_5": 5,
|
| 31 |
+
"LABEL_6": 6,
|
| 32 |
+
"LABEL_7": 7,
|
| 33 |
+
"LABEL_8": 8,
|
| 34 |
+
"LABEL_9": 9
|
| 35 |
+
},
|
| 36 |
+
"layer_norm_epsilon": 1e-05,
|
| 37 |
+
"model_type": "gpt2",
|
| 38 |
+
"n_ctx": 1024,
|
| 39 |
+
"n_embd": 768,
|
| 40 |
+
"n_head": 12,
|
| 41 |
+
"n_inner": null,
|
| 42 |
+
"n_layer": 12,
|
| 43 |
+
"n_positions": 1024,
|
| 44 |
+
"output_hidden_states": true,
|
| 45 |
+
"pad_token_id": 50256,
|
| 46 |
+
"problem_type": "single_label_classification",
|
| 47 |
+
"reorder_and_upcast_attn": false,
|
| 48 |
+
"resid_pdrop": 0.1,
|
| 49 |
+
"scale_attn_by_inverse_layer_idx": false,
|
| 50 |
+
"scale_attn_weights": true,
|
| 51 |
+
"summary_activation": null,
|
| 52 |
+
"summary_first_dropout": 0.1,
|
| 53 |
+
"summary_proj_to_labels": true,
|
| 54 |
+
"summary_type": "cls_index",
|
| 55 |
+
"summary_use_proj": true,
|
| 56 |
+
"task_specific_params": {
|
| 57 |
+
"text-generation": {
|
| 58 |
+
"do_sample": true,
|
| 59 |
+
"max_length": 50
|
| 60 |
+
}
|
| 61 |
+
},
|
| 62 |
+
"torch_dtype": "float32",
|
| 63 |
+
"transformers_version": "4.46.1",
|
| 64 |
+
"use_cache": true,
|
| 65 |
+
"vocab_size": 50257
|
| 66 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:528dee41aaa3da9c7fbbdbc462ef74f598eb4965c94587d463250f578aefccf3
|
| 3 |
+
size 497805008
|