from dataclasses import dataclass
from enum import Enum
NUM_FEWSHOT = 0 # Change with your few shot
# ---------------------------------------------------
TITLE = """
🇹🇠Thai LLM Leaderboard
"""
#
INTRODUCTION_TEXT = """
The Thai-LLM Leaderboard 🇹🇠focused on standardizing evaluation methods for large language models (LLMs) in the Thai language based on SEACrowd,
As part of an open community project, we welcome you to submit new evaluation tasks or models.
This leaderboard is developed in collaboration with SCB 10X, Vistec, and SEACrowd.
"""
LLM_BENCHMARKS_TEXT = f"""
Evaluations
The leaderboard currently consists of the following benchmarks:
- Exam
- ThaiExam: ThaiExam is a Thai language benchmark based on examinations for high-school students and investment professionals in Thailand.
- M3Exam: M3Exam is a novel benchmark sourced from real and official human exam questions for evaluating LLMsin a multilingual, multimodal, and multilevel context. Here is Thai subset of M3Exam.
- LLM as Judge
- Thai MT-Bench: MT-Bench inspired varient of LLM as judges specifically developed by Vistec for Thai language and cultural.
- NLU
- Belebele: Belebele is a multiple-choice machine reading comprehension (MRC) dataset spanning 122 language variants. Here is Thai subset of Belebele.
- XNLI: XNLI is an evaluation corpus for language transfer and cross-lingual sentence classification in 15 languages. Here is Thai subset of XNLI.
- XCOPA: XCOPA is a translation and reannotation of the English COPA to measuring commonsense across languages. Here is Thai subset of XCOPA.
- Wisesight: Wisesight sentiment analysis corpus is a social media messages in Thai language with sentiment label.
- NLG
- XLSum: XLSum is a comprehensive and diverse dataset comprising 1.35 million professionally annotated article-summary pairs from BBC. Here is Thai subset of XLSum.
- Flores200: FLORES is a benchmark dataset for machine translation between English and low-resource languages. Here is Thai subset of Flores200.
- iapp Wiki QA Squad: iapp Wiki QA Squad is an extractive question answering dataset from Thai Wikipedia articles.
Metrics Implementations
- BLEU is calculated using flores200 tokenizer using huggingface evaluate implementation.
- ROUGEL is calculated using pythainlp newmm tokenizer using huggingface evaluate implementation.
- LLM as judge rating is judged by OpenAI gpt-4o-2024-05-13 using prompt specific by lmsys MT-Bench.
Reproducibility
To learn more about the evaluation pipeline and reproduce our results, check out the repository seacrowd-experiments.
Acknowledgements
We're grateful to community members for task and model submitting. To contribute, see submit tab.
"""
CITATION_BUTTON_LABEL = "Copy the following snippet to cite these results"
CITATION_BUTTON_TEXT = r"""@misc{lovenia2024seacrowdmultilingualmultimodaldata,
title={SEACrowd: A Multilingual Multimodal Data Hub and Benchmark Suite for Southeast Asian Languages},
author={Holy Lovenia and Rahmad Mahendra and Salsabil Maulana Akbar and Lester James V. Miranda and Jennifer Santoso and Elyanah Aco and Akhdan Fadhilah and Jonibek Mansurov and Joseph Marvin Imperial and Onno P. Kampman and Joel Ruben Antony Moniz and Muhammad Ravi Shulthan Habibi and Frederikus Hudi and Railey Montalan and Ryan Ignatius and Joanito Agili Lopo and William Nixon and Börje F. Karlsson and James Jaya and Ryandito Diandaru and Yuze Gao and Patrick Amadeus and Bin Wang and Jan Christian Blaise Cruz and Chenxi Whitehouse and Ivan Halim Parmonangan and Maria Khelli and Wenyu Zhang and Lucky Susanto and Reynard Adha Ryanda and Sonny Lazuardi Hermawan and Dan John Velasco and Muhammad Dehan Al Kautsar and Willy Fitra Hendria and Yasmin Moslem and Noah Flynn and Muhammad Farid Adilazuarda and Haochen Li and Johanes Lee and R. Damanhuri and Shuo Sun and Muhammad Reza Qorib and Amirbek Djanibekov and Wei Qi Leong and Quyet V. Do and Niklas Muennighoff and Tanrada Pansuwan and Ilham Firdausi Putra and Yan Xu and Ngee Chia Tai and Ayu Purwarianti and Sebastian Ruder and William Tjhi and Peerat Limkonchotiwat and Alham Fikri Aji and Sedrick Keh and Genta Indra Winata and Ruochen Zhang and Fajri Koto and Zheng-Xin Yong and Samuel Cahyawijaya},
year={2024},
eprint={2406.10118},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2406.10118},
}"""