FpOliveira commited on
Commit
4d6f69e
1 Parent(s): be9311b

Upload GPT2ForSequenceClassification

Browse files
Files changed (2) hide show
  1. config.json +49 -0
  2. model.safetensors +3 -0
config.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "tupi-gpt2-small-5",
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": "not hate",
13
+ "1": "hate"
14
+ },
15
+ "initializer_range": 0.02,
16
+ "label2id": {
17
+ "hate": 1,
18
+ "not hate": 0
19
+ },
20
+ "layer_norm_epsilon": 1e-05,
21
+ "model_type": "gpt2",
22
+ "n_ctx": 1024,
23
+ "n_embd": 768,
24
+ "n_head": 12,
25
+ "n_inner": null,
26
+ "n_layer": 12,
27
+ "n_positions": 1024,
28
+ "pad_token_id": 50256,
29
+ "problem_type": "single_label_classification",
30
+ "reorder_and_upcast_attn": false,
31
+ "resid_pdrop": 0.1,
32
+ "scale_attn_by_inverse_layer_idx": false,
33
+ "scale_attn_weights": true,
34
+ "summary_activation": null,
35
+ "summary_first_dropout": 0.1,
36
+ "summary_proj_to_labels": true,
37
+ "summary_type": "cls_index",
38
+ "summary_use_proj": true,
39
+ "task_specific_params": {
40
+ "text-generation": {
41
+ "do_sample": true,
42
+ "max_length": 50
43
+ }
44
+ },
45
+ "torch_dtype": "float32",
46
+ "transformers_version": "4.35.2",
47
+ "use_cache": true,
48
+ "vocab_size": 50257
49
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6b49a8a6dc50e0416985a68c56e267db0146c4ce681cc88800a566c1645c9779
3
+ size 497780432