Token Classification
Transformers
Safetensors
Romanian
xlm-roberta
relation-extraction
romanian
span-detection
ner
Instructions to use DS4AI-UPB/span-detector-ro with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DS4AI-UPB/span-detector-ro with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="DS4AI-UPB/span-detector-ro")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("DS4AI-UPB/span-detector-ro") model = AutoModelForTokenClassification.from_pretrained("DS4AI-UPB/span-detector-ro", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse files- .gitattributes +2 -0
- README.md +66 -0
- checkpoint-2215/config.json +44 -0
- checkpoint-2215/model.safetensors +3 -0
- checkpoint-2215/optimizer.pt +3 -0
- checkpoint-2215/rng_state.pth +3 -0
- checkpoint-2215/scheduler.pt +3 -0
- checkpoint-2215/tokenizer.json +3 -0
- checkpoint-2215/tokenizer_config.json +14 -0
- checkpoint-2215/trainer_state.json +397 -0
- checkpoint-2215/training_args.bin +3 -0
- config.json +44 -0
- model.safetensors +3 -0
- tokenizer.json +3 -0
- tokenizer_config.json +14 -0
- training_args.bin +3 -0
.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-2215/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 |
+
- ro
|
| 12 |
+
library_name: transformers
|
| 13 |
+
pipeline_tag: token-classification
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# Span detector (Romanian) — 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 |
+
[](https://When-Paper-Appears-it-Will-Work.com)
|
| 21 |
+
[](https://arxiv.org/abs/WIP)
|
| 22 |
+
[](https://github.com/DS4AI-UPB/crosslingual-romanian-re)
|
| 23 |
+
[](https://github.com/DS4AI-UPB/crosslingual-romanian-re)
|
| 24 |
+
[](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 Romanian 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.869 |
|
| 35 |
+
| Precision | 0.85 |
|
| 36 |
+
| Recall | 0.89 |
|
| 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-ro")
|
| 52 |
+
model = AutoModelForTokenClassification.from_pretrained("DS4AI-UPB/span-detector-ro")
|
| 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-2215/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-2215/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:74a11dfbb9fb0c844a992e7d72e7bf42e4fe4be232e8f0fd27f8770acbc34185
|
| 3 |
+
size 2235432300
|
checkpoint-2215/optimizer.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9ad0fe8a3f28f6e45b722078bd7e0f8c2ca89161c2d81125236e0a7fb10aa74c
|
| 3 |
+
size 4471109808
|
checkpoint-2215/rng_state.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:13e18e7eef7ee837463a511a5be368d500c55557fb758ec33768f0a91165e717
|
| 3 |
+
size 14645
|
checkpoint-2215/scheduler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0fe1333595c594c24c18e0fb938b91dd408906762f7c59085e6f84d53bb35763
|
| 3 |
+
size 1465
|
checkpoint-2215/tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:19ffc61f7cb57aa8c419fa9d2409c2af1abf4a92ba5a12c60a09cafa5a59c9b1
|
| 3 |
+
size 17098184
|
checkpoint-2215/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-2215/trainer_state.json
ADDED
|
@@ -0,0 +1,397 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_global_step": 2215,
|
| 3 |
+
"best_metric": 0.7913866410643259,
|
| 4 |
+
"best_model_checkpoint": "models/span-detector-ro/checkpoint-2215",
|
| 5 |
+
"epoch": 5.0,
|
| 6 |
+
"eval_steps": 500,
|
| 7 |
+
"global_step": 2215,
|
| 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.11286681715575621,
|
| 14 |
+
"grad_norm": 68.08213806152344,
|
| 15 |
+
"learning_rate": 4.414414414414415e-06,
|
| 16 |
+
"loss": 1.457045135498047,
|
| 17 |
+
"step": 50
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"epoch": 0.22573363431151242,
|
| 21 |
+
"grad_norm": 3.265794515609741,
|
| 22 |
+
"learning_rate": 8.91891891891892e-06,
|
| 23 |
+
"loss": 0.6208725357055664,
|
| 24 |
+
"step": 100
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"epoch": 0.33860045146726864,
|
| 28 |
+
"grad_norm": 5.004151344299316,
|
| 29 |
+
"learning_rate": 1.3423423423423426e-05,
|
| 30 |
+
"loss": 0.4413882827758789,
|
| 31 |
+
"step": 150
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"epoch": 0.45146726862302483,
|
| 35 |
+
"grad_norm": 5.7839789390563965,
|
| 36 |
+
"learning_rate": 1.792792792792793e-05,
|
| 37 |
+
"loss": 0.3470068359375,
|
| 38 |
+
"step": 200
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"epoch": 0.5643340857787811,
|
| 42 |
+
"grad_norm": 3.8942439556121826,
|
| 43 |
+
"learning_rate": 1.9729051680883094e-05,
|
| 44 |
+
"loss": 0.28600536346435546,
|
| 45 |
+
"step": 250
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"epoch": 0.6772009029345373,
|
| 49 |
+
"grad_norm": 6.952582359313965,
|
| 50 |
+
"learning_rate": 1.92272955343703e-05,
|
| 51 |
+
"loss": 0.2642095947265625,
|
| 52 |
+
"step": 300
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"epoch": 0.7900677200902935,
|
| 56 |
+
"grad_norm": 6.83298397064209,
|
| 57 |
+
"learning_rate": 1.8725539387857503e-05,
|
| 58 |
+
"loss": 0.25833106994628907,
|
| 59 |
+
"step": 350
|
| 60 |
+
},
|
| 61 |
+
{
|
| 62 |
+
"epoch": 0.9029345372460497,
|
| 63 |
+
"grad_norm": 6.150634765625,
|
| 64 |
+
"learning_rate": 1.8223783241344708e-05,
|
| 65 |
+
"loss": 0.23337921142578125,
|
| 66 |
+
"step": 400
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"epoch": 1.0,
|
| 70 |
+
"eval_loss": 0.21296027302742004,
|
| 71 |
+
"eval_runtime": 2.7076,
|
| 72 |
+
"eval_samples_per_second": 290.663,
|
| 73 |
+
"eval_span_f1": 0.7463428098261109,
|
| 74 |
+
"eval_span_precision": 0.7136447611506994,
|
| 75 |
+
"eval_span_recall": 0.7821810818628869,
|
| 76 |
+
"eval_steps_per_second": 18.467,
|
| 77 |
+
"step": 443
|
| 78 |
+
},
|
| 79 |
+
{
|
| 80 |
+
"epoch": 1.0158013544018059,
|
| 81 |
+
"grad_norm": 3.687190055847168,
|
| 82 |
+
"learning_rate": 1.7722027094831913e-05,
|
| 83 |
+
"loss": 0.2248631477355957,
|
| 84 |
+
"step": 450
|
| 85 |
+
},
|
| 86 |
+
{
|
| 87 |
+
"epoch": 1.1286681715575622,
|
| 88 |
+
"grad_norm": 5.032072067260742,
|
| 89 |
+
"learning_rate": 1.7220270948319117e-05,
|
| 90 |
+
"loss": 0.18012603759765625,
|
| 91 |
+
"step": 500
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"epoch": 1.2415349887133182,
|
| 95 |
+
"grad_norm": 6.773411750793457,
|
| 96 |
+
"learning_rate": 1.6718514801806322e-05,
|
| 97 |
+
"loss": 0.17672679901123048,
|
| 98 |
+
"step": 550
|
| 99 |
+
},
|
| 100 |
+
{
|
| 101 |
+
"epoch": 1.3544018058690745,
|
| 102 |
+
"grad_norm": 7.596389293670654,
|
| 103 |
+
"learning_rate": 1.621675865529353e-05,
|
| 104 |
+
"loss": 0.1758015251159668,
|
| 105 |
+
"step": 600
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"epoch": 1.4672686230248306,
|
| 109 |
+
"grad_norm": 6.546236515045166,
|
| 110 |
+
"learning_rate": 1.5715002508780734e-05,
|
| 111 |
+
"loss": 0.17767820358276368,
|
| 112 |
+
"step": 650
|
| 113 |
+
},
|
| 114 |
+
{
|
| 115 |
+
"epoch": 1.580135440180587,
|
| 116 |
+
"grad_norm": 6.54987907409668,
|
| 117 |
+
"learning_rate": 1.5213246362267939e-05,
|
| 118 |
+
"loss": 0.1689610481262207,
|
| 119 |
+
"step": 700
|
| 120 |
+
},
|
| 121 |
+
{
|
| 122 |
+
"epoch": 1.6930022573363432,
|
| 123 |
+
"grad_norm": 6.6734442710876465,
|
| 124 |
+
"learning_rate": 1.4711490215755144e-05,
|
| 125 |
+
"loss": 0.17528322219848633,
|
| 126 |
+
"step": 750
|
| 127 |
+
},
|
| 128 |
+
{
|
| 129 |
+
"epoch": 1.8058690744920993,
|
| 130 |
+
"grad_norm": 4.4618024826049805,
|
| 131 |
+
"learning_rate": 1.4209734069242348e-05,
|
| 132 |
+
"loss": 0.18562889099121094,
|
| 133 |
+
"step": 800
|
| 134 |
+
},
|
| 135 |
+
{
|
| 136 |
+
"epoch": 1.9187358916478554,
|
| 137 |
+
"grad_norm": 3.3405001163482666,
|
| 138 |
+
"learning_rate": 1.3707977922729555e-05,
|
| 139 |
+
"loss": 0.1748759078979492,
|
| 140 |
+
"step": 850
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"epoch": 2.0,
|
| 144 |
+
"eval_loss": 0.19943252205848694,
|
| 145 |
+
"eval_runtime": 2.4433,
|
| 146 |
+
"eval_samples_per_second": 322.101,
|
| 147 |
+
"eval_span_f1": 0.7856380138814736,
|
| 148 |
+
"eval_span_precision": 0.7377788919528704,
|
| 149 |
+
"eval_span_recall": 0.8401370254067941,
|
| 150 |
+
"eval_steps_per_second": 20.464,
|
| 151 |
+
"step": 886
|
| 152 |
+
},
|
| 153 |
+
{
|
| 154 |
+
"epoch": 2.0316027088036117,
|
| 155 |
+
"grad_norm": 4.012196063995361,
|
| 156 |
+
"learning_rate": 1.320622177621676e-05,
|
| 157 |
+
"loss": 0.1657125473022461,
|
| 158 |
+
"step": 900
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"epoch": 2.144469525959368,
|
| 162 |
+
"grad_norm": 4.85115385055542,
|
| 163 |
+
"learning_rate": 1.2704465629703966e-05,
|
| 164 |
+
"loss": 0.11224528312683106,
|
| 165 |
+
"step": 950
|
| 166 |
+
},
|
| 167 |
+
{
|
| 168 |
+
"epoch": 2.2573363431151243,
|
| 169 |
+
"grad_norm": 5.185441017150879,
|
| 170 |
+
"learning_rate": 1.220270948319117e-05,
|
| 171 |
+
"loss": 0.10169005393981934,
|
| 172 |
+
"step": 1000
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"epoch": 2.37020316027088,
|
| 176 |
+
"grad_norm": 2.1609725952148438,
|
| 177 |
+
"learning_rate": 1.1700953336678376e-05,
|
| 178 |
+
"loss": 0.11173209190368652,
|
| 179 |
+
"step": 1050
|
| 180 |
+
},
|
| 181 |
+
{
|
| 182 |
+
"epoch": 2.4830699774266365,
|
| 183 |
+
"grad_norm": 4.523923873901367,
|
| 184 |
+
"learning_rate": 1.1199197190165581e-05,
|
| 185 |
+
"loss": 0.10977806091308594,
|
| 186 |
+
"step": 1100
|
| 187 |
+
},
|
| 188 |
+
{
|
| 189 |
+
"epoch": 2.595936794582393,
|
| 190 |
+
"grad_norm": 4.855619430541992,
|
| 191 |
+
"learning_rate": 1.0697441043652786e-05,
|
| 192 |
+
"loss": 0.11214337348937989,
|
| 193 |
+
"step": 1150
|
| 194 |
+
},
|
| 195 |
+
{
|
| 196 |
+
"epoch": 2.708803611738149,
|
| 197 |
+
"grad_norm": 7.152543067932129,
|
| 198 |
+
"learning_rate": 1.019568489713999e-05,
|
| 199 |
+
"loss": 0.11893964767456054,
|
| 200 |
+
"step": 1200
|
| 201 |
+
},
|
| 202 |
+
{
|
| 203 |
+
"epoch": 2.8216704288939054,
|
| 204 |
+
"grad_norm": 6.524641036987305,
|
| 205 |
+
"learning_rate": 9.693928750627197e-06,
|
| 206 |
+
"loss": 0.12226869583129883,
|
| 207 |
+
"step": 1250
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"epoch": 2.9345372460496613,
|
| 211 |
+
"grad_norm": 6.960052490234375,
|
| 212 |
+
"learning_rate": 9.192172604114401e-06,
|
| 213 |
+
"loss": 0.11107151985168456,
|
| 214 |
+
"step": 1300
|
| 215 |
+
},
|
| 216 |
+
{
|
| 217 |
+
"epoch": 3.0,
|
| 218 |
+
"eval_loss": 0.21068494021892548,
|
| 219 |
+
"eval_runtime": 2.4831,
|
| 220 |
+
"eval_samples_per_second": 316.939,
|
| 221 |
+
"eval_span_f1": 0.7843614718614719,
|
| 222 |
+
"eval_span_precision": 0.7483221476510067,
|
| 223 |
+
"eval_span_recall": 0.8240477544059125,
|
| 224 |
+
"eval_steps_per_second": 20.136,
|
| 225 |
+
"step": 1329
|
| 226 |
+
},
|
| 227 |
+
{
|
| 228 |
+
"epoch": 3.0474040632054176,
|
| 229 |
+
"grad_norm": 2.853614330291748,
|
| 230 |
+
"learning_rate": 8.690416457601606e-06,
|
| 231 |
+
"loss": 0.09532712936401368,
|
| 232 |
+
"step": 1350
|
| 233 |
+
},
|
| 234 |
+
{
|
| 235 |
+
"epoch": 3.160270880361174,
|
| 236 |
+
"grad_norm": 3.681689500808716,
|
| 237 |
+
"learning_rate": 8.188660311088812e-06,
|
| 238 |
+
"loss": 0.07378611564636231,
|
| 239 |
+
"step": 1400
|
| 240 |
+
},
|
| 241 |
+
{
|
| 242 |
+
"epoch": 3.27313769751693,
|
| 243 |
+
"grad_norm": 7.020837306976318,
|
| 244 |
+
"learning_rate": 7.686904164576017e-06,
|
| 245 |
+
"loss": 0.07582737445831299,
|
| 246 |
+
"step": 1450
|
| 247 |
+
},
|
| 248 |
+
{
|
| 249 |
+
"epoch": 3.386004514672686,
|
| 250 |
+
"grad_norm": 5.23745584487915,
|
| 251 |
+
"learning_rate": 7.185148018063221e-06,
|
| 252 |
+
"loss": 0.07718079566955566,
|
| 253 |
+
"step": 1500
|
| 254 |
+
},
|
| 255 |
+
{
|
| 256 |
+
"epoch": 3.4988713318284423,
|
| 257 |
+
"grad_norm": 9.955487251281738,
|
| 258 |
+
"learning_rate": 6.6833918715504275e-06,
|
| 259 |
+
"loss": 0.06493072509765625,
|
| 260 |
+
"step": 1550
|
| 261 |
+
},
|
| 262 |
+
{
|
| 263 |
+
"epoch": 3.6117381489841986,
|
| 264 |
+
"grad_norm": 4.840817928314209,
|
| 265 |
+
"learning_rate": 6.181635725037632e-06,
|
| 266 |
+
"loss": 0.08824222564697265,
|
| 267 |
+
"step": 1600
|
| 268 |
+
},
|
| 269 |
+
{
|
| 270 |
+
"epoch": 3.724604966139955,
|
| 271 |
+
"grad_norm": 5.677621841430664,
|
| 272 |
+
"learning_rate": 5.6798795785248376e-06,
|
| 273 |
+
"loss": 0.07101210117340089,
|
| 274 |
+
"step": 1650
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"epoch": 3.837471783295711,
|
| 278 |
+
"grad_norm": 8.032737731933594,
|
| 279 |
+
"learning_rate": 5.178123432012042e-06,
|
| 280 |
+
"loss": 0.0718701171875,
|
| 281 |
+
"step": 1700
|
| 282 |
+
},
|
| 283 |
+
{
|
| 284 |
+
"epoch": 3.950338600451467,
|
| 285 |
+
"grad_norm": 4.042297840118408,
|
| 286 |
+
"learning_rate": 4.676367285499248e-06,
|
| 287 |
+
"loss": 0.06425511837005615,
|
| 288 |
+
"step": 1750
|
| 289 |
+
},
|
| 290 |
+
{
|
| 291 |
+
"epoch": 4.0,
|
| 292 |
+
"eval_loss": 0.26765182614326477,
|
| 293 |
+
"eval_runtime": 2.559,
|
| 294 |
+
"eval_samples_per_second": 307.537,
|
| 295 |
+
"eval_span_f1": 0.7833355804233517,
|
| 296 |
+
"eval_span_precision": 0.7418283963227783,
|
| 297 |
+
"eval_span_recall": 0.8297629248786061,
|
| 298 |
+
"eval_steps_per_second": 19.539,
|
| 299 |
+
"step": 1772
|
| 300 |
+
},
|
| 301 |
+
{
|
| 302 |
+
"epoch": 4.063205417607223,
|
| 303 |
+
"grad_norm": 8.764328956604004,
|
| 304 |
+
"learning_rate": 4.174611138986453e-06,
|
| 305 |
+
"loss": 0.056166892051696775,
|
| 306 |
+
"step": 1800
|
| 307 |
+
},
|
| 308 |
+
{
|
| 309 |
+
"epoch": 4.176072234762979,
|
| 310 |
+
"grad_norm": 7.72530460357666,
|
| 311 |
+
"learning_rate": 3.6728549924736577e-06,
|
| 312 |
+
"loss": 0.04670883178710938,
|
| 313 |
+
"step": 1850
|
| 314 |
+
},
|
| 315 |
+
{
|
| 316 |
+
"epoch": 4.288939051918736,
|
| 317 |
+
"grad_norm": 3.8620617389678955,
|
| 318 |
+
"learning_rate": 3.171098845960863e-06,
|
| 319 |
+
"loss": 0.050868983268737795,
|
| 320 |
+
"step": 1900
|
| 321 |
+
},
|
| 322 |
+
{
|
| 323 |
+
"epoch": 4.401805869074492,
|
| 324 |
+
"grad_norm": 2.103916883468628,
|
| 325 |
+
"learning_rate": 2.6693426994480686e-06,
|
| 326 |
+
"loss": 0.04208512783050537,
|
| 327 |
+
"step": 1950
|
| 328 |
+
},
|
| 329 |
+
{
|
| 330 |
+
"epoch": 4.514672686230249,
|
| 331 |
+
"grad_norm": 5.275700092315674,
|
| 332 |
+
"learning_rate": 2.1675865529352736e-06,
|
| 333 |
+
"loss": 0.043071775436401366,
|
| 334 |
+
"step": 2000
|
| 335 |
+
},
|
| 336 |
+
{
|
| 337 |
+
"epoch": 4.6275395033860045,
|
| 338 |
+
"grad_norm": 2.3646926879882812,
|
| 339 |
+
"learning_rate": 1.6658304064224786e-06,
|
| 340 |
+
"loss": 0.04527640342712402,
|
| 341 |
+
"step": 2050
|
| 342 |
+
},
|
| 343 |
+
{
|
| 344 |
+
"epoch": 4.74040632054176,
|
| 345 |
+
"grad_norm": 5.4125847816467285,
|
| 346 |
+
"learning_rate": 1.1640742599096839e-06,
|
| 347 |
+
"loss": 0.0429852819442749,
|
| 348 |
+
"step": 2100
|
| 349 |
+
},
|
| 350 |
+
{
|
| 351 |
+
"epoch": 4.853273137697517,
|
| 352 |
+
"grad_norm": 3.726828098297119,
|
| 353 |
+
"learning_rate": 6.623181133968892e-07,
|
| 354 |
+
"loss": 0.06387808799743652,
|
| 355 |
+
"step": 2150
|
| 356 |
+
},
|
| 357 |
+
{
|
| 358 |
+
"epoch": 4.966139954853273,
|
| 359 |
+
"grad_norm": 2.660487413406372,
|
| 360 |
+
"learning_rate": 1.6056196688409433e-07,
|
| 361 |
+
"loss": 0.04610552787780762,
|
| 362 |
+
"step": 2200
|
| 363 |
+
},
|
| 364 |
+
{
|
| 365 |
+
"epoch": 5.0,
|
| 366 |
+
"eval_loss": 0.28751304745674133,
|
| 367 |
+
"eval_runtime": 2.5679,
|
| 368 |
+
"eval_samples_per_second": 306.472,
|
| 369 |
+
"eval_span_f1": 0.7913866410643259,
|
| 370 |
+
"eval_span_precision": 0.764440911499735,
|
| 371 |
+
"eval_span_recall": 0.8203013932328689,
|
| 372 |
+
"eval_steps_per_second": 19.471,
|
| 373 |
+
"step": 2215
|
| 374 |
+
}
|
| 375 |
+
],
|
| 376 |
+
"logging_steps": 50,
|
| 377 |
+
"max_steps": 2215,
|
| 378 |
+
"num_input_tokens_seen": 0,
|
| 379 |
+
"num_train_epochs": 5,
|
| 380 |
+
"save_steps": 500,
|
| 381 |
+
"stateful_callbacks": {
|
| 382 |
+
"TrainerControl": {
|
| 383 |
+
"args": {
|
| 384 |
+
"should_epoch_stop": false,
|
| 385 |
+
"should_evaluate": false,
|
| 386 |
+
"should_log": false,
|
| 387 |
+
"should_save": true,
|
| 388 |
+
"should_training_stop": true
|
| 389 |
+
},
|
| 390 |
+
"attributes": {}
|
| 391 |
+
}
|
| 392 |
+
},
|
| 393 |
+
"total_flos": 3774035149082280.0,
|
| 394 |
+
"train_batch_size": 16,
|
| 395 |
+
"trial_name": null,
|
| 396 |
+
"trial_params": null
|
| 397 |
+
}
|
checkpoint-2215/training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:52c3b65a6c2098ab1511b2ff9989e0cf8480f1dc5eba825ae549b92822497d5d
|
| 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:74a11dfbb9fb0c844a992e7d72e7bf42e4fe4be232e8f0fd27f8770acbc34185
|
| 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:52c3b65a6c2098ab1511b2ff9989e0cf8480f1dc5eba825ae549b92822497d5d
|
| 3 |
+
size 5201
|