allegro / herbert-klej-cased-v1

huggingface.co
Total runs: 211
24-hour runs: 0
7-day runs: 6
30-day runs: 24
Model's Last Updated: May 29 2021

Introduction of herbert-klej-cased-v1

Model Details of herbert-klej-cased-v1

HerBERT

HerBERT is a BERT-based Language Model trained on Polish Corpora using only MLM objective with dynamic masking of whole words. For more details, please refer to: KLEJ: Comprehensive Benchmark for Polish Language Understanding .

Dataset

HerBERT training dataset is a combination of several publicly available corpora for Polish language:

Corpus Tokens Texts
OSCAR 6710M 145M
Open Subtitles 1084M 1.1M
Wikipedia 260M 1.5M
Wolne Lektury 41M 5.5k
Allegro Articles 18M 33k
Tokenizer

The training dataset was tokenized into subwords using HerBERT Tokenizer ; a character level byte-pair encoding with a vocabulary size of 50k tokens. The tokenizer itself was trained on Wolne Lektury and a publicly available subset of National Corpus of Polish with a fastBPE library.

Tokenizer utilizes XLMTokenizer implementation for that reason, one should load it as allegro/herbert-klej-cased-tokenizer-v1 .

HerBERT models summary
Model WWM Cased Tokenizer Vocab Size Batch Size Train Steps
herbert-klej-cased-v1 YES YES BPE 50K 570 180k
Model evaluation

HerBERT was evaluated on the KLEJ benchmark, publicly available set of nine evaluation tasks for the Polish language understanding. It had the best average performance and obtained the best results for three of them.

Model Average NKJP-NER CDSC-E CDSC-R CBD PolEmo2.0-IN\t PolEmo2.0-OUT DYK PSC AR\t
herbert-klej-cased-v1 80.5 92.7 92.5 91.9 50.3 89.2 76.3 52.1 95.3 84.5

Full leaderboard is available online .

HerBERT usage

Model training and experiments were conducted with transformers in version 2.0.

Example code:

from transformers import XLMTokenizer, RobertaModel

tokenizer = XLMTokenizer.from_pretrained("allegro/herbert-klej-cased-tokenizer-v1")
model = RobertaModel.from_pretrained("allegro/herbert-klej-cased-v1")

encoded_input = tokenizer.encode("Kto ma lepszą sztukę, ma lepszy rząd – to jasne.", return_tensors='pt')
outputs = model(encoded_input)

HerBERT can also be loaded using AutoTokenizer and AutoModel :

tokenizer = AutoTokenizer.from_pretrained("allegro/herbert-klej-cased-tokenizer-v1")
model = AutoModel.from_pretrained("allegro/herbert-klej-cased-v1")
License

CC BY-SA 4.0

Citation

If you use this model, please cite the following paper:

@inproceedings{rybak-etal-2020-klej,
    title = "{KLEJ}: Comprehensive Benchmark for {P}olish Language Understanding",
    author = "Rybak, Piotr  and
      Mroczkowski, Robert  and
      Tracz, Janusz  and
      Gawlik, Ireneusz",
    booktitle = "Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics",
    month = jul,
    year = "2020",
    address = "Online",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/2020.acl-main.111",
    doi = "10.18653/v1/2020.acl-main.111",
    pages = "1191--1201",
}
Authors

The model was trained by Allegro Machine Learning Research team.

You can contact us at: [email protected]

Runs of allegro herbert-klej-cased-v1 on huggingface.co

211
Total runs
0
24-hour runs
3
3-day runs
6
7-day runs
24
30-day runs

More Information About herbert-klej-cased-v1 huggingface.co Model

herbert-klej-cased-v1 huggingface.co

herbert-klej-cased-v1 huggingface.co is an AI model on huggingface.co that provides herbert-klej-cased-v1's model effect (), which can be used instantly with this allegro herbert-klej-cased-v1 model. huggingface.co supports a free trial of the herbert-klej-cased-v1 model, and also provides paid use of the herbert-klej-cased-v1. Support call herbert-klej-cased-v1 model through api, including Node.js, Python, http.

herbert-klej-cased-v1 huggingface.co Url

https://huggingface.co/allegro/herbert-klej-cased-v1

allegro herbert-klej-cased-v1 online free

herbert-klej-cased-v1 huggingface.co is an online trial and call api platform, which integrates herbert-klej-cased-v1's modeling effects, including api services, and provides a free online trial of herbert-klej-cased-v1, you can try herbert-klej-cased-v1 online for free by clicking the link below.

allegro herbert-klej-cased-v1 online free url in huggingface.co:

https://huggingface.co/allegro/herbert-klej-cased-v1

herbert-klej-cased-v1 install

herbert-klej-cased-v1 is an open source model from GitHub that offers a free installation service, and any user can find herbert-klej-cased-v1 on GitHub to install. At the same time, huggingface.co provides the effect of herbert-klej-cased-v1 install, users can directly use herbert-klej-cased-v1 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

herbert-klej-cased-v1 install url in huggingface.co:

https://huggingface.co/allegro/herbert-klej-cased-v1

Url of herbert-klej-cased-v1

herbert-klej-cased-v1 huggingface.co Url

Provider of herbert-klej-cased-v1 huggingface.co

allegro
ORGANIZATIONS

Other API from allegro

huggingface.co

Total runs: 1.5K
Run Growth: -222
Growth Rate: -14.46%
Updated:August 04 2022
huggingface.co

Total runs: 1.3K
Run Growth: -1.1K
Growth Rate: -85.71%
Updated:August 04 2022
huggingface.co

Total runs: 179
Run Growth: -9
Growth Rate: -5.03%
Updated:February 11 2025
huggingface.co

Total runs: 165
Run Growth: 134
Growth Rate: 81.21%
Updated:February 11 2025
huggingface.co

Total runs: 152
Run Growth: 18
Growth Rate: 11.84%
Updated:August 04 2022
huggingface.co

Total runs: 116
Run Growth: 76
Growth Rate: 65.52%
Updated:February 11 2025
huggingface.co

Total runs: 30
Run Growth: 1
Growth Rate: 3.33%
Updated:February 11 2025
huggingface.co

Total runs: 22
Run Growth: -41
Growth Rate: -186.36%
Updated:February 11 2025
huggingface.co

Total runs: 21
Run Growth: 6
Growth Rate: 28.57%
Updated:February 11 2025
huggingface.co

Total runs: 21
Run Growth: 13
Growth Rate: 61.90%
Updated:February 11 2025
huggingface.co

Total runs: 20
Run Growth: 0
Growth Rate: 0.00%
Updated:February 11 2025
huggingface.co

Total runs: 17
Run Growth: 10
Growth Rate: 58.82%
Updated:February 11 2025
huggingface.co

Total runs: 13
Run Growth: 3
Growth Rate: 23.08%
Updated:February 11 2025
huggingface.co

Total runs: 10
Run Growth: 0
Growth Rate: 0.00%
Updated:February 11 2025