Instructions to use AiLab-IMCS-UL/lvbert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AiLab-IMCS-UL/lvbert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="AiLab-IMCS-UL/lvbert")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("AiLab-IMCS-UL/lvbert") model = AutoModel.from_pretrained("AiLab-IMCS-UL/lvbert", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Updated README
Browse files5 unmodified lines67891011121314151617185 unmodified lines# Latvian BERT base model (cased)A pretrained model on the Latvian language using a masked language modeling (MLM) objective.It was introduced in [this paper](http://ebooks.iospress.nl/volumearticle/55531) and first released via [this repository](https://github.com/LUMII-AILab/LVBERT).This model is case-sensitive. It is primarily intended to be fine-tuned on downstream natural language understanding (NLU) tasks.Developed at [AiLab.lv](https://ailab.lv)## CitationPlease cite this paper if you use LVBERT:5 unmodified lines6789101112131415161718192021222324252627282930315 unmodified lines# Latvian BERT base model (cased)A BERT model pretrained on the Latvian language using the masked language modeling and next sentence prediction objectives.It was introduced in [this paper](http://ebooks.iospress.nl/volumearticle/55531) and first released via [this repository](https://github.com/LUMII-AILab/LVBERT).This model is case-sensitive. It is primarily intended to be fine-tuned on downstream natural language understanding (NLU) tasks.Developed at [AiLab.lv](https://ailab.lv)## Training dataLVBERT was pretrained on texts from the [Balanced Corpus of Modern Latvian](https://korpuss.lv/en/id/LVK2018), [Latvian Wikipedia](https://korpuss.lv/en/id/Vikipēdija), [Corpus of News Portal Articles](https://korpuss.lv/en/id/Ziņas), as well as [Corpus of News Portal Comments](https://korpuss.lv/en/id/Barometrs); 500M tokens in total.## TokenizationA SentencePiece model was trained on the training dataset, producing a vocabulary of 32,000 tokens.It was then converted to the WordPiece format used by BERT.## PretrainingWe used the BERT-base configuration with 12 layers, 768 hidden units, 12 heads, 128 sequence length, 128 mini-batch size and 32k token vocabulary.## CitationPlease cite this paper if you use LVBERT:
README.md+14-1