File size: 9,267 Bytes
80b7c55 5b22a44 f497210 5b22a44 fe75274 80b7c55 02e8a42 80b7c55 ab703ac 80b7c55 ab703ac 80b7c55 02e8a42 80b7c55 21ff748 80b7c55 5b22a44 02e8a42 80b7c55 6fe614b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 |
from dataclasses import dataclass
from enum import Enum
@dataclass
class Task:
benchmark: str
metric: str
col_name: str
# Select your tasks here
# ---------------------------------------------------
class Tasks(Enum):
# # task_key in the json file, metric_key in the json file, name to display in the leaderboard
tsg_avg = Task("custom|3gpp:tsg|0", "em", "3GPP-TSG")
# tele_EQ = Task("custom|telecom:math|0", "em", "TELE-EQ")
tele_QnA = Task("custom|telecom:qna|0", "em", "TELE-QnA")
math = Task("custom|math:problem_solving|0", "math_metric", "MATH-500")
folio = Task("custom|folio:logical_reasoning|0", "em", "FOLIO")
spider = Task("custom|spider:text2sql|0", "sql_metric", "Spider")
NUM_FEWSHOT = 0 # Change with your few shot
# ---------------------------------------------------
# Your leaderboard name
TITLE = """<h1 align="left" id="space-title">GSMA Open-Telco LLM Benchmarks</h1>"""
# TITLE = """<img src="https://avatars.githubusercontent.com/u/148767883?v=4" style="width:15%;display:block;margin-left:auto;margin-right:auto;border-radius:15px;">"""
BOTTOM_LOGO = """<img src="https://avatars.githubusercontent.com/u/148767883?v=4" style="width:20%;display:block;margin-left:auto;margin-right:auto;border-radius:15px;">"""
# What does your leaderboard evaluate?
INTRODUCTION_TEXT = """
🌐 GSMA Open-Telco LLM Benchmarks : Evaluate and compare the performance of Telecom Large Language Models (LLMs).
When you submit a model on the "Submit here!" page, it will be evaluated on a set of benchmarks.
More details about the benchmarks and the evaluation process is provided on the “About” page.
"""
# Which evaluations are you running? how can people reproduce what you have?
LLM_BENCHMARKS_TEXT = f"""
# Context
Large Language Models (LLMs) have the potential to revolutionize the Sixth Generation (6G) communication networks. However, current mainstream LLMs generally lack the specialized
knowledge in telecom domain. We plan to collect and build datasets to evaluate the capabilities of LLMs in telecom use-cases.
The benchmark provides an open-source, transparent evaluation framework for AI models in telecom, focusing on:
- Real-World Performance: Testing AI capabilities in customer support, network automation, and regulatory compliance.
- Holistic AI Assessment: Evaluating capability, energy efficiency, and safety, ensuring AI aligns with telecom's operational and sustainability goals.
By setting a unified approach for AI in telecom, the Open-Telco LLM Benchmark helps drive innovation and accelerate AI adoption in next-generation networks.
## Icons & Model types
🟢 : `pretrained` or `continuously pretrained`
🔶 : `fine-tuned on domain-specific datasets`
💬 : `chat models (RLHF, DPO, ORPO, ...)`
🤝 : `base merges and moerges`
If the icon is "?", it indicates that there is insufficient information about the model.
Please provide information about the model through an issue! 🤩
Note 1 : We reserve the right to correct any incorrect tags/icons after manual verification to ensure the accuracy and reliability of the leaderboard.
Note 2 ⚠️ : Some models might be widely discussed as subjects of caution by the community, implying that users should exercise restraint when using them. Models that have used the evaluation set for training to achieve a high leaderboard ranking, among others, may be selected as subjects of caution and might result in their deletion from the leaderboard.
## How it works
📈 We evaluate models using the impressive [LightEval](https://github.com/huggingface/lighteval), a unified and straightforward framework from the HuggingFace Eval Team to test and assess causal language models on a large number of different evaluation tasks.
To ensure a fair and unbiased assessment of the models' true capabilities, all evaluations are conducted in zero-shot settings `0-shots`. This approach eliminates any potential advantage from task-specific fine-tuning, providing a clear indication of how well the models can generalize to new tasks.
Please, consider reaching out to us through the discussions tab if you are working on benchmarks for Telecom LLMs and willing to see them on this leaderboard as well. Your benchmark might change the whole game for Telecom industry !
GPUs are provided by __[HuggingFace](https://huggingface.co/)__ and __[GSMA](https://www.gsma.com/)__ for the evaluations.
## Details and Logs
- Detailed numerical results in the `results` otellm dataset: https://huggingface.co/datasets/otellm/results
- Community queries and running status in the `requests` otellm dataset: https://huggingface.co/datasets/otellm/requests
## More resources
If you still have questions, you can check our FAQ [here](https://huggingface.co/spaces/otellm/Open-Telcom-LLM-Leaderboard/discussions/1)!
"""
EVALUATION_QUEUE_TEXT = """
## Some good practices before submitting a model
### 1) Make sure you can load your model and tokenizer using AutoClasses:
```python
from transformers import AutoConfig, AutoModel, AutoTokenizer
config = AutoConfig.from_pretrained("your model name", revision=revision)
model = AutoModel.from_pretrained("your model name", revision=revision)
tokenizer = AutoTokenizer.from_pretrained("your model name", revision=revision)
```
If this step fails, follow the error messages to debug your model before submitting it. It's likely your model has been improperly uploaded.
Note: make sure your model is public!
Note: if your model needs `use_remote_code=True`, we do not support this option yet but we are working on adding it, stay posted!
### 2) Convert your model weights to [safetensors](https://huggingface.co/docs/safetensors/index)
It's a new format for storing weights which is safer and faster to load and use. It will also allow us to add the number of parameters of your model to the `Extended Viewer`!
### 3) Make sure your model has an open license!
This is a leaderboard for Open LLMs, and we'd love for as many people as possible to know they can use your model 🤗
### 4) Fill up your model card
When we add extra information about models to the leaderboard, it will be automatically taken from the model card
## In case of model failure
If your model is displayed in the `FAILED` category, its execution stopped.
Make sure you have followed the above steps first.
If everything is done, check you can launch the LightEval script on your model locally, using [this script](https://gist.github.com/alielfilali01/d486cfc962dca3ed4091b7c562a4377f).
"""
CITATION_BUTTON_LABEL = "Copy the following snippet to cite these results"
CITATION_BUTTON_TEXT = r"""
@misc{otellm,
author = {Barriah, Lina and De Domenico, Antonio and Powell, Louis and Sana, Mohamed and Wang, Pierre and Piovesan, Nicola and Debbah, Merouane},
title = {GSMA Open-Telco LLM Benchmarks},
year = {2025},
month= {February},
publisher = {HuggingFace Community articles},
howpublished = "\url{https://huggingface.co/blog/otellm/gsma-benchmarks}"
}
@article{maatouk2023teleqna,
title={Teleqna: A benchmark dataset to assess large language models telecommunications knowledge},
author={Maatouk, Ali and Ayed, Fadhel and Piovesan, Nicola and De Domenico, Antonio and Debbah, Merouane and Luo, Zhi-Quan},
journal={arXiv preprint arXiv:2310.15051},
year={2023}
}
@article{maatouk2024large,
title={Large language models for telecom: Forthcoming impact on the industry},
author={Maatouk, Ali and Piovesan, Nicola and Ayed, Fadhel and De Domenico, Antonio and Debbah, Merouane},
journal={IEEE Communications Magazine},
year={2024},
publisher={IEEE}
}
@article{zou2024telecomgpt,
title={TelecomGPT: A framework to build telecom-specfic large language models},
author={Zou, Hang and Zhao, Qiyang and Tian, Yu and Bariah, Lina and Bader, Faouzi and Lestable, Thierry and Debbah, Merouane},
journal={arXiv preprint arXiv:2407.09424},
year={2024}
}
@misc{lighteval,
author = {Fourrier, Clémentine and Habib, Nathan and Wolf, Thomas and Tunstall, Lewis},
title = {LightEval: A lightweight framework for LLM evaluation},
year = {2023},
version = {0.3.0},
url = {https://github.com/huggingface/lighteval}
}
@article{hendrycks2021measuring,
title={Measuring mathematical problem solving with the math dataset},
author={Hendrycks, Dan and Burns, Collin and Kadavath, Saurav and Arora, Akul and Basart, Steven and Tang, Eric and Song, Dawn and Steinhardt, Jacob},
journal={arXiv preprint arXiv:2103.03874},
year={2021}
}
@article{yu2018spider,
title={Spider: A large-scale human-labeled dataset for complex and cross-domain semantic parsing and text-to-sql task},
author={Yu, Tao and Zhang, Rui and Yang, Kai and Yasunaga, Michihiro and Wang, Dongxu and Li, Zifan and Ma, James and Li, Irene and Yao, Qingning and Roman, Shanelle and others},
journal={arXiv preprint arXiv:1809.08887},
year={2018}
}
@article{han2022folio,
title={Folio: Natural language reasoning with first-order logic},
author={Han, Simeng and Schoelkopf, Hailey and Zhao, Yilun and Qi, Zhenting and Riddell, Martin and Zhou, Wenfei and Coady, James and Peng, David and Qiao, Yujie and Benson, Luke and others},
journal={arXiv preprint arXiv:2209.00840},
year={2022}
}""" |