Downloads · 30 days
11
1% of all-time downloads
vgaraujov/led-base-16384-spanish
led-base-16384-spanish is a machine learning model from vgaraujov. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
LEDO is based on BARTO and was introduced in the paper Sequence-to-Sequence Spanish Pre-trained Language Models.
Downloads · 30 days
11
1% of all-time downloads
All-time downloads
1.3K
Public
Repo size
1.9 GB
Likes
2
Public
Click a slice to open those files.
.bin957 MB · 100%
From the Hugging Face model README
LEDO is based on BARTO and was introduced in the paper Sequence-to-Sequence Spanish Pre-trained Language Models.
LEDO is a BART-based model (transformer encoder-decoder) with a bidirectional (BERT-like) encoder and an autoregressive (GPT-like) decoder. BART is pre-trained by (1) corrupting text with an arbitrary noising function and (2) learning a model to reconstruct the original text.
To process 16K tokens, the BARTO's position embedding matrix was simply copied 16 times.
BARTO is particularly effective when fine-tuned for long-range summarization and question answering.
You can use the raw model for text infilling. However, the model is mainly meant to be fine-tuned on a supervised dataset.
This model does not have a slow tokenizer (LEDTokenizer).
Here is how to use this model in PyTorch:
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained('vgaraujov/led-base-16384-spanish')
model = AutoModel.from_pretrained('vgaraujov/led-base-16384-spanish')
inputs = tokenizer("Hola amigo, bienvenido a casa.", return_tensors="pt")
outputs = model(**inputs)
last_hidden_states = outputs.last_hidden_state
@misc{araujo2023sequencetosequence,
title={Sequence-to-Sequence Spanish Pre-trained Language Models},
author={Vladimir Araujo and Maria Mihaela Trusca and Rodrigo Tufiño and Marie-Francine Moens},
year={2023},
eprint={2309.11259},
archivePrefix={arXiv},
primaryClass={cs.CL}
}