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
Added fill-mask widget
Browse files1 unmodified line2345671 unmodified linelicense: apache-2.0language:- lv---# Latvian BERT base model (cased)1 unmodified line234567891011121314151 unmodified linelicense: apache-2.0language:- lvtags:- feature-extraction- fill-maskwidgets:- task: feature-extractiontext: "Latvijā ir 10 valstspilsētas."- task: fill-masktext: "Rīga ir Latvijas [MASK]."---# Latvian BERT base model (cased)
README.md+8