KawshikManikantan
commited on
Commit
•
48a051f
1
Parent(s):
996c005
push_lf
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 +136 -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:ccdd604f38eae855ad3fc1ca9a98586512f1d59a341348e5a258ad6e45d9a907
|
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:a7ef0c9c1aeebcf010e33b65ea2a54fff4a9fd78ca9f4b29e68842fbc0218bb2
|
3 |
+
size 149248194
|
config.json
ADDED
@@ -0,0 +1,136 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"datasets": {
|
3 |
+
"fantasy": {
|
4 |
+
"canonical_cluster_threshold": 2,
|
5 |
+
"cluster_threshold": 2,
|
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": 1,
|
15 |
+
"cluster_threshold": 1,
|
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": "longformer base version retrain",
|
26 |
+
"infra": {
|
27 |
+
"is_local": true,
|
28 |
+
"work_dir": "./"
|
29 |
+
},
|
30 |
+
"keep_singletons": true,
|
31 |
+
"key": "coref_lf_train_final_runs_2",
|
32 |
+
"log_vals": false,
|
33 |
+
"metrics": [
|
34 |
+
"MUC",
|
35 |
+
"Bcub",
|
36 |
+
"CEAFE"
|
37 |
+
],
|
38 |
+
"model": {
|
39 |
+
"doc_encoder": {
|
40 |
+
"add_speaker_tokens": true,
|
41 |
+
"chunking": "independent",
|
42 |
+
"finetune": true,
|
43 |
+
"speaker_end": "[SPEAKER_END]",
|
44 |
+
"speaker_start": "[SPEAKER_START]",
|
45 |
+
"transformer": {
|
46 |
+
"max_encoder_segment_len": 4096,
|
47 |
+
"max_segment_len": 4096,
|
48 |
+
"model_size": "large",
|
49 |
+
"model_str": "allenai/longformer-large-4096",
|
50 |
+
"name": "longformer"
|
51 |
+
}
|
52 |
+
},
|
53 |
+
"memory": {
|
54 |
+
"emb_size": 20,
|
55 |
+
"entity_rep": "wt_avg",
|
56 |
+
"mem_type": {
|
57 |
+
"eval_max_ents": null,
|
58 |
+
"max_ents": null,
|
59 |
+
"name": "unbounded"
|
60 |
+
},
|
61 |
+
"mlp_depth": 1,
|
62 |
+
"mlp_size": 3000,
|
63 |
+
"num_feats": 2,
|
64 |
+
"sim_func": "hadamard",
|
65 |
+
"thresh": 0.0
|
66 |
+
},
|
67 |
+
"mention_params": {
|
68 |
+
"emb_size": 20,
|
69 |
+
"ext_ment": false,
|
70 |
+
"max_span_width": 20,
|
71 |
+
"ment_emb": "attn",
|
72 |
+
"ment_emb_to_size_factor": {
|
73 |
+
"attn": 3,
|
74 |
+
"endpoint": 2,
|
75 |
+
"max": 1
|
76 |
+
},
|
77 |
+
"mlp_depth": 1,
|
78 |
+
"mlp_size": 3000,
|
79 |
+
"top_span_ratio": 0.4,
|
80 |
+
"use_gold_ments": false,
|
81 |
+
"use_topk": false
|
82 |
+
},
|
83 |
+
"metadata_params": {
|
84 |
+
"default_genre": "nw",
|
85 |
+
"genres": [
|
86 |
+
"bc",
|
87 |
+
"bn",
|
88 |
+
"mz",
|
89 |
+
"nw",
|
90 |
+
"pt",
|
91 |
+
"tc",
|
92 |
+
"wb"
|
93 |
+
],
|
94 |
+
"use_genre_feature": false
|
95 |
+
}
|
96 |
+
},
|
97 |
+
"optimizer": {
|
98 |
+
"fine_tune_lr": 1e-05,
|
99 |
+
"init_lr": 0.0003,
|
100 |
+
"lr_decay": "linear",
|
101 |
+
"max_gradient_norm": 1.0
|
102 |
+
},
|
103 |
+
"override_encoder": false,
|
104 |
+
"override_memory": false,
|
105 |
+
"paths": {
|
106 |
+
"base_data_dir": "${paths.resource_dir}/raw_data",
|
107 |
+
"base_model_dir": "${infra.work_dir}/../models",
|
108 |
+
"best_model_dir": ".//../models/coref_joint_f55855e64a8bca2f420dbe05725aa39e_coref_lf_train_final_runs_2/best",
|
109 |
+
"best_model_path": "/home/kawshikcvit/coref_research/gpt-coref-met/models/coref_joint_f55855e64a8bca2f420dbe05725aa39e_coref_lf_train_final_runs_2/best/model.pth",
|
110 |
+
"conll_scorer": "${paths.resource_dir}/reference-coreference-scorers/scorer.pl",
|
111 |
+
"doc_encoder_dirname": "doc_encoder",
|
112 |
+
"model_dir": ".//../models/coref_joint_f55855e64a8bca2f420dbe05725aa39e_coref_lf_train_final_runs_2",
|
113 |
+
"model_filename": "model.pth",
|
114 |
+
"model_name": null,
|
115 |
+
"model_name_prefix": "coref_",
|
116 |
+
"model_path": "/home/kawshikcvit/coref_research/gpt-coref-met/models/coref_joint_f55855e64a8bca2f420dbe05725aa39e_coref_lf_train_final_runs_2/model.pth",
|
117 |
+
"resource_dir": "../data/"
|
118 |
+
},
|
119 |
+
"seed": 2,
|
120 |
+
"train": true,
|
121 |
+
"trainer": {
|
122 |
+
"dropout_rate": 0.3,
|
123 |
+
"eval_per_k_steps": null,
|
124 |
+
"eval_type": "full",
|
125 |
+
"label_smoothing_wt": 0.1,
|
126 |
+
"log_frequency": 500,
|
127 |
+
"max_evals": 25,
|
128 |
+
"max_training_segments": 1,
|
129 |
+
"ment_loss": "all",
|
130 |
+
"normalize_loss": false,
|
131 |
+
"num_training_steps": null,
|
132 |
+
"patience": 10,
|
133 |
+
"to_save_model": false
|
134 |
+
},
|
135 |
+
"use_wandb": true
|
136 |
+
}
|