Downloads · 30 days
118
8% of all-time downloads
scherrmann/GermanFinBert_SC
GermanFinBert_SC is a fill-mask model from scherrmann. Use it when you need the model to fill a missing word. It is set up for transformers. The card lists the license as apache-2.0.
<img src="https://github.com/mscherrmann/mscherrmann.github.io/blob/master/assets/img/publicationpreview/germanBert.png?raw=true" alt="Alt text for the image" width="500" height="300"/
Downloads · 30 days
118
8% of all-time downloads
All-time downloads
1.4K
Public
Repo size
873 MB
Likes
1
Public
Click a slice to open those files.
.bin437 MB · 100%
From the Hugging Face model README
German FinBERT is a BERT language model focusing on the financial domain within the German language. In my paper, I describe in more detail the steps taken to train the model and show that it outperforms its generic benchmarks for finance specific downstream tasks. This version of German FinBERT is pre-trained from scratch on German finance specific textual data, starting with the Bert-base architecture and the vocabulary of the bert-base-german-cased model of Deepset.
Author Moritz Scherrmann
Paper: here
Architecture: BERT base
Language: German
Specialization: Financial textual data
Framework: MosaicML
German FinBERT's pre-training corpus includes a diverse range of financial documents, such as Bundesanzeiger reports, Handelsblatt articles, MarketScreener data, and additional sources including FAZ, ad-hoc announcements, LexisNexis & Event Registry content, Zeit Online articles, Wikipedia entries, and Gabler Wirtschaftslexikon. In total, the corpus spans from 1996 to 2023, consisting of 12.15 million documents with 10.12 billion tokens over 53.19 GB.
With a batch size of 4096, I train the German FinBERT model for 174,000 steps, summing up to more than 17 epochs. I use an Adam optimizer with decoupled weight decay regularization, with Adam parameters 0.9, 0.98, 1e − 6, a weight decay of 1e − 5 and a maximal learning of 5e − 4. I train the model using a Nvidia DGX A100 node consisting of 8 A100 GPUs with 80 GB of memory each.
To fine-tune the model, I use several datasets, including:
The pre-trained from scratch German FinBERT model demonstrated the following performances on finance-specific downstream tasks:
Ad-Hoc Multi-Label Database:
Ad-Hoc QuAD (Question Answering):
Translated Financial Phrase Bank:
Moritz Scherrmann: scherrmann [at] lmu.de
For additional details regarding the performance on fine-tune datasets and benchmark results, please refer to the full documentation provided in the study.
See also: