This model is a 61.0% smaller version of
jhu-clsp/mmBERT-small
for the Spanish language, created using vocabulary pruning on the
fineweb-2-trimming dataset.
This pruned model should perform similarly to the original model for Spanish language tasks with a much smaller
memory footprint. However, it may not perform well for other languages present in the original multilingual model as tokens not
commonly used in Spanish were removed from the original multilingual model's vocabulary.
1from transformers import AutoModel, AutoTokenizer
2
3model_name = "mrm8488/spanish-mmBERT-small"
4model = AutoModel.from_pretrained(model_name)
5tokenizer = AutoTokenizer.from_pretrained(model_name)