duwuonline commited on
Commit
736116c
1 Parent(s): 56d8e7d

Upload model

Browse files
Files changed (3) hide show
  1. config.json +35 -15
  2. generation_config.json +0 -1
  3. pytorch_model.bin +2 -2
config.json CHANGED
@@ -1,26 +1,46 @@
1
  {
 
 
 
2
  "architectures": [
3
- "RobertaForCausalLM"
4
  ],
5
- "attention_probs_dropout_prob": 0.1,
6
  "bos_token_id": 0,
7
- "classifier_dropout": null,
8
  "eos_token_id": 2,
9
- "hidden_act": "gelu",
10
- "hidden_dropout_prob": 0.1,
11
- "hidden_size": 256,
12
  "initializer_range": 0.02,
13
- "intermediate_size": 1024,
14
- "layer_norm_eps": 1e-12,
15
- "max_position_embeddings": 512,
16
- "model_type": "roberta",
17
- "num_attention_heads": 8,
18
- "num_hidden_layers": 6,
19
- "pad_token_id": 1,
20
- "position_embedding_type": "absolute",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  "torch_dtype": "float32",
22
  "transformers_version": "4.30.2",
23
- "type_vocab_size": 2,
24
  "use_cache": true,
25
  "vocab_size": 64001
26
  }
 
1
  {
2
+ "_name_or_path": "distilgpt2",
3
+ "_num_labels": 1,
4
+ "activation_function": "gelu_new",
5
  "architectures": [
6
+ "GPT2LMHeadModel"
7
  ],
8
+ "attn_pdrop": 0.1,
9
  "bos_token_id": 0,
10
+ "embd_pdrop": 0.1,
11
  "eos_token_id": 2,
12
+ "id2label": {
13
+ "0": "LABEL_0"
14
+ },
15
  "initializer_range": 0.02,
16
+ "label2id": {
17
+ "LABEL_0": 0
18
+ },
19
+ "layer_norm_epsilon": 1e-05,
20
+ "model_type": "gpt2",
21
+ "n_ctx": 128,
22
+ "n_embd": 768,
23
+ "n_head": 12,
24
+ "n_inner": null,
25
+ "n_layer": 6,
26
+ "n_positions": 1024,
27
+ "reorder_and_upcast_attn": false,
28
+ "resid_pdrop": 0.1,
29
+ "scale_attn_by_inverse_layer_idx": false,
30
+ "scale_attn_weights": true,
31
+ "summary_activation": null,
32
+ "summary_first_dropout": 0.1,
33
+ "summary_proj_to_labels": true,
34
+ "summary_type": "cls_index",
35
+ "summary_use_proj": true,
36
+ "task_specific_params": {
37
+ "text-generation": {
38
+ "do_sample": true,
39
+ "max_length": 50
40
+ }
41
+ },
42
  "torch_dtype": "float32",
43
  "transformers_version": "4.30.2",
 
44
  "use_cache": true,
45
  "vocab_size": 64001
46
  }
generation_config.json CHANGED
@@ -2,6 +2,5 @@
2
  "_from_model_config": true,
3
  "bos_token_id": 0,
4
  "eos_token_id": 2,
5
- "pad_token_id": 1,
6
  "transformers_version": "4.30.2"
7
  }
 
2
  "_from_model_config": true,
3
  "bos_token_id": 0,
4
  "eos_token_id": 2,
 
5
  "transformers_version": "4.30.2"
6
  }
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f130bf2ccf15d81e1029d0482d2cc9699d16b498cabd0ee2557f6c4aafd23bef
3
- size 85581369
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7fade51bceb1e4bb240f51323aa53cc309e83d0bcf865fe69c390853c38778c7
3
+ size 369896341