orionweller
commited on
Commit
•
f04aef7
1
Parent(s):
71307f6
tart for sentence-bert form
Browse files- config.json +93 -0
- model.safetensors +3 -0
- special_tokens_map.json +7 -0
- tokenizer_config.json +57 -0
- vocab.txt +0 -0
config.json
ADDED
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"T": 0.1,
|
3 |
+
"architectures": [
|
4 |
+
"BertModel"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"augmentation": "none",
|
8 |
+
"beta1": 0.9,
|
9 |
+
"beta2": 0.98,
|
10 |
+
"bi_encoder": false,
|
11 |
+
"chunk_length": 256,
|
12 |
+
"classifier_dropout": null,
|
13 |
+
"continue_training": false,
|
14 |
+
"contrastive_mode": "moco",
|
15 |
+
"dropout": 0.1,
|
16 |
+
"eps": 1e-06,
|
17 |
+
"eval_data": [
|
18 |
+
"minilm_denoised_T0_32_datasets_fixed_instruction_unfollowing_dev.jsonl"
|
19 |
+
],
|
20 |
+
"eval_datasets": [],
|
21 |
+
"eval_datasets_dir": "./",
|
22 |
+
"eval_freq": 2000,
|
23 |
+
"eval_normalize_text": false,
|
24 |
+
"freeze_ctx_encoder": false,
|
25 |
+
"global_rank": 0,
|
26 |
+
"hard_order": false,
|
27 |
+
"hidden_act": "gelu",
|
28 |
+
"hidden_dropout_prob": 0.1,
|
29 |
+
"hidden_size": 768,
|
30 |
+
"initializer_range": 0.02,
|
31 |
+
"intermediate_size": 3072,
|
32 |
+
"kd": false,
|
33 |
+
"label_smoothing": 0.0,
|
34 |
+
"layer_norm_eps": 1e-12,
|
35 |
+
"loading_mode": "split",
|
36 |
+
"local_rank": 0,
|
37 |
+
"log_freq": 100,
|
38 |
+
"loss_type": "kl",
|
39 |
+
"lower_case": false,
|
40 |
+
"lr": 1e-05,
|
41 |
+
"lr_min_ratio": 0.0,
|
42 |
+
"main_addr": "learnfair7603",
|
43 |
+
"main_port": 15972,
|
44 |
+
"max_position_embeddings": 512,
|
45 |
+
"maxload": null,
|
46 |
+
"moco_train_mode_encoder_k": false,
|
47 |
+
"model_path": "/checkpoint/akariasai/contriever/contriever_wiki2020_ft_msmarco/checkpoint/step-10000/",
|
48 |
+
"model_type": "bert",
|
49 |
+
"momentum": 0.999,
|
50 |
+
"n_context": 50,
|
51 |
+
"negative_ctxs": 5,
|
52 |
+
"negative_hard_min_idx": 0,
|
53 |
+
"negative_hard_ratio": 0.1,
|
54 |
+
"norm_doc": false,
|
55 |
+
"norm_query": false,
|
56 |
+
"num_attention_heads": 12,
|
57 |
+
"num_hidden_layers": 12,
|
58 |
+
"num_workers": 5,
|
59 |
+
"optim": "adamw",
|
60 |
+
"output_dir": "/checkpoint/akariasai/contriever/instruction_unfollowing_full_data_from_new_checkpoints_5_0.1",
|
61 |
+
"pad_token_id": 0,
|
62 |
+
"per_gpu_batch_size": 16,
|
63 |
+
"per_gpu_eval_batch_size": 16,
|
64 |
+
"pooling": "average",
|
65 |
+
"position_embedding_type": "absolute",
|
66 |
+
"prob_augmentation": 0.0,
|
67 |
+
"projection_size": 768,
|
68 |
+
"queue_size": 65536,
|
69 |
+
"random_init": false,
|
70 |
+
"random_sort": false,
|
71 |
+
"ratio_max": 0.5,
|
72 |
+
"ratio_min": 0.1,
|
73 |
+
"retriever_model_id": "bert-base-uncased",
|
74 |
+
"rho": 0.05,
|
75 |
+
"sampling_coefficient": 0.0,
|
76 |
+
"save_freq": 2000,
|
77 |
+
"scheduler": "linear",
|
78 |
+
"score_function": "dot",
|
79 |
+
"seed": 0,
|
80 |
+
"temperature": 0.05,
|
81 |
+
"torch_dtype": "float32",
|
82 |
+
"total_steps": 20000,
|
83 |
+
"train_data": [
|
84 |
+
"minilm_denoised_T0_32_datasets_fixed_instruction_unfollowing_train.jsonl"
|
85 |
+
],
|
86 |
+
"transformers_version": "4.36.2",
|
87 |
+
"type_vocab_size": 2,
|
88 |
+
"use_cache": true,
|
89 |
+
"vocab_size": 30522,
|
90 |
+
"warmup_steps": 1000,
|
91 |
+
"weight_decay": 0.01,
|
92 |
+
"world_size": 64
|
93 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:75e996d6c724ad23a7caa6fc19a6da520f580248483c80f4e3586ecd0a613e6b
|
3 |
+
size 437951328
|
special_tokens_map.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cls_token": "[CLS]",
|
3 |
+
"mask_token": "[MASK]",
|
4 |
+
"pad_token": "[PAD]",
|
5 |
+
"sep_token": "[SEP]",
|
6 |
+
"unk_token": "[UNK]"
|
7 |
+
}
|
tokenizer_config.json
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"0": {
|
4 |
+
"content": "[PAD]",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false,
|
9 |
+
"special": true
|
10 |
+
},
|
11 |
+
"100": {
|
12 |
+
"content": "[UNK]",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"101": {
|
20 |
+
"content": "[CLS]",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
},
|
27 |
+
"102": {
|
28 |
+
"content": "[SEP]",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": false,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false,
|
33 |
+
"special": true
|
34 |
+
},
|
35 |
+
"103": {
|
36 |
+
"content": "[MASK]",
|
37 |
+
"lstrip": false,
|
38 |
+
"normalized": false,
|
39 |
+
"rstrip": false,
|
40 |
+
"single_word": false,
|
41 |
+
"special": true
|
42 |
+
}
|
43 |
+
},
|
44 |
+
"clean_up_tokenization_spaces": true,
|
45 |
+
"cls_token": "[CLS]",
|
46 |
+
"do_basic_tokenize": true,
|
47 |
+
"do_lower_case": true,
|
48 |
+
"mask_token": "[MASK]",
|
49 |
+
"model_max_length": 512,
|
50 |
+
"never_split": null,
|
51 |
+
"pad_token": "[PAD]",
|
52 |
+
"sep_token": "[SEP]",
|
53 |
+
"strip_accents": null,
|
54 |
+
"tokenize_chinese_chars": true,
|
55 |
+
"tokenizer_class": "BertTokenizer",
|
56 |
+
"unk_token": "[UNK]"
|
57 |
+
}
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|