Deehan1866 commited on
Commit
bc4e5dd
1 Parent(s): a6b0ac7

Upload 15 files

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ eval_nbest_predictions.json filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,3 +1,52 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - generated_from_trainer
4
+ datasets:
5
+ - PiC/phrase_retrieval
6
+ model-index:
7
+ - name: finetuned
8
+ results: []
9
+ ---
10
+
11
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
12
+ should probably proofread and complete it, then remove this comment. -->
13
+
14
+ # finetuned
15
+
16
+ This model is a fine-tuned version of [whaleloops/phrase-bert](https://huggingface.co/whaleloops/phrase-bert) on the PiC/phrase_retrieval PR-pass dataset.
17
+
18
+ ## Model description
19
+
20
+ More information needed
21
+
22
+ ## Intended uses & limitations
23
+
24
+ More information needed
25
+
26
+ ## Training and evaluation data
27
+
28
+ More information needed
29
+
30
+ ## Training procedure
31
+
32
+ ### Training hyperparameters
33
+
34
+ The following hyperparameters were used during training:
35
+ - learning_rate: 3e-05
36
+ - train_batch_size: 8
37
+ - eval_batch_size: 8
38
+ - seed: 42
39
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
40
+ - lr_scheduler_type: linear
41
+ - num_epochs: 2.0
42
+
43
+ ### Training results
44
+
45
+
46
+
47
+ ### Framework versions
48
+
49
+ - Transformers 4.20.1
50
+ - Pytorch 1.10.0+cu113
51
+ - Datasets 2.3.2
52
+ - Tokenizers 0.12.1
all_results.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.0,
3
+ "eval_exact_match": 92.43333333333334,
4
+ "eval_f1": 94.01345502645503,
5
+ "eval_samples": 3013,
6
+ "train_loss": 0.42857344546809384,
7
+ "train_runtime": 460.898,
8
+ "train_samples": 20261,
9
+ "train_samples_per_second": 87.92,
10
+ "train_steps_per_second": 10.992
11
+ }
config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "whaleloops/phrase-bert",
3
+ "architectures": [
4
+ "BertForQuestionAnswering"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "gradient_checkpointing": false,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 3072,
14
+ "layer_norm_eps": 1e-12,
15
+ "max_position_embeddings": 512,
16
+ "model_type": "bert",
17
+ "num_attention_heads": 12,
18
+ "num_hidden_layers": 12,
19
+ "pad_token_id": 0,
20
+ "position_embedding_type": "absolute",
21
+ "torch_dtype": "float32",
22
+ "transformers_version": "4.20.1",
23
+ "type_vocab_size": 2,
24
+ "use_cache": true,
25
+ "vocab_size": 30522
26
+ }
eval_nbest_predictions.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bca32036e25d8bb4e9c284237924ca33f5d9205c2ef1cd98172eaa6bc34a861a
3
+ size 19171817
eval_predictions.json ADDED
The diff for this file is too large to render. See raw diff
 
eval_results.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.0,
3
+ "eval_exact_match": 92.43333333333334,
4
+ "eval_f1": 94.01345502645503,
5
+ "eval_samples": 3013
6
+ }
finetune_logs.txt ADDED
The diff for this file is too large to render. See raw diff
 
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f69491a3999d9d3af2307a730f0c4012501726e9a42948f8dbde7cb5077d4ebe
3
+ size 435643185
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.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "do_basic_tokenize": true,
4
+ "do_lower_case": true,
5
+ "full_tokenizer_file": null,
6
+ "mask_token": "[MASK]",
7
+ "name_or_path": "whaleloops/phrase-bert",
8
+ "never_split": null,
9
+ "pad_token": "[PAD]",
10
+ "sep_token": "[SEP]",
11
+ "special_tokens_map_file": "/home/shufanwang/.cache/torch/sentence_transformers/public.ukp.informatik.tu-darmstadt.de_reimers_sentence-transformers_v0.2_bert-base-nli-stsb-mean-tokens.zip/0_BERT/special_tokens_map.json",
12
+ "strip_accents": null,
13
+ "tokenize_chinese_chars": true,
14
+ "tokenizer_class": "BertTokenizer",
15
+ "unk_token": "[UNK]"
16
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.0,
3
+ "train_loss": 0.42857344546809384,
4
+ "train_runtime": 460.898,
5
+ "train_samples": 20261,
6
+ "train_samples_per_second": 87.92,
7
+ "train_steps_per_second": 10.992
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 2.0,
5
+ "global_step": 5066,
6
+ "is_hyper_param_search": false,
7
+ "is_local_process_zero": true,
8
+ "is_world_process_zero": true,
9
+ "log_history": [
10
+ {
11
+ "epoch": 0.2,
12
+ "learning_rate": 2.7039084090011843e-05,
13
+ "loss": 1.5542,
14
+ "step": 500
15
+ },
16
+ {
17
+ "epoch": 0.39,
18
+ "learning_rate": 2.407816818002369e-05,
19
+ "loss": 0.5455,
20
+ "step": 1000
21
+ },
22
+ {
23
+ "epoch": 0.59,
24
+ "learning_rate": 2.111725227003553e-05,
25
+ "loss": 0.4854,
26
+ "step": 1500
27
+ },
28
+ {
29
+ "epoch": 0.79,
30
+ "learning_rate": 1.8156336360047373e-05,
31
+ "loss": 0.4279,
32
+ "step": 2000
33
+ },
34
+ {
35
+ "epoch": 0.99,
36
+ "learning_rate": 1.5195420450059218e-05,
37
+ "loss": 0.4169,
38
+ "step": 2500
39
+ },
40
+ {
41
+ "epoch": 1.18,
42
+ "learning_rate": 1.2234504540071062e-05,
43
+ "loss": 0.1873,
44
+ "step": 3000
45
+ },
46
+ {
47
+ "epoch": 1.38,
48
+ "learning_rate": 9.273588630082906e-06,
49
+ "loss": 0.2061,
50
+ "step": 3500
51
+ },
52
+ {
53
+ "epoch": 1.58,
54
+ "learning_rate": 6.312672720094749e-06,
55
+ "loss": 0.1751,
56
+ "step": 4000
57
+ },
58
+ {
59
+ "epoch": 1.78,
60
+ "learning_rate": 3.3517568101065932e-06,
61
+ "loss": 0.1631,
62
+ "step": 4500
63
+ },
64
+ {
65
+ "epoch": 1.97,
66
+ "learning_rate": 3.9084090011843665e-07,
67
+ "loss": 0.1665,
68
+ "step": 5000
69
+ },
70
+ {
71
+ "epoch": 2.0,
72
+ "step": 5066,
73
+ "total_flos": 1.0588267176456192e+16,
74
+ "train_loss": 0.42857344546809384,
75
+ "train_runtime": 460.898,
76
+ "train_samples_per_second": 87.92,
77
+ "train_steps_per_second": 10.992
78
+ }
79
+ ],
80
+ "max_steps": 5066,
81
+ "num_train_epochs": 2,
82
+ "total_flos": 1.0588267176456192e+16,
83
+ "trial_name": null,
84
+ "trial_params": null
85
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c60319c99481c832bfe669bfd48feb0e197e7d8c4756367dcf3f36181a8d3beb
3
+ size 3375
vocab.txt ADDED
The diff for this file is too large to render. See raw diff