Chua, Vui Seng commited on
Commit
7cc1e88
1 Parent(s): 618da47

Add model collaterals

Browse files
README.md ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ This model is developed with transformers v4.10.3.
2
+
3
+ # Train
4
+ ```bash
5
+ #!/usr/bin/env bash
6
+
7
+ export CUDA_VISIBLE_DEVICES=0
8
+
9
+ OUTDIR=bert-base-uncased-squad
10
+ WORKDIR=transformers/examples/pytorch/question-answering
11
+ cd $WORKDIR
12
+
13
+ nohup python run_qa.py \
14
+ --model_name_or_path bert-base-uncased \
15
+ --dataset_name squad \
16
+ --do_eval \
17
+ --do_train \
18
+ --per_device_train_batch_size 16 \
19
+ --per_device_eval_batch_size 16 \
20
+ --doc_stride 128 \
21
+ --max_seq_length 384 \
22
+ --learning_rate 3e-5 \
23
+ --num_train_epochs 2 \
24
+ --eval_steps 250 \
25
+ --save_steps 2500 \
26
+ --logging_steps 1 \
27
+ --overwrite_output_dir \
28
+ --output_dir $OUTDIR 2>&1 | tee $OUTDIR/run.log &
29
+ ```
30
+
31
+ # Eval
32
+ ```bash
33
+ export CUDA_VISIBLE_DEVICES=0
34
+
35
+ OUTDIR=eval-bert-base-uncased-squad
36
+ WORKDIR=transformers/examples/pytorch/question-answering
37
+ cd $WORKDIR
38
+
39
+ nohup python run_glue.py \
40
+ --model_name_or_path vuiseng9/bert-base-uncased-squad \
41
+ --dataset_name squad \
42
+ --do_eval \
43
+ --per_device_eval_batch_size 16 \
44
+ --max_seq_length 384 \
45
+ --doc_stride 128 \
46
+ --overwrite_output_dir \
47
+ --output_dir $OUTDIR 2>&1 | tee $OUTDIR/run.log &
48
+ ```
all_results.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.0,
3
+ "eval_exact_match": 81.48533585619678,
4
+ "eval_f1": 88.74052434563549,
5
+ "eval_samples": 10784,
6
+ "train_loss": 1.0129275434533833,
7
+ "train_runtime": 2434.5113,
8
+ "train_samples": 88524,
9
+ "train_samples_per_second": 72.724,
10
+ "train_steps_per_second": 4.545
11
+ }
config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "bert-base-uncased",
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.10.3",
23
+ "type_vocab_size": 2,
24
+ "use_cache": true,
25
+ "vocab_size": 30522
26
+ }
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": 81.48533585619678,
4
+ "eval_f1": 88.74052434563549,
5
+ "eval_samples": 10784
6
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f48d2ec282a44502b9bbb4c4adb7b9c10f5b043629d24ab1e163d996ba7cbb18
3
+ size 435656113
run.log ADDED
The diff for this file is too large to render. See raw diff
 
runs/Oct20_21-47-33_rtxws2/1634791695.9202113/events.out.tfevents.1634791695.rtxws2.353801.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:99b431864233158f6d314bc7fe4af59e10d82e83651bc7d187e040098150eedc
3
+ size 4239
runs/Oct20_21-47-33_rtxws2/events.out.tfevents.1634791695.rtxws2.353801.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:404df4c5a8ed03a85d6868a23f73c457475d8c66c5d5534b71565910f7f0d8e8
3
+ size 1740337
runs/Oct20_21-47-33_rtxws2/events.out.tfevents.1634794203.rtxws2.353801.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:05f47099f666284f5919c020c647c86af853883684a6ded8179bd81237e8a62f
3
+ size 191
special_tokens_map.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]"}
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"do_lower_case": true, "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "tokenize_chinese_chars": true, "strip_accents": null, "model_max_length": 512, "special_tokens_map_file": null, "name_or_path": "bert-base-uncased", "tokenizer_class": "BertTokenizer"}
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.0,
3
+ "train_loss": 1.0129275434533833,
4
+ "train_runtime": 2434.5113,
5
+ "train_samples": 88524,
6
+ "train_samples_per_second": 72.724,
7
+ "train_steps_per_second": 4.545
8
+ }
trainer_state.json ADDED
The diff for this file is too large to render. See raw diff
 
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:712ba5cbd109908dcfd55daba9b0c8e0b72f7c1ffefe25ad5d7c8f8b2cefbff5
3
+ size 2671
vocab.txt ADDED
The diff for this file is too large to render. See raw diff