Downloads · 30 days
20
20% of all-time downloads
mrm8488/spanish-mmBERT-small
spanish-mmBERT-small is a fill-mask model from mrm8488. Use it when you need the model to fill a missing word. It is set up for transformers. The card lists the license as mit.
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.
Downloads · 30 days
20
20% of all-time downloads
All-time downloads
100
Public
Parameters
54.8M
219 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors219 MB · 98%
From the Hugging Face model README
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.
Vocabulary size: 32768 tokens (reduced from 256000)
Tokenizer type: BPE
Training samples: 200000 texts
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.
You can use this model with the Transformers library:
from transformers import AutoModel, AutoTokenizer
model_name = "mrm8488/spanish-mmBERT-small"
model = AutoModel.from_pretrained(model_name)
tokenizer = AutoTokenizer.from_pretrained(model_name)