nates commited on
Commit
d0c76f6
1 Parent(s): ecff480

add first version

Browse files
README.md CHANGED
@@ -1,3 +1,5 @@
 
 
1
  ---
2
  license: cc-by-4.0
3
  ---
 
1
+ This model is a version of roberta which has been fine tuned for tokenclassification on the [LitBank](https://github.com/dbamman/litbank) dataset.
2
+
3
  ---
4
  license: cc-by-4.0
5
  ---
model_checkpoint/config.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "roberta-base",
3
+ "architectures": [
4
+ "RobertaForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "eos_token_id": 2,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "id2label": {
14
+ "0": "B-FAC",
15
+ "1": "I-FAC",
16
+ "2": "B-GPE",
17
+ "3": "I-GPE",
18
+ "4": "B-LOC",
19
+ "5": "I-LOC",
20
+ "6": "B-ORG",
21
+ "7": "I-ORG",
22
+ "8": "B-PER",
23
+ "9": "I-PER",
24
+ "10": "B-VEH",
25
+ "11": "I-VEH",
26
+ "12": "O"
27
+ },
28
+ "initializer_range": 0.02,
29
+ "intermediate_size": 3072,
30
+ "label2id": {
31
+ "B-FAC": 0,
32
+ "B-GPE": 2,
33
+ "B-LOC": 4,
34
+ "B-ORG": 6,
35
+ "B-PER": 8,
36
+ "B-VEH": 10,
37
+ "I-FAC": 1,
38
+ "I-GPE": 3,
39
+ "I-LOC": 5,
40
+ "I-ORG": 7,
41
+ "I-PER": 9,
42
+ "I-VEH": 11,
43
+ "O": 12
44
+ },
45
+ "layer_norm_eps": 1e-05,
46
+ "max_position_embeddings": 514,
47
+ "model_type": "roberta",
48
+ "num_attention_heads": 12,
49
+ "num_hidden_layers": 12,
50
+ "pad_token_id": 1,
51
+ "position_embedding_type": "absolute",
52
+ "torch_dtype": "float32",
53
+ "transformers_version": "4.18.0",
54
+ "type_vocab_size": 1,
55
+ "use_cache": true,
56
+ "vocab_size": 50265
57
+ }
model_checkpoint/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model_checkpoint/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aea2e481cfee2e9dc1637f1248b2d24f43748332fc25ee87742f06d0fcd3aaf6
3
+ size 992635621
model_checkpoint/pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:645ba5a76a0d7368e80a3f9a3fb036575d6ad18f6985037fdc50fc4bb838795e
3
+ size 496331185
model_checkpoint/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:32559fd6c7a2d8e13383efb4399366cfdad968c5d2880cad28af28f6114404a0
3
+ size 14503
model_checkpoint/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e231269fa3e75d13bad1624c515df82db9983ec08876117767b357d3cb99cc9
3
+ size 623
model_checkpoint/special_tokens_map.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"bos_token": "<s>", "eos_token": "</s>", "unk_token": "<unk>", "sep_token": "</s>", "pad_token": "<pad>", "cls_token": "<s>", "mask_token": {"content": "<mask>", "single_word": false, "lstrip": true, "rstrip": false, "normalized": false}}
model_checkpoint/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
model_checkpoint/tokenizer_config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"errors": "replace", "bos_token": "<s>", "eos_token": "</s>", "sep_token": "</s>", "cls_token": "<s>", "unk_token": "<unk>", "pad_token": "<pad>", "mask_token": "<mask>", "add_prefix_space": true, "trim_offsets": true, "model_max_length": 512, "special_tokens_map_file": null, "name_or_path": "roberta-base", "tokenizer_class": "RobertaTokenizer"}
model_checkpoint/trainer_state.json ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 3.0,
5
+ "global_step": 2625,
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.57,
12
+ "learning_rate": 4.047619047619048e-05,
13
+ "loss": 0.3398,
14
+ "step": 500
15
+ },
16
+ {
17
+ "epoch": 1.0,
18
+ "eval_accuracy": 0.9404197400772744,
19
+ "eval_f1": 0.7127468581687613,
20
+ "eval_loss": 0.16514258086681366,
21
+ "eval_precision": 0.6821305841924399,
22
+ "eval_recall": 0.7462406015037594,
23
+ "eval_runtime": 8.3315,
24
+ "eval_samples_per_second": 96.741,
25
+ "eval_steps_per_second": 12.123,
26
+ "step": 875
27
+ },
28
+ {
29
+ "epoch": 1.14,
30
+ "learning_rate": 3.095238095238095e-05,
31
+ "loss": 0.1895,
32
+ "step": 1000
33
+ },
34
+ {
35
+ "epoch": 1.71,
36
+ "learning_rate": 2.1428571428571428e-05,
37
+ "loss": 0.1346,
38
+ "step": 1500
39
+ },
40
+ {
41
+ "epoch": 2.0,
42
+ "eval_accuracy": 0.9471812434141201,
43
+ "eval_f1": 0.7536488279522335,
44
+ "eval_loss": 0.15585720539093018,
45
+ "eval_precision": 0.7117794486215538,
46
+ "eval_recall": 0.8007518796992481,
47
+ "eval_runtime": 8.3949,
48
+ "eval_samples_per_second": 96.011,
49
+ "eval_steps_per_second": 12.031,
50
+ "step": 1750
51
+ },
52
+ {
53
+ "epoch": 2.29,
54
+ "learning_rate": 1.1904761904761905e-05,
55
+ "loss": 0.1163,
56
+ "step": 2000
57
+ },
58
+ {
59
+ "epoch": 2.86,
60
+ "learning_rate": 2.3809523809523808e-06,
61
+ "loss": 0.0711,
62
+ "step": 2500
63
+ },
64
+ {
65
+ "epoch": 3.0,
66
+ "eval_accuracy": 0.9476642079381805,
67
+ "eval_f1": 0.7592425608656447,
68
+ "eval_loss": 0.17694610357284546,
69
+ "eval_precision": 0.729636048526863,
70
+ "eval_recall": 0.7913533834586466,
71
+ "eval_runtime": 8.2863,
72
+ "eval_samples_per_second": 97.268,
73
+ "eval_steps_per_second": 12.189,
74
+ "step": 2625
75
+ }
76
+ ],
77
+ "max_steps": 2625,
78
+ "num_train_epochs": 3,
79
+ "total_flos": 697494389101650.0,
80
+ "trial_name": null,
81
+ "trial_params": null
82
+ }
model_checkpoint/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dde37f84323c61f149d5d8177e1b6a413f7d8dc34f34ddb2909f69e7a23cc9a3
3
+ size 3119
model_checkpoint/vocab.json ADDED
The diff for this file is too large to render. See raw diff