KawshikManikantan
commited on
Commit
•
5ab7799
1
Parent(s):
6793c46
meira-s push
Browse files- best/doc_encoder/added_tokens.json +4 -0
- best/doc_encoder/config.json +55 -0
- best/doc_encoder/merges.txt +0 -0
- best/doc_encoder/pytorch_model.bin +3 -0
- best/doc_encoder/special_tokens_map.json +19 -0
- best/doc_encoder/tokenizer.json +0 -0
- best/doc_encoder/tokenizer_config.json +15 -0
- best/doc_encoder/vocab.json +0 -0
- best/model.pth +3 -0
- config.json +146 -0
- id.txt +1 -0
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.33.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/pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:eeddc0c22a0aa6f72247b40ebab1ece9768de30c1e8be2e33e7ab0b4db94c37c
|
3 |
+
size 1734394785
|
best/doc_encoder/special_tokens_map.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
"[SPEAKER_START]",
|
4 |
+
"[SPEAKER_END]"
|
5 |
+
],
|
6 |
+
"bos_token": "<s>",
|
7 |
+
"cls_token": "<s>",
|
8 |
+
"eos_token": "</s>",
|
9 |
+
"mask_token": {
|
10 |
+
"content": "<mask>",
|
11 |
+
"lstrip": true,
|
12 |
+
"normalized": false,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"pad_token": "<pad>",
|
17 |
+
"sep_token": "</s>",
|
18 |
+
"unk_token": "<unk>"
|
19 |
+
}
|
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,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_prefix_space": false,
|
3 |
+
"bos_token": "<s>",
|
4 |
+
"clean_up_tokenization_spaces": true,
|
5 |
+
"cls_token": "<s>",
|
6 |
+
"eos_token": "</s>",
|
7 |
+
"errors": "replace",
|
8 |
+
"mask_token": "<mask>",
|
9 |
+
"model_max_length": 4096,
|
10 |
+
"pad_token": "<pad>",
|
11 |
+
"sep_token": "</s>",
|
12 |
+
"tokenizer_class": "LongformerTokenizer",
|
13 |
+
"trim_offsets": true,
|
14 |
+
"unk_token": "<unk>"
|
15 |
+
}
|
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:f82f605aa8f89bc6a0e8945fa7ca095de81b70037bba9f679dfe78c1f6c36388
|
3 |
+
size 149248130
|
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_s_train_gen_5",
|
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": true,
|
68 |
+
"pseudo_dist": true,
|
69 |
+
"rep_pos": "learned",
|
70 |
+
"sim_func": "hadamard",
|
71 |
+
"thresh": 0.0,
|
72 |
+
"type": "static"
|
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_efbc65248a6aedce066a04a9f4f40084_lf_s_train_gen_5/best",
|
117 |
+
"best_model_path": "/home/kawshikcvit/coref_research/gpt-coref-met-a6/models/met_joint_efbc65248a6aedce066a04a9f4f40084_lf_s_train_gen_5/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_efbc65248a6aedce066a04a9f4f40084_lf_s_train_gen_5",
|
121 |
+
"model_filename": "model.pth",
|
122 |
+
"model_name": null,
|
123 |
+
"model_name_prefix": "met_",
|
124 |
+
"model_path": "/home/kawshikcvit/coref_research/gpt-coref-met-a6/models/met_joint_efbc65248a6aedce066a04a9f4f40084_lf_s_train_gen_5/model.pth",
|
125 |
+
"resource_dir": "../data/"
|
126 |
+
},
|
127 |
+
"seed": 5,
|
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 |
+
5
|