Downloads · 30 days
6
7% of all-time downloads
VytautoDidziojoUniversitetas/LT-ABS-extractive-xlm-roberta
LT-ABS-extractive-xlm-roberta is a text classification model from VytautoDidziojoUniversitetas. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as openrail.
Model Name: Hierarchical-XLM-RoBERTa Extractive Summariser
Downloads · 30 days
6
7% of all-time downloads
All-time downloads
87
Public
Parameters
289M
1.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.2 GB · 100%
From the Hugging Face model README
Model Name: Hierarchical-XLM-RoBERTa Extractive Summariser
Base Model: FacebookAI/xlm-roberta-base
Architecture: Hierarchical sentence classifier (XLM-RoBERTa + positional embeddings + 2-layer Transformer + linear head)
Task: Extractive summarisation of Lithuanian texts
The model stacks four components on top of XLM-RoBERTa-base:
| Layer | Role |
|---|---|
| XLM-RoBERTa encoder | Encodes each sentence (chunked if > 512 tokens) |
| SentenceAggregator | Attention-weighted pooling of chunk vectors → one vector per sentence |
| Positional Embeddings | Injects sentence-order information |
| 2-layer Transformer | Contextualises sentence vectors across the full article |
| Linear Classifier | Outputs 2 logits (include / exclude) per sentence |
At inference time, sentences are selected using Maximal Marginal Relevance (MMR) with a token budget, balancing relevance and diversity.
Use this model for Lithuanian extractive summarisation with Hugging Face transformers and safetensors libraries.
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
pip install transformers datasets safetensors evaluate pandas stanza bert-score
Download input preprocessing script (preprocessing.py) from this repository.
import stanza
from transformers import AutoTokenizer, AutoModel
from preprocessing import full_document_processing
# Sentence splitting (Stanza Lithuanian pipeline)
nlp = stanza.Pipeline(lang="lt", processors="tokenize", tokenize_no_ssplit=True, use_gpu=True)
text = "Your article text here..."
doc = nlp(text)
sentences = full_document_processing(text, nlp, article=True)
# Load model and tokenizer
tokenizer = AutoTokenizer.from_pretrained("xlm-roberta-base")
model = AutoModel.from_pretrained(
"VytautoDidziojoUniversitetas/LT-ABS-extractive-xlm-roberta",
trust_remote_code=True,
)
model.eval()
summary_sentences = model.summarize(sentences, tokenizer)
print(" ".join(summary_sentences))
Fine-tuned on a VytautoDidziojoUniversitetas/LT_Summarisation_Corpus covering four domains:
training:
epochs: 6
gradient_accumulation_steps: 8
learning_rate: 2e-5
warmup_ratio: 0.1
optimizer: AdamW
Environment: Hugging Face Transformers
Hardware: 1× NVIDIA RTX A6000 ADA
Evaluated on the test split of VytautoDidziojoUniversitetas/LT_Summarisation_Corpus. Reference summaries are extractive (summary_extract column).
| ROUGE-1 | ROUGE-2 | ROUGE-L | BERTScore Precision | BERTScore Recall | BERTScore F1 |
|---|---|---|---|---|---|
| 0.435 | 0.219 | 0.299 | 0.882 | 0.888 | 0.885 |
Please cite the model as:
Vytautas Magnus University and Vilnius University. 2026. Abstract Corpora for Artificial Intelligence, Extractive model. Hugging Face. https://huggingface.co/VytautoDidziojoUniversitetas/LT-ABS-extractive-xlm-roberta
BibTeX:
@misc{lt_acai_ext_2026,
author = {{Vytautas Magnus University} and {Vilnius University}},
title = {Lithuanian Abstract Corpora Extractive Model},
year = {2026},
publisher = {Hugging Face},
url = {https://huggingface.co/VytautoDidziojoUniversitetas/LT-ABS-extractive-xlm-roberta},
note = {Developed under the New Generation Lithuania plan, project 02-101-K-0001.}
}
Funded by the European Union — NextGenerationEU. Naujos kartos Lietuva.
This project is funded by the Recovery and Resilience Facility under the Lithuanian "Naujos kartos Lietuva" plan and by the State Budget of the Republic of Lithuania.
Project: Santraukų tekstynai dirbtiniam intelektui — Project No. 02-101-K-0001.