Downloads · 30 days
37
10% of all-time downloads
Rahvusarhiiv/fi_summariser
fi_summariser is a summarization model from Rahvusarhiiv. Use it when you need a shorter version of a longer text. It is set up for transformers. The card lists the license as other.
Rahvusarhiiv/fisummariser is an experimental Finnish summarization model fine-tuned from facebook/mbart-large-50-many-to-many-mmt.
Downloads · 30 days
37
10% of all-time downloads
All-time downloads
371
Public
Parameters
611M
2.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.4 GB · 99%
From the Hugging Face model README
Rahvusarhiiv/fi_summariser is an experimental Finnish summarization model fine-tuned from facebook/mbart-large-50-many-to-many-mmt.
This is a research release. It is not claimed to be state of the art; the model should be evaluated for the target domain before production use.
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
repo_id = "Rahvusarhiiv/fi_summariser"
text = "Tampereen yliopistollinen sairaala on ottanut käyttöön uuden toimintatavan, jossa osa lapsipotilaista voi saada antibioottihoitoa kotona pumpun avulla. Hoitajan käynti kotona riittää vaihtamaan liuoksen kerran päivässä."
tokenizer = AutoTokenizer.from_pretrained(repo_id, src_lang="fi_FI")
model = AutoModelForSeq2SeqLM.from_pretrained(repo_id)
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=768)
language_token_id = tokenizer.convert_tokens_to_ids("fi_FI")
summary_ids = model.generate(
**inputs,
forced_bos_token_id=language_token_id,
max_new_tokens=512, num_beams=4, no_repeat_ngram_size=3,
)
print(tokenizer.batch_decode(summary_ids, skip_special_tokens=True)[0])
max_new_tokens: 512num_beams: 4no_repeat_ngram_size: 3Fine-tuned from mBART-50 on a rebalanced Finnish mix: Yle news/RSS/archive rows, Theseus theses, filtered synthetic FinePDFs summaries, and downweighted EurLex/legal data. The Yle archive benchmark rows were explicitly removed from training before this checkpoint was trained.
Known public Hub datasets used or partially used where applicable:
Training metadata:
facebook/mbart-large-50-many-to-many-mmt274124676851220260611| benchmark | n | ROUGE-L | ROUGE-1 | ROUGE-2 | ref coverage | src precision | judge factuality | judge coverage | judge overall | words | repeat 4g | legalese | max hit |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| News-supported v2 automatic | 253 | 0.221 | 0.247 | 0.140 | 0.251 | 0.856 | 26.1 | 0.0000 | 0.0000 | 0.0000 | |||
| Wiki4 final automatic | 100 | 0.366 | 0.407 | 0.288 | 0.394 | 0.882 | 53.9 | 0.0000 | 0.0000 | 0.0000 | |||
| GDELT final automatic | 100 | 0.116 | 0.135 | 0.044 | 0.123 | 0.831 | 23.4 | 0.0000 | 0.0000 | 0.0000 |
The automatic metrics include ROUGE, coverage proxies, repetition and artifact checks. The judge metrics use a local Ollama LLM judge on sampled examples and should be treated as comparative, not absolute.
The model reflects the distributions and editorial choices of its source corpora. It may reproduce biases present in news, legal, academic, or synthetic summaries. Human review is recommended for public-facing summaries and high-impact decisions.
Training emissions were not instrumented with CodeCarbon or an equivalent tracker. No numeric CO2 estimate is reported. Training was local fine-tuning of an mBART-50 checkpoint rather than pretraining from scratch.
facebook/mbart-large-50-many-to-many-mmtThe model card uses license: other because the training mix contains multiple upstream data sources with different terms. Treat this as a research-use release and verify upstream data/license constraints before redistribution or commercial use.