SEA-LION ModernBERT 600M Multilingual NLI 26lang 2mil7 is a natural language inference (NLI) model based on the
ModernBERT architecture. The model was originally the pre-trained
aisingapore/SEA-LION-ModernBERT-600M model, which is then fine-tuned on
MoritzLaurer/multilingual-NLI-26lang-2mil7. The model is then evaluated
zero-shot on
IndoNLI.
1from transformers import pipeline
2
3model_name = "eluve-inc/SEA-LION-ModernBERT-600M-multilingual-NLI-26lang-2mil7"
4
5clf = pipeline("text-classification", model=model_name, tokenizer=model_name, top_k=None, device="cuda:0")
6
7premise = "Minggu lalu saya mulai batuk pilek, dan sekarang saya sudah sembuh."
8hypothesis = "Pasien sudah tidak lagi mengalami gejala batuk pilek."
9
10out = clf({"text": premise, "text_pair": hypothesis})
11# [{'label': 'entailment', 'score': 0.8801426887512207},
12# {'label': 'neutral', 'score': 0.08782942593097687},
13# {'label': 'contradiction', 'score': 0.03202790021896362}]
[1] Mahendra, R., Aji, A. F., Louvan, S., Rahman, F., & Vania, C. (2021, November).
IndoNLI: A Natural Language Inference Dataset for Indonesian.
Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing. Association for Computational Linguistics.
[2] Warner, B., Chaffin, A., Clavié, B., Weller, O., Hallström, O., Taghadouini, S., Gallagher, A., Biswas, R., Ladhak, F., Aarsen, T., Cooper, N., Adams, G., Howard, J., & Poli, I. (2024).
Smarter, Better, Faster, Longer: A Modern Bidirectional Encoder for Fast, Memory Efficient, and Long Context Finetuning and Inference.
arXiv preprint arXiv:2412.13663.