ITER: Iterative Transformer-based Entity Recognition and Relation Extraction
This model checkpoint is part of the collection of models published alongside our paper ITER,
accepted at EMNLP 2024.
To ease reproducibility and enable open research, our source code has been published on GitHub.
This model achieved an F1 score of 71.370
on dataset ace05
Using ITER in your code
First, install ITER in your preferred environment:
pip install git+https://github.com/fleonce/iter
To use our model, refer to the following code:
from iter import ITERForRelationExtraction
model = ITERForRelationExtraction.from_pretrained("fleonce/iter-ace05-deberta-large")
tokenizer = model.tokenizer
encodings = tokenizer(
"An art exhibit at the Hakawati Theatre in Arab east Jerusalem was a series of portraits of Palestinians killed in the rebellion .",
return_tensors="pt"
)
generation_output = model.generate(
encodings["input_ids"],
attention_mask=encodings["attention_mask"],
)
# entities
print(generation_output.entities)
# relations between entities
print(generation_output.links)
Checkpoints
We publish checkpoints for the models performing best on the following datasets:
- ACE05:
- CoNLL04:
- ADE:
- SciERC:
- CoNLL03:
- GENIA:
Reproducibility
For each dataset, we selected the best performing checkpoint out of the 5 training runs we performed during training. This model was trained with the following hyperparameters:
- Seed:
2
- Config:
ace05/small_lr_symrel
- PyTorch
2.3.0
with CUDA11.8
and precisiontorch.bfloat16
- GPU:
1 NVIDIA H100 SXM 80 GB GPU
Varying GPU and CUDA version as well as training precision did result in slightly different end results in our tests for reproducibility.
To train this model, refer to the following command:
python3 train.py --dataset ace05/small_lr_symrel --transformer microsoft/deberta-v3-large --use_bfloat16 --seed 2
@inproceedings{citation}
- Downloads last month
- 2
Model tree for fleonce/iter-ace05-deberta-large
Base model
microsoft/deberta-v3-large