Downloads · 30 days
81
22% of all-time downloads
edisnord/albert-base-v2-sq
albert-base-v2-sq is a fill-mask model from edisnord. Use it when you need the model to fill a missing word. The card lists the license as mit.
Albanian ALBERT model pretrained on around 16GB of text (I used uonlp/CulturaX's sq configuration) and 1.1 million training steps, using only the masked language modelling task. Trained on a TPU v4-32 pod, made possib…
Downloads · 30 days
81
22% of all-time downloads
All-time downloads
372
Public
Parameters
15.1M
385 MB on disk
Likes
2
Public
Click a slice to open those files.
.v2249 MB · 76%
How the weights are stored.
BF1615.1M · 100%
From the Hugging Face model README
Albanian ALBERT model pretrained on around 16GB of text (I used uonlp/CulturaX's sq configuration) and 1.1 million training steps, using only the masked language modelling task. Trained on a TPU v4-32 pod, made possible through the Google TPU Research Cloud.
Hyperparameters:
All downstream numbers below come from fine-tuning this model (albert-base-v2-sq) end to end on each task and, for context, fine-tuning mBERT (bert-base-multilingual-cased) and XLM-R-base (xlm-roberta-base) with exactly the same procedure (XLM-R-large is added for the tagging tasks). The aim is a like-for-like comparison, not state-of-the-art numbers.
Protocol:
REPORT*.md files. Where a difference is not clearly larger than the noise, this is stated.Test accuracy, mean ± std over 5 seeds. Macro-F1 is given where it differs from accuracy.
| Task | Learning Rate | Number of epochs | albert-sq | mBERT | XLM-R-base |
|---|---|---|---|---|---|
| AlbMoRe[1] (sentiment) | 5e-05 | 10 | 0.957 ± 0.008 | 0.938 ± 0.015 | 0.976 ± 0.007 |
| MASSIVE-sq[4] (intent, 60 classes) | 5e-05 | 5 | 0.860 ± 0.002 (F1 0.803) | 0.851 ± 0.005 (F1 0.811) | 0.863 ± 0.006 (F1 0.816) |
| SIB-200 als_Latn[5] (topic, 99 test sentences) | 5e-05 | 10 | 0.828 ± 0.021 | 0.857 ± 0.013 | 0.873 ± 0.017 |
Notes:
Entity-level F1 (NER) and token accuracy (POS), test, mean ± std over 5 seeds. Span F1 is computed with a BIO span matcher (exact span and type).
| Task | albert-sq | mBERT | XLM-R-base | XLM-R-large |
|---|---|---|---|---|
| AlbNER[2] (official splits) | 0.794 ± 0.015 | 0.777 ± 0.020 | 0.793 ± 0.013 | 0.810 ± 0.025 |
| WikiANN-sq[3] | 0.912 ± 0.004 | 0.932 ± 0.002 | 0.931 ± 0.005 | 0.935 ± 0.003 |
| POS, Gheg-GPS[7] (trained on GPS) | 0.936 ± 0.004 | 0.927 ± 0.005 | 0.940 ± 0.003 | 0.950 ± 0.001 |
| POS, Gheg-GPS (trained on TSA+GPS) | 0.934 ± 0.004 | 0.930 ± 0.005 | 0.943 ± 0.003 | 0.952 ± 0.004 |
| POS, Albanian-TSA[6] (trained on TSA+GPS) | 0.940 ± 0.024 | 0.940 ± 0.021 | 0.949 ± 0.020 | 0.950 ± 0.015 |
| POS, Albanian-TSA (trained on TSA) | 0.938 ± 0.021 | 0.937 ± 0.015 | 0.926 ± 0.017 | 0.900 ± 0.013 |
Notes:
REPORT_pos.md are more informative.Dense bi-encoder (mean pooling, L2-normalised, in-batch negatives with temperature 0.05, 3 epochs, batch 64, queries ≤ 64 / passages ≤ 256 tokens), fine-tuned on Albanian MS MARCO[8] (kzifla/albanian-msmarco). That dataset has no training qrels, so the 55,578 dev queries with qrels were split 49,578 train / 1,000 val / 5,000 test (split seed 42). Metric: MRR@10 on the 5,000 test queries, computed directly (no query/passage-id filtering).
| Eval | albert-sq | mBERT | XLM-R-base |
|---|---|---|---|
| MS MARCO-sq, 206k-passage subset, seed 42 (val-selected LR) | 0.410 (1e-4) | 0.499 (2e-5) | 0.516 (5e-5) |
| MS MARCO-sq, full 8.84M-passage corpus, same checkpoints | 0.118 | 0.151 | 0.154 |
| WebFAQ-sq[9], MS MARCO-fine-tuned model, 208 queries (transfer) | 0.751 | 0.760 | 0.828 |
Notes:
Averaged over tasks, albert-sq is at or near mBERT and generally below XLM-R-base: it is competitive on AlbNER, POS and MASSIVE, behind on WikiANN, SIB-200 and AlbMoRe, and clearly behind on MS MARCO retrieval. Many of the gaps are within seed noise on the smaller test sets; see the confidence intervals above.
<a id="1">[1]</a> Çano, E. (2023). Albmore: A corpus of movie reviews for sentiment analysis in albanian. arXiv preprint arXiv:2306.08526.
<a id="2">[2]</a> Çano, E. (2023). AlbNER: A Corpus for Named Entity Recognition in Albanian. arXiv preprint arXiv:2309.08741.
<a id="3">[3]</a> Pan, X., Zhang, B., May, J., Nothman, J., Knight, K., & Ji, H. (2017). Cross-lingual Name Tagging and Linking for 282 Languages. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 1946–1958, Vancouver, Canada. Association for Computational Linguistics. https://doi.org/10.18653/v1/P17-1178. Albanian splits as distributed by Rahimi, A., Li, Y., & Cohn, T. (2019), Massively Multilingual Transfer for NER, ACL 2019 (P19-1015).
<a id="4">[4]</a> FitzGerald, J., Hench, C., Peris, C., Mackie, S., Rottmann, K., Sanchez, A., Nash, A., Urbach, L., Kakarala, V., Singh, R., Ranganath, S., Crist, L., Britan, M., Leeuwis, W., Tur, G., & Natarajan, P. (2023). MASSIVE: A 1M-Example Multilingual Natural Language Understanding Dataset with 51 Typologically-Diverse Languages. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 4277–4302, Toronto, Canada. Association for Computational Linguistics. https://doi.org/10.18653/v1/2023.acl-long.235
<a id="5">[5]</a> Adelani, D. I., Liu, H., Shen, X., Vassilyev, N., Alabi, J. O., Mao, Y., Gao, H., & Lee, E.-S. A. (2024). SIB-200: A Simple, Inclusive, and Big Evaluation Dataset for Topic Classification in 200+ Languages and Dialects. In Proceedings of the 18th Conference of the European Chapter of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 226–245, St. Julian's, Malta. Association for Computational Linguistics. https://doi.org/10.18653/v1/2024.eacl-long.14
<a id="6">[6]</a> Universal Dependencies Albanian-TSA treebank (Toska; supervised by J. Nivre), UD v2.6+. https://universaldependencies.org/treebanks/sq_tsa/
<a id="7">[7]</a> Universal Dependencies Gheg-GPS treebank (Ebert, Islamaj, Kuqi, Sonnenhauser, Widmer, Plamada), UD v2.11. https://universaldependencies.org/treebanks/aln_gps/
<a id="8">[8]</a> Nguyen, T., et al. (2016). MS MARCO: A Human Generated MAchine Reading COmprehension Dataset. arXiv preprint arXiv:1611.09268. Albanian translation: https://huggingface.co/datasets/kzifla/albanian-msmarco
<a id="9">[9]</a> Dinzinger, M., Caspari, L., Ghosh Dastidar, K., Mitrović, J., & Granitzer, M. (2025). WebFAQ: A Multilingual Collection of Natural Q&A Datasets for Dense Retrieval. In Proceedings of the 48th International ACM SIGIR Conference on Research and Development in Information Retrieval (SIGIR '25), pp. 3802–3811, Padua, Italy. ACM. https://doi.org/10.1145/3726302.3731934