Run this model with HF Jobs
Run HPLT/hplt_bert_base_ca on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/HPLT/hplt_bert_base_ca. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/HPLT/hplt_bert_base_ca on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use HPLT/hplt_bert_base_ca with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use HPLT/hplt_bert_base_ca with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="HPLT/hplt_bert_base_ca", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForMaskedLM model = AutoModelForMaskedLM.from_pretrained("HPLT/hplt_bert_base_ca", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Updating README.md
Browse files15 unmodified lines1617181920212232 unmodified lines55565758596061626364656667686915 unmodified lines<img src="https://hplt-project.org/_next/static/media/logo-hplt.d5e16ca5.svg" width=12.5%>This is one of the encoder-only monolingual language models trained as a first release by the [HPLT project](https://hplt-project.org/).It is a so called masked language models. In particular, we used the modification of the classic BERT model named [LTG-BERT](https://aclanthology.org/2023.findings-eacl.146/).A monolingual LTG-BERT model is trained for every major language in the [HPLT 1.2 data release](https://hplt-project.org/datasets/v1.2) (*75* models total).32 unmodified linesThe following classes are currently implemented: `AutoModel`, `AutoModelMaskedLM`, `AutoModelForSequenceClassification`, `AutoModelForTokenClassification`, `AutoModelForQuestionAnswering` and `AutoModeltForMultipleChoice`.## Cite us```bibtex@misc{degibert2024new,title={A New Massive Multilingual Dataset for High-Performance Language Technologies},author={Ona de Gibert and Graeme Nail and Nikolay Arefyev and Marta Bañón and Jelmer van der Linde and Shaoxiong Ji and Jaume Zaragoza-Bernabeu and Mikko Aulamo and Gema Ramírez-Sánchez and Andrey Kutuzov and Sampo Pyysalo and Stephan Oepen and Jörg Tiedemann},year={2024},eprint={2403.14009},archivePrefix={arXiv},primaryClass={cs.CL}}```15 unmodified lines1617181920212232 unmodified lines55565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710815 unmodified lines<img src="https://hplt-project.org/_next/static/media/logo-hplt.d5e16ca5.svg" width=12.5%>This is one of the encoder-only monolingual language models trained as a first release by the [HPLT project](https://hplt-project.org/).It is a so called masked language model. In particular, we used the modification of the classic BERT model named [LTG-BERT](https://aclanthology.org/2023.findings-eacl.146/).A monolingual LTG-BERT model is trained for every major language in the [HPLT 1.2 data release](https://hplt-project.org/datasets/v1.2) (*75* models total).32 unmodified linesThe following classes are currently implemented: `AutoModel`, `AutoModelMaskedLM`, `AutoModelForSequenceClassification`, `AutoModelForTokenClassification`, `AutoModelForQuestionAnswering` and `AutoModeltForMultipleChoice`.## Intermediate checkpointsWe are releasing 10 intermediate checkpoints for each model at intervals of every 3125 training steps in separate branches. The naming convention is `stepXXX`: for example, `step18750`.You can load a specific model revision with `transformers` using the argument `revision`:```pythonmodel = AutoModelForMaskedLM.from_pretrained("HPLT/hplt_bert_base_en", revision="step21875", trust_remote_code=True)```You can access all the revisions for the models with the following code:```pythonfrom huggingface_hub import list_repo_refsout = list_repo_refs("HPLT/hplt_bert_base_en")print([b.name for b in out.branches])```## Cite us```bibtex@inproceedings{de-gibert-etal-2024-new-massive,title = "A New Massive Multilingual Dataset for High-Performance Language Technologies",author = {de Gibert, Ona andNail, Graeme andArefyev, Nikolay andBa{\~n}{\'o}n, Marta andvan der Linde, Jelmer andJi, Shaoxiong andZaragoza-Bernabeu, Jaume andAulamo, Mikko andRam{\'\i}rez-S{\'a}nchez, Gema andKutuzov, Andrey andPyysalo, Sampo andOepen, Stephan andTiedemann, J{\"o}rg},editor = "Calzolari, Nicoletta andKan, Min-Yen andHoste, Veronique andLenci, Alessandro andSakti, Sakriani andXue, Nianwen",booktitle = "Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024)",month = may,year = "2024",address = "Torino, Italia",publisher = "ELRA and ICCL",url = "https://aclanthology.org/2024.lrec-main.100",pages = "1116--1128",abstract = "We present the HPLT (High Performance Language Technologies) language resources, a new massive multilingual dataset including both monolingual and bilingual corpora extracted from CommonCrawl and previously unused web crawls from the Internet Archive. We describe our methods for data acquisition, management and processing of large corpora, which rely on open-source software tools and high-performance computing. Our monolingual collection focuses on low- to medium-resourced languages and covers 75 languages and a total of {\mbox{$\approx$}} 5.6 trillion word tokens de-duplicated on the document level. Our English-centric parallel corpus is derived from its monolingual counterpart and covers 18 language pairs and more than 96 million aligned sentence pairs with roughly 1.4 billion English tokens. The HPLT language resources are one of the largest open text corpora ever released, providing a great resource for language modeling and machine translation training. We publicly release the corpora, the software, and the tools used in this work.",}```
README.md+48-9