mimitzu commited on
Commit
dc69b0c
·
verified ·
1 Parent(s): 92c7f46

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -33,3 +33,5 @@ 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
+ checkpoint-2250/tokenizer.json filter=lfs diff=lfs merge=lfs -text
37
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model: FacebookAI/xlm-roberta-large
4
+ tags:
5
+ - token-classification
6
+ - relation-extraction
7
+ - romanian
8
+ - span-detection
9
+ - ner
10
+ language:
11
+ - en
12
+ library_name: transformers
13
+ pipeline_tag: token-classification
14
+ ---
15
+
16
+ # Span detector (English) — entity detection for end-to-end RE
17
+
18
+ [Dragoș Mitruț Vasile](https://scholar.google.com/citations?user=eD-SutAAAAAJ) · [Elena-Simona Apostol](https://scholar.google.com/citations?user=XUZcjpEAAAAJ) · [Stefan-Adrian Toma](https://scholar.google.com/citations?user=wsz8cUgAAAAJ) · [Adrian Paschke](https://scholar.google.com/citations?user=D_ZARycAAAAJ) · [Ciprian-Octavian Truică](https://scholar.google.com/citations?user=ZOKqr-QAAAAJ)
19
+
20
+ [![Paper](https://img.shields.io/badge/Paper-InProgress-blue)](https://When-Paper-Appears-it-Will-Work.com)
21
+ [![arXiv](https://img.shields.io/badge/arXiv-WIP-b31b1b)](https://arxiv.org/abs/WIP)
22
+ [![Website](https://img.shields.io/badge/Project-Website-green)](https://github.com/DS4AI-UPB/crosslingual-romanian-re)
23
+ [![GitHub](https://img.shields.io/badge/GitHub-Code-black?logo=github)](https://github.com/DS4AI-UPB/crosslingual-romanian-re)
24
+ [![License](https://img.shields.io/badge/License-CC%20BY--NC--SA%204.0-lightgrey)](https://creativecommons.org/licenses/by-nc-sa/4.0/)
25
+
26
+ A token-classification model (`FacebookAI/xlm-roberta-large`, 560M) that tags the two entity spans `e1` and `e2` in a plain English sentence, using a five-label BIO scheme (`O`, `B-E1`, `I-E1`, `B-E2`, `I-E2`). It is the first stage of the **end-to-end pipeline baseline**: its predicted spans are wrapped in entity markers and passed to the relation classifier ([`DS4AI-UPB/xlmr-large-ro-re`](https://huggingface.co/DS4AI-UPB/xlmr-large-ro-re)).
27
+
28
+ The SemEval-2010 Task 8 entities are common nominals, not named entities, so an off-the-shelf NER model does not transfer — this detector is trained on the task's own spans instead.
29
+
30
+ ## Results (span F1-Score, held-out validation split)
31
+
32
+ | Metric | Value |
33
+ |--------|-------|
34
+ | Span F1-Score | 0.847 |
35
+ | Precision | 0.83 |
36
+ | Recall | 0.87 |
37
+
38
+ ## Training
39
+
40
+ - Base: `FacebookAI/xlm-roberta-large`
41
+ - Token classification, 5 BIO labels
42
+ - 5 epochs, batch size 16, LR 2e-5, 10% warmup, weight decay 0.01
43
+ - Best checkpoint by span F1-Score on a 10% validation split
44
+ - Single NVIDIA A100 40GB, about 6 min
45
+
46
+ ## Usage
47
+
48
+ ```python
49
+ from transformers import AutoModelForTokenClassification, AutoTokenizer
50
+
51
+ tok = AutoTokenizer.from_pretrained("DS4AI-UPB/span-detector-en")
52
+ model = AutoModelForTokenClassification.from_pretrained("DS4AI-UPB/span-detector-en")
53
+ ```
54
+
55
+ The full pipeline (span detection then relation classification) is in `pipeline_e2e.py` in the [code repository](https://github.com/DS4AI-UPB/crosslingual-romanian-re).
56
+
57
+ ## Citation
58
+
59
+ ```bibtex
60
+ @misc{vasile2026crosslingual,
61
+ title = {Cross-lingual Relation Extraction with Large Language Models: Zero-Shot, Few-Shot, and Fine-Tuned Evaluation on Romanian},
62
+ author = {Vasile, Drago\c{s}-Mitru\c{t} and Apostol, Elena-Simona and Toma, \c{S}tefan-Adrian and Paschke, Adrian and Truic\u{a}, Ciprian-Octavian},
63
+ year = {2026},
64
+ note = {Preprint}
65
+ }
66
+ ```
checkpoint-2250/config.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_cross_attention": false,
3
+ "architectures": [
4
+ "XLMRobertaForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "dtype": "float32",
10
+ "eos_token_id": 2,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 1024,
14
+ "id2label": {
15
+ "0": "O",
16
+ "1": "B-E1",
17
+ "2": "I-E1",
18
+ "3": "B-E2",
19
+ "4": "I-E2"
20
+ },
21
+ "initializer_range": 0.02,
22
+ "intermediate_size": 4096,
23
+ "is_decoder": false,
24
+ "label2id": {
25
+ "B-E1": 1,
26
+ "B-E2": 3,
27
+ "I-E1": 2,
28
+ "I-E2": 4,
29
+ "O": 0
30
+ },
31
+ "layer_norm_eps": 1e-05,
32
+ "max_position_embeddings": 514,
33
+ "model_type": "xlm-roberta",
34
+ "num_attention_heads": 16,
35
+ "num_hidden_layers": 24,
36
+ "output_past": true,
37
+ "pad_token_id": 1,
38
+ "position_embedding_type": "absolute",
39
+ "tie_word_embeddings": true,
40
+ "transformers_version": "5.5.0",
41
+ "type_vocab_size": 1,
42
+ "use_cache": false,
43
+ "vocab_size": 250002
44
+ }
checkpoint-2250/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0004cd5c50a5b66f343e8d791270946147f17e7755ffc7e30b10e7f448df84d1
3
+ size 2235432300
checkpoint-2250/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1b539e96e23bd363a417321dadf040b2cd0cda692576431d6009574193d1fe4d
3
+ size 4471109808
checkpoint-2250/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:970e1a1ba5e54e4ede549c88456284062383775387a6ec93b80ef62261c37157
3
+ size 14645
checkpoint-2250/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d4f2f32432556a40634d33d5c4f71ac519c3cc64e786917b630d15fbc1dc093d
3
+ size 1465
checkpoint-2250/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:19ffc61f7cb57aa8c419fa9d2409c2af1abf4a92ba5a12c60a09cafa5a59c9b1
3
+ size 17098184
checkpoint-2250/tokenizer_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": true,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<s>",
5
+ "cls_token": "<s>",
6
+ "eos_token": "</s>",
7
+ "is_local": false,
8
+ "mask_token": "<mask>",
9
+ "model_max_length": 512,
10
+ "pad_token": "<pad>",
11
+ "sep_token": "</s>",
12
+ "tokenizer_class": "XLMRobertaTokenizer",
13
+ "unk_token": "<unk>"
14
+ }
checkpoint-2250/trainer_state.json ADDED
@@ -0,0 +1,404 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": 2250,
3
+ "best_metric": 0.8691119691119692,
4
+ "best_model_checkpoint": "models/span-detector-en/checkpoint-2250",
5
+ "epoch": 5.0,
6
+ "eval_steps": 500,
7
+ "global_step": 2250,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "epoch": 0.1111111111111111,
14
+ "grad_norm": 91.02240753173828,
15
+ "learning_rate": 4.3555555555555555e-06,
16
+ "loss": 1.4920175170898438,
17
+ "step": 50
18
+ },
19
+ {
20
+ "epoch": 0.2222222222222222,
21
+ "grad_norm": 2.9558212757110596,
22
+ "learning_rate": 8.8e-06,
23
+ "loss": 0.517423095703125,
24
+ "step": 100
25
+ },
26
+ {
27
+ "epoch": 0.3333333333333333,
28
+ "grad_norm": 3.402139186859131,
29
+ "learning_rate": 1.3244444444444447e-05,
30
+ "loss": 0.342627067565918,
31
+ "step": 150
32
+ },
33
+ {
34
+ "epoch": 0.4444444444444444,
35
+ "grad_norm": 17.39611053466797,
36
+ "learning_rate": 1.768888888888889e-05,
37
+ "loss": 0.26056709289550783,
38
+ "step": 200
39
+ },
40
+ {
41
+ "epoch": 0.5555555555555556,
42
+ "grad_norm": 5.071574687957764,
43
+ "learning_rate": 1.9762962962962965e-05,
44
+ "loss": 0.22308229446411132,
45
+ "step": 250
46
+ },
47
+ {
48
+ "epoch": 0.6666666666666666,
49
+ "grad_norm": 4.316466331481934,
50
+ "learning_rate": 1.9269135802469135e-05,
51
+ "loss": 0.20261220932006835,
52
+ "step": 300
53
+ },
54
+ {
55
+ "epoch": 0.7777777777777778,
56
+ "grad_norm": 5.521117687225342,
57
+ "learning_rate": 1.877530864197531e-05,
58
+ "loss": 0.1886991310119629,
59
+ "step": 350
60
+ },
61
+ {
62
+ "epoch": 0.8888888888888888,
63
+ "grad_norm": 5.815828800201416,
64
+ "learning_rate": 1.8281481481481482e-05,
65
+ "loss": 0.16674188613891602,
66
+ "step": 400
67
+ },
68
+ {
69
+ "epoch": 1.0,
70
+ "grad_norm": 4.5299882888793945,
71
+ "learning_rate": 1.7787654320987655e-05,
72
+ "loss": 0.16345125198364258,
73
+ "step": 450
74
+ },
75
+ {
76
+ "epoch": 1.0,
77
+ "eval_loss": 0.13898934423923492,
78
+ "eval_runtime": 2.262,
79
+ "eval_samples_per_second": 353.674,
80
+ "eval_span_f1": 0.8043394033320419,
81
+ "eval_span_precision": 0.7772369898914264,
82
+ "eval_span_recall": 0.8334002408671216,
83
+ "eval_steps_per_second": 22.105,
84
+ "step": 450
85
+ },
86
+ {
87
+ "epoch": 1.1111111111111112,
88
+ "grad_norm": 6.108893394470215,
89
+ "learning_rate": 1.729382716049383e-05,
90
+ "loss": 0.13114701271057128,
91
+ "step": 500
92
+ },
93
+ {
94
+ "epoch": 1.2222222222222223,
95
+ "grad_norm": 4.100574970245361,
96
+ "learning_rate": 1.6800000000000002e-05,
97
+ "loss": 0.11392547607421875,
98
+ "step": 550
99
+ },
100
+ {
101
+ "epoch": 1.3333333333333333,
102
+ "grad_norm": 3.039893388748169,
103
+ "learning_rate": 1.6306172839506175e-05,
104
+ "loss": 0.11778846740722657,
105
+ "step": 600
106
+ },
107
+ {
108
+ "epoch": 1.4444444444444444,
109
+ "grad_norm": 5.236042022705078,
110
+ "learning_rate": 1.5812345679012345e-05,
111
+ "loss": 0.13898660659790038,
112
+ "step": 650
113
+ },
114
+ {
115
+ "epoch": 1.5555555555555556,
116
+ "grad_norm": 28.931020736694336,
117
+ "learning_rate": 1.531851851851852e-05,
118
+ "loss": 0.12507149696350098,
119
+ "step": 700
120
+ },
121
+ {
122
+ "epoch": 1.6666666666666665,
123
+ "grad_norm": 3.843799352645874,
124
+ "learning_rate": 1.4824691358024692e-05,
125
+ "loss": 0.12188647270202636,
126
+ "step": 750
127
+ },
128
+ {
129
+ "epoch": 1.7777777777777777,
130
+ "grad_norm": 4.53892183303833,
131
+ "learning_rate": 1.4330864197530865e-05,
132
+ "loss": 0.12907770156860351,
133
+ "step": 800
134
+ },
135
+ {
136
+ "epoch": 1.8888888888888888,
137
+ "grad_norm": 3.8453285694122314,
138
+ "learning_rate": 1.3837037037037038e-05,
139
+ "loss": 0.10693228721618653,
140
+ "step": 850
141
+ },
142
+ {
143
+ "epoch": 2.0,
144
+ "grad_norm": 3.4621620178222656,
145
+ "learning_rate": 1.334320987654321e-05,
146
+ "loss": 0.12036109924316406,
147
+ "step": 900
148
+ },
149
+ {
150
+ "epoch": 2.0,
151
+ "eval_loss": 0.12033544480800629,
152
+ "eval_runtime": 2.2776,
153
+ "eval_samples_per_second": 351.255,
154
+ "eval_span_f1": 0.8471042471042473,
155
+ "eval_span_precision": 0.8254326561324304,
156
+ "eval_span_recall": 0.8699444885011896,
157
+ "eval_steps_per_second": 21.953,
158
+ "step": 900
159
+ },
160
+ {
161
+ "epoch": 2.111111111111111,
162
+ "grad_norm": 6.322509765625,
163
+ "learning_rate": 1.2849382716049383e-05,
164
+ "loss": 0.07529039859771729,
165
+ "step": 950
166
+ },
167
+ {
168
+ "epoch": 2.2222222222222223,
169
+ "grad_norm": 3.418290615081787,
170
+ "learning_rate": 1.2355555555555557e-05,
171
+ "loss": 0.07295596599578857,
172
+ "step": 1000
173
+ },
174
+ {
175
+ "epoch": 2.3333333333333335,
176
+ "grad_norm": 4.168809413909912,
177
+ "learning_rate": 1.1861728395061728e-05,
178
+ "loss": 0.07213904857635497,
179
+ "step": 1050
180
+ },
181
+ {
182
+ "epoch": 2.4444444444444446,
183
+ "grad_norm": 7.8667988777160645,
184
+ "learning_rate": 1.1367901234567902e-05,
185
+ "loss": 0.07192722797393798,
186
+ "step": 1100
187
+ },
188
+ {
189
+ "epoch": 2.5555555555555554,
190
+ "grad_norm": 7.623446464538574,
191
+ "learning_rate": 1.0874074074074075e-05,
192
+ "loss": 0.06722517967224122,
193
+ "step": 1150
194
+ },
195
+ {
196
+ "epoch": 2.6666666666666665,
197
+ "grad_norm": 6.239801406860352,
198
+ "learning_rate": 1.0380246913580247e-05,
199
+ "loss": 0.07196783065795899,
200
+ "step": 1200
201
+ },
202
+ {
203
+ "epoch": 2.7777777777777777,
204
+ "grad_norm": 3.0218799114227295,
205
+ "learning_rate": 9.88641975308642e-06,
206
+ "loss": 0.06527298927307129,
207
+ "step": 1250
208
+ },
209
+ {
210
+ "epoch": 2.888888888888889,
211
+ "grad_norm": 4.90587854385376,
212
+ "learning_rate": 9.392592592592593e-06,
213
+ "loss": 0.0671483850479126,
214
+ "step": 1300
215
+ },
216
+ {
217
+ "epoch": 3.0,
218
+ "grad_norm": 6.28033447265625,
219
+ "learning_rate": 8.898765432098767e-06,
220
+ "loss": 0.08484127044677735,
221
+ "step": 1350
222
+ },
223
+ {
224
+ "epoch": 3.0,
225
+ "eval_loss": 0.12750950455665588,
226
+ "eval_runtime": 2.2166,
227
+ "eval_samples_per_second": 360.909,
228
+ "eval_span_f1": 0.8465549348230912,
229
+ "eval_span_precision": 0.7978237978237979,
230
+ "eval_span_recall": 0.9016263387544625,
231
+ "eval_steps_per_second": 22.557,
232
+ "step": 1350
233
+ },
234
+ {
235
+ "epoch": 3.111111111111111,
236
+ "grad_norm": 2.5074634552001953,
237
+ "learning_rate": 8.404938271604938e-06,
238
+ "loss": 0.04905274868011475,
239
+ "step": 1400
240
+ },
241
+ {
242
+ "epoch": 3.2222222222222223,
243
+ "grad_norm": 6.0911335945129395,
244
+ "learning_rate": 7.911111111111112e-06,
245
+ "loss": 0.042406258583068845,
246
+ "step": 1450
247
+ },
248
+ {
249
+ "epoch": 3.3333333333333335,
250
+ "grad_norm": 2.984830856323242,
251
+ "learning_rate": 7.417283950617284e-06,
252
+ "loss": 0.04139186382293701,
253
+ "step": 1500
254
+ },
255
+ {
256
+ "epoch": 3.4444444444444446,
257
+ "grad_norm": 4.371617794036865,
258
+ "learning_rate": 6.923456790123458e-06,
259
+ "loss": 0.04349579334259033,
260
+ "step": 1550
261
+ },
262
+ {
263
+ "epoch": 3.5555555555555554,
264
+ "grad_norm": 3.0147387981414795,
265
+ "learning_rate": 6.42962962962963e-06,
266
+ "loss": 0.04111259937286377,
267
+ "step": 1600
268
+ },
269
+ {
270
+ "epoch": 3.6666666666666665,
271
+ "grad_norm": 2.9704976081848145,
272
+ "learning_rate": 5.935802469135803e-06,
273
+ "loss": 0.04131685256958008,
274
+ "step": 1650
275
+ },
276
+ {
277
+ "epoch": 3.7777777777777777,
278
+ "grad_norm": 7.620437145233154,
279
+ "learning_rate": 5.441975308641976e-06,
280
+ "loss": 0.042846541404724124,
281
+ "step": 1700
282
+ },
283
+ {
284
+ "epoch": 3.888888888888889,
285
+ "grad_norm": 5.5054755210876465,
286
+ "learning_rate": 4.9481481481481485e-06,
287
+ "loss": 0.04484175682067871,
288
+ "step": 1750
289
+ },
290
+ {
291
+ "epoch": 4.0,
292
+ "grad_norm": 0.9470939636230469,
293
+ "learning_rate": 4.454320987654322e-06,
294
+ "loss": 0.03779443264007568,
295
+ "step": 1800
296
+ },
297
+ {
298
+ "epoch": 4.0,
299
+ "eval_loss": 0.13389411568641663,
300
+ "eval_runtime": 2.3798,
301
+ "eval_samples_per_second": 336.163,
302
+ "eval_span_f1": 0.8595516382448745,
303
+ "eval_span_precision": 0.8292051756007394,
304
+ "eval_span_recall": 0.8922036595067622,
305
+ "eval_steps_per_second": 21.01,
306
+ "step": 1800
307
+ },
308
+ {
309
+ "epoch": 4.111111111111111,
310
+ "grad_norm": 3.932535171508789,
311
+ "learning_rate": 3.960493827160494e-06,
312
+ "loss": 0.025300028324127196,
313
+ "step": 1850
314
+ },
315
+ {
316
+ "epoch": 4.222222222222222,
317
+ "grad_norm": 1.4799652099609375,
318
+ "learning_rate": 3.4666666666666672e-06,
319
+ "loss": 0.027079813480377198,
320
+ "step": 1900
321
+ },
322
+ {
323
+ "epoch": 4.333333333333333,
324
+ "grad_norm": 0.48528411984443665,
325
+ "learning_rate": 2.9728395061728397e-06,
326
+ "loss": 0.02175631046295166,
327
+ "step": 1950
328
+ },
329
+ {
330
+ "epoch": 4.444444444444445,
331
+ "grad_norm": 4.015340328216553,
332
+ "learning_rate": 2.4790123456790126e-06,
333
+ "loss": 0.03089595079421997,
334
+ "step": 2000
335
+ },
336
+ {
337
+ "epoch": 4.555555555555555,
338
+ "grad_norm": 2.1856842041015625,
339
+ "learning_rate": 1.985185185185185e-06,
340
+ "loss": 0.026017727851867675,
341
+ "step": 2050
342
+ },
343
+ {
344
+ "epoch": 4.666666666666667,
345
+ "grad_norm": 2.22531795501709,
346
+ "learning_rate": 1.491358024691358e-06,
347
+ "loss": 0.022645549774169924,
348
+ "step": 2100
349
+ },
350
+ {
351
+ "epoch": 4.777777777777778,
352
+ "grad_norm": 3.4707603454589844,
353
+ "learning_rate": 9.97530864197531e-07,
354
+ "loss": 0.024853086471557616,
355
+ "step": 2150
356
+ },
357
+ {
358
+ "epoch": 4.888888888888889,
359
+ "grad_norm": 0.565341591835022,
360
+ "learning_rate": 5.037037037037038e-07,
361
+ "loss": 0.028703060150146485,
362
+ "step": 2200
363
+ },
364
+ {
365
+ "epoch": 5.0,
366
+ "grad_norm": 3.8629367351531982,
367
+ "learning_rate": 9.876543209876544e-09,
368
+ "loss": 0.02438181161880493,
369
+ "step": 2250
370
+ },
371
+ {
372
+ "epoch": 5.0,
373
+ "eval_loss": 0.15517345070838928,
374
+ "eval_runtime": 2.2136,
375
+ "eval_samples_per_second": 361.396,
376
+ "eval_span_f1": 0.8691119691119692,
377
+ "eval_span_precision": 0.8475150602409639,
378
+ "eval_span_recall": 0.8918383518225039,
379
+ "eval_steps_per_second": 22.587,
380
+ "step": 2250
381
+ }
382
+ ],
383
+ "logging_steps": 50,
384
+ "max_steps": 2250,
385
+ "num_input_tokens_seen": 0,
386
+ "num_train_epochs": 5,
387
+ "save_steps": 500,
388
+ "stateful_callbacks": {
389
+ "TrainerControl": {
390
+ "args": {
391
+ "should_epoch_stop": false,
392
+ "should_evaluate": false,
393
+ "should_log": false,
394
+ "should_save": true,
395
+ "should_training_stop": true
396
+ },
397
+ "attributes": {}
398
+ }
399
+ },
400
+ "total_flos": 3244325766054048.0,
401
+ "train_batch_size": 16,
402
+ "trial_name": null,
403
+ "trial_params": null
404
+ }
checkpoint-2250/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d54d68660b8b4b11a97b12ca47c021a8884afc800f696f481af4c1face6e9812
3
+ size 5201
config.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_cross_attention": false,
3
+ "architectures": [
4
+ "XLMRobertaForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "dtype": "float32",
10
+ "eos_token_id": 2,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 1024,
14
+ "id2label": {
15
+ "0": "O",
16
+ "1": "B-E1",
17
+ "2": "I-E1",
18
+ "3": "B-E2",
19
+ "4": "I-E2"
20
+ },
21
+ "initializer_range": 0.02,
22
+ "intermediate_size": 4096,
23
+ "is_decoder": false,
24
+ "label2id": {
25
+ "B-E1": 1,
26
+ "B-E2": 3,
27
+ "I-E1": 2,
28
+ "I-E2": 4,
29
+ "O": 0
30
+ },
31
+ "layer_norm_eps": 1e-05,
32
+ "max_position_embeddings": 514,
33
+ "model_type": "xlm-roberta",
34
+ "num_attention_heads": 16,
35
+ "num_hidden_layers": 24,
36
+ "output_past": true,
37
+ "pad_token_id": 1,
38
+ "position_embedding_type": "absolute",
39
+ "tie_word_embeddings": true,
40
+ "transformers_version": "5.5.0",
41
+ "type_vocab_size": 1,
42
+ "use_cache": false,
43
+ "vocab_size": 250002
44
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0004cd5c50a5b66f343e8d791270946147f17e7755ffc7e30b10e7f448df84d1
3
+ size 2235432300
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:19ffc61f7cb57aa8c419fa9d2409c2af1abf4a92ba5a12c60a09cafa5a59c9b1
3
+ size 17098184
tokenizer_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": true,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<s>",
5
+ "cls_token": "<s>",
6
+ "eos_token": "</s>",
7
+ "is_local": false,
8
+ "mask_token": "<mask>",
9
+ "model_max_length": 512,
10
+ "pad_token": "<pad>",
11
+ "sep_token": "</s>",
12
+ "tokenizer_class": "XLMRobertaTokenizer",
13
+ "unk_token": "<unk>"
14
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d54d68660b8b4b11a97b12ca47c021a8884afc800f696f481af4c1face6e9812
3
+ size 5201