transformers pytorch encoder-decoder text2text-generation hubert bert summarization hu dataset:SZTAKI-HLT/HunSum-2-abstractive license:apache-2.0 autotrain_compatible endpoints_compatible region:us
---
datasets:
- SZTAKI-HLT/HunSum-2-abstractive
language:
- hu
license: apache-2.0
metrics:
- rouge
pipeline_tag: text2text-generation
tags:
- hubert
- bert
- summarization
inference:
  parameters:
    num_beams: 5
    length_penalty: 2
    max_length: 128
    no_repeat_ngram_size: 3
    early_stopping: false
---

# Model Card for Bert2Bert-HunSum-2

The Bert2Bert-HunSum-2 is a Hungarian abstractive summarization model, which was trained on the [SZTAKI-HLT/HunSum-2-abstractive dataset](https://huggingface.co/datasets/SZTAKI-HLT/HunSum-2-abstractive).
The model is based on [SZTAKI-HLT/hubert-base-cc](https://huggingface.co/SZTAKI-HLT/hubert-base-cc).

## Intended uses & limitations

- **Model type:** Text Summarization
- **Language(s) (NLP):** Hungarian
- **Resource(s) for more information:**
  - [GitHub Repo](https://github.com/botondbarta/HunSum)
 
## Parameters

- **Batch Size:** 13
- **Learning Rate:** 5e-5
- **Weight Decay:** 0.01
- **Warmup Steps:** 16000
- **Epochs:** 10
- **no_repeat_ngram_size:** 3
- **num_beams:** 5
- **early_stopping:** False

## Results

| Metric        | Value                                       |
| :------------ | :------------------------------------------ |
| ROUGE-1       | 40.95                                       |
| ROUGE-2       | 14.18                                       |
| ROUGE-L       | 27.42                                       |