LLMCBench
收藏资源简介:
LLMCBench是由北京航空航天大学等机构创建的一个用于评估大型语言模型(LLM)压缩算法性能的综合基准数据集。该数据集包含了11个不同的数据集,涵盖了多种网络架构和部署平台,旨在全面评估LLM压缩技术的效果。数据集的创建过程结合了实际模型生产需求,设计了多个评估指标和赛道,以确保评估的公平性和全面性。LLMCBench主要应用于LLM压缩算法的研究和开发,旨在解决模型在实际部署中的计算和存储效率问题。
LLMCBench is a comprehensive benchmark dataset developed by institutions including Beihang University for evaluating the performance of large language model (LLM) compression algorithms. This dataset encompasses 11 distinct datasets covering a wide range of network architectures and deployment platforms, with the aim of comprehensively assessing the efficacy of LLM compression technologies. The development of LLMCBench incorporates actual demands from model production, and multiple evaluation metrics and tracks have been designed to guarantee the fairness and comprehensiveness of the assessment. LLMCBench is primarily utilized for the research and development of LLM compression algorithms, with the objective of resolving computational and storage efficiency issues encountered by models during actual deployment.
LLMCBench: Benchmarking Large Language Model Compression for Efficient Deployment
数据集概述
LLMCBench是一个用于评估大型语言模型压缩算法性能的基准测试。该基准测试包含了对多个数据集的测试,包括MMLU、MNLI、QNLI、Wikitext2、advGLUE和TruthfulQA。
数据集列表
- MMLU: 用于测试模型在多任务语言理解上的表现。
- MNLI: 用于测试模型在自然语言推理上的表现。
- QNLI: 用于测试模型在问答自然语言推理上的表现。
- Wikitext2: 用于测试模型在维基文本上的表现。
- advGLUE: 用于测试模型在对抗性自然语言理解上的表现。
- TruthfulQA: 用于测试模型在真实性问答上的表现。
测试脚本
- MMLU:
bash scripts/run_mmlu.sh - MNLI:
bash scripts/run_mnli.sh - QNLI:
bash scripts/run_qnli.sh - Wikitext2:
bash scripts/run_wikitext2.sh - advGLUE:
bash scripts/run_advglue.sh - TruthfulQA:
bash scripts/run_tqa.sh - FLOPs:
bash scripts/run_flops.sh
参数概述
--path: 模型检查点位置。--data_dir: 数据集位置。--ntrain: 训练样本数量。--seqlen: 表示LLM的最大输入序列长度。--device: 表示模型放置的设备。--data_file: 数据集文件位置。--test_origin: 表示是否在原始GLUE数据上进行测试。--presets: 用于提示生成的预设。请参阅tqa_presets.py获取选项。--input_path: 数据集文件位置。
引用

- 1LLMCBench: Benchmarking Large Language Model Compression for Efficient Deployment北京航空航天大学 · 2024年



