KawshikManikantan commited on
Commit
ac6740a
·
1 Parent(s): 2d8de8d

meira-h push

Browse files
best/doc_encoder/added_tokens.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "[SPEAKER_END]": 50266,
3
+ "[SPEAKER_START]": 50265
4
+ }
best/doc_encoder/config.json ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "allenai/longformer-large-4096",
3
+ "architectures": [
4
+ "LongformerModel"
5
+ ],
6
+ "attention_mode": "longformer",
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "attention_window": [
9
+ 512,
10
+ 512,
11
+ 512,
12
+ 512,
13
+ 512,
14
+ 512,
15
+ 512,
16
+ 512,
17
+ 512,
18
+ 512,
19
+ 512,
20
+ 512,
21
+ 512,
22
+ 512,
23
+ 512,
24
+ 512,
25
+ 512,
26
+ 512,
27
+ 512,
28
+ 512,
29
+ 512,
30
+ 512,
31
+ 512,
32
+ 512
33
+ ],
34
+ "bos_token_id": 0,
35
+ "eos_token_id": 2,
36
+ "gradient_checkpointing": false,
37
+ "hidden_act": "gelu",
38
+ "hidden_dropout_prob": 0.1,
39
+ "hidden_size": 1024,
40
+ "ignore_attention_mask": false,
41
+ "initializer_range": 0.02,
42
+ "intermediate_size": 4096,
43
+ "layer_norm_eps": 1e-05,
44
+ "max_position_embeddings": 4098,
45
+ "model_type": "longformer",
46
+ "num_attention_heads": 16,
47
+ "num_hidden_layers": 24,
48
+ "onnx_export": false,
49
+ "pad_token_id": 1,
50
+ "sep_token_id": 2,
51
+ "torch_dtype": "float32",
52
+ "transformers_version": "4.40.2",
53
+ "type_vocab_size": 1,
54
+ "vocab_size": 50267
55
+ }
best/doc_encoder/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
best/doc_encoder/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8ab82ffdba31413b7bbbb925d54ac5765bc8ff9e5ddf4e1e7c9b6a2ae8bb2ffd
3
+ size 1734276256
best/doc_encoder/special_tokens_map.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ {
4
+ "content": "[SPEAKER_START]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false
9
+ },
10
+ {
11
+ "content": "[SPEAKER_END]",
12
+ "lstrip": false,
13
+ "normalized": false,
14
+ "rstrip": false,
15
+ "single_word": false
16
+ }
17
+ ],
18
+ "bos_token": "<s>",
19
+ "cls_token": "<s>",
20
+ "eos_token": "</s>",
21
+ "mask_token": {
22
+ "content": "<mask>",
23
+ "lstrip": true,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false
27
+ },
28
+ "pad_token": "<pad>",
29
+ "sep_token": "</s>",
30
+ "unk_token": "<unk>"
31
+ }
best/doc_encoder/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
best/doc_encoder/tokenizer_config.json ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "0": {
5
+ "content": "<s>",
6
+ "lstrip": false,
7
+ "normalized": true,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "1": {
13
+ "content": "<pad>",
14
+ "lstrip": false,
15
+ "normalized": true,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "2": {
21
+ "content": "</s>",
22
+ "lstrip": false,
23
+ "normalized": true,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "3": {
29
+ "content": "<unk>",
30
+ "lstrip": false,
31
+ "normalized": true,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "50264": {
37
+ "content": "<mask>",
38
+ "lstrip": true,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ },
44
+ "50265": {
45
+ "content": "[SPEAKER_START]",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false,
50
+ "special": true
51
+ },
52
+ "50266": {
53
+ "content": "[SPEAKER_END]",
54
+ "lstrip": false,
55
+ "normalized": false,
56
+ "rstrip": false,
57
+ "single_word": false,
58
+ "special": true
59
+ }
60
+ },
61
+ "additional_special_tokens": [
62
+ "[SPEAKER_START]",
63
+ "[SPEAKER_END]"
64
+ ],
65
+ "bos_token": "<s>",
66
+ "clean_up_tokenization_spaces": true,
67
+ "cls_token": "<s>",
68
+ "eos_token": "</s>",
69
+ "errors": "replace",
70
+ "mask_token": "<mask>",
71
+ "model_max_length": 1000000000000000019884624838656,
72
+ "pad_token": "<pad>",
73
+ "sep_token": "</s>",
74
+ "tokenizer_class": "LongformerTokenizer",
75
+ "trim_offsets": true,
76
+ "unk_token": "<unk>"
77
+ }
best/doc_encoder/vocab.json ADDED
The diff for this file is too large to render. See raw diff
 
best/model.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e71f84325c6264b91dc0f6f0db2e618b89207ab25e54eb7973b4527bce8f9b0
3
+ size 149249711
config.json ADDED
@@ -0,0 +1,146 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "datasets": {
3
+ "fantasy": {
4
+ "canonical_cluster_threshold": 0,
5
+ "cluster_threshold": 0,
6
+ "has_conll": true,
7
+ "name": "fantasy",
8
+ "num_dev_docs": 20,
9
+ "num_test_docs": 20,
10
+ "num_train_docs": 171,
11
+ "targeted_eval": false
12
+ },
13
+ "litbank": {
14
+ "canonical_cluster_threshold": 0,
15
+ "cluster_threshold": 0,
16
+ "cross_val_split": 0,
17
+ "has_conll": true,
18
+ "name": "LitBank",
19
+ "num_dev_docs": 10,
20
+ "num_test_docs": 10,
21
+ "num_train_docs": 80,
22
+ "targeted_eval": false
23
+ }
24
+ },
25
+ "desc": "Major Entity Tracking",
26
+ "device": "cuda:0",
27
+ "infra": {
28
+ "is_local": true,
29
+ "work_dir": "./"
30
+ },
31
+ "keep_singletons": true,
32
+ "key": "lf_sd_train_gen_4",
33
+ "log_vals": false,
34
+ "metrics": [
35
+ "MUC",
36
+ "Bcub",
37
+ "CEAFE"
38
+ ],
39
+ "model": {
40
+ "doc_encoder": {
41
+ "add_speaker_tokens": true,
42
+ "chunking": "independent",
43
+ "finetune": true,
44
+ "speaker_end": "[SPEAKER_END]",
45
+ "speaker_start": "[SPEAKER_START]",
46
+ "transformer": {
47
+ "max_encoder_segment_len": 4096,
48
+ "max_segment_len": 4096,
49
+ "model_size": "large",
50
+ "model_str": "allenai/longformer-large-4096",
51
+ "name": "longformer"
52
+ }
53
+ },
54
+ "memory": {
55
+ "batch_size": 64,
56
+ "emb_size": 20,
57
+ "entity_rep": "wt_avg",
58
+ "mem_type": {
59
+ "eval_max_ents": null,
60
+ "max_ents": null,
61
+ "name": "unbounded"
62
+ },
63
+ "mlp_depth": 1,
64
+ "mlp_size": 3000,
65
+ "num_embeds": 10,
66
+ "num_feats": 2,
67
+ "pivot": false,
68
+ "pseudo_dist": true,
69
+ "rep_pos": "learned",
70
+ "sim_func": "hadamard",
71
+ "thresh": 0.0,
72
+ "type": "hybrid"
73
+ },
74
+ "mention_params": {
75
+ "emb_size": 20,
76
+ "ext_ment": false,
77
+ "ignore_non_gold": true,
78
+ "max_span_width": 20,
79
+ "ment_emb": "attn",
80
+ "ment_emb_to_size_factor": {
81
+ "attn": 3,
82
+ "endpoint": 2,
83
+ "max": 1
84
+ },
85
+ "mlp_depth": 1,
86
+ "mlp_size": 3000,
87
+ "top_span_ratio": 0.4,
88
+ "use_gold_ments": false,
89
+ "use_topk": false
90
+ },
91
+ "metadata_params": {
92
+ "default_genre": "nw",
93
+ "genres": [
94
+ "bc",
95
+ "bn",
96
+ "mz",
97
+ "nw",
98
+ "pt",
99
+ "tc",
100
+ "wb"
101
+ ],
102
+ "use_genre_feature": false
103
+ }
104
+ },
105
+ "optimizer": {
106
+ "fine_tune_lr": 1e-05,
107
+ "init_lr": 0.0003,
108
+ "lr_decay": "linear",
109
+ "max_gradient_norm": 1.0
110
+ },
111
+ "override_encoder": false,
112
+ "override_memory": false,
113
+ "paths": {
114
+ "base_data_dir": "${paths.resource_dir}/raw_data",
115
+ "base_model_dir": "${infra.work_dir}/../models",
116
+ "best_model_dir": ".//../models/met_joint_f78b0fa9c1d7718b9ed703ddcf621ec9_lf_sd_train_gen_4/best",
117
+ "best_model_path": "/home/admin/coref_research/gpt-coref-met-1/models/met_joint_f78b0fa9c1d7718b9ed703ddcf621ec9_lf_sd_train_gen_4/best/model.pth",
118
+ "conll_scorer": "${paths.resource_dir}/reference-coreference-scorers/scorer.pl",
119
+ "doc_encoder_dirname": "doc_encoder",
120
+ "model_dir": ".//../models/met_joint_f78b0fa9c1d7718b9ed703ddcf621ec9_lf_sd_train_gen_4",
121
+ "model_filename": "model.pth",
122
+ "model_name": null,
123
+ "model_name_prefix": "met_",
124
+ "model_path": "/home/admin/coref_research/gpt-coref-met-1/models/met_joint_f78b0fa9c1d7718b9ed703ddcf621ec9_lf_sd_train_gen_4/model.pth",
125
+ "resource_dir": "../data/"
126
+ },
127
+ "seed": 4,
128
+ "train": true,
129
+ "trainer": {
130
+ "dropout_rate": 0.3,
131
+ "eval_per_k_steps": null,
132
+ "eval_type": "full",
133
+ "generalise": true,
134
+ "label_smoothing_wt": 0.1,
135
+ "log_frequency": 500,
136
+ "max_evals": 25,
137
+ "max_training_segments": 1,
138
+ "ment_loss_incl": true,
139
+ "ment_loss_mode": "all",
140
+ "normalize_loss": false,
141
+ "num_training_steps": null,
142
+ "patience": 10,
143
+ "to_save_model": false
144
+ },
145
+ "use_wandb": true
146
+ }
id.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ 4