Downloads · 30 days
45
2% of all-time downloads
Addedk/mbert-swedish-distilled-cased
mbert-swedish-distilled-cased is a fill-mask model from Addedk. Use it when you need the model to fill a missing word. It is set up for transformers. The card lists the license as apache-2.0.
This model is a distilled version of mBERT. It was distilled using Swedish data, the 2010-2015 portion of the Swedish Culturomics Gigaword Corpus. The code for the distillation process can be found here. This was done…
Downloads · 30 days
45
2% of all-time downloads
All-time downloads
1.9K
Public
Parameters
135M
2 GB on disk
Likes
2
Public
Click a slice to open those files.
.h5911 MB · 46%
How the weights are stored.
F32135M · 100%
From the Hugging Face model README
This model is a distilled version of mBERT. It was distilled using Swedish data, the 2010-2015 portion of the Swedish Culturomics Gigaword Corpus. The code for the distillation process can be found here. This was done as part of my Master's Thesis: Task-agnostic knowledge distillation of mBERT to Swedish.
This is a 6-layer version of mBERT, having been distilled using the LightMBERT distillation method, but without freezing the embedding layer.
You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to be fine-tuned on a downstream task.
The data used for distillation was the 2010-2015 portion of the Swedish Culturomics Gigaword Corpus. The tokenized data had a file size of approximately 9 GB.
When evaluated on the SUCX 3.0 dataset, it achieved an average F1 score of 0.859 which is competitive with the score mBERT obtained, 0.866.
When evaluated on the English WikiANN dataset, it achieved an average F1 score of 0.826 which is competitive with the score mBERT obtained, 0.849.
Additional results and comparisons are presented in my Master's Thesis