{"title":"可比GPU:利用AMX特征优化BERT模型","authors":"Xiang Gao, Xiancheng Lin, Rongkai Liu","doi":"10.1109/CCAI57533.2023.10201262","DOIUrl":null,"url":null,"abstract":"BERT is widely used in natural language processing (NLP) tasks in AI field. BERT has wide range of application scenarios. The performance of BERT determines the user experience feeling of application directly. AMX technology is a new feature introduced by Intel CPU, which supports two dimensional vector operations to optimize matrix operations. This paper uses AMX features, combined with optimization techniques such as operator fusion and quantization, to significantly improve the inference performance of BERT. Under the premise of a certain accuracy, compared with NVIDIA’s T4 GPU, in the BF16 small batch size scenario, the performance is improved by 1.2 times; Similarly, the performance of INT8 small batch size scene is 1.48 times higher.","PeriodicalId":285760,"journal":{"name":"2023 IEEE 3rd International Conference on Computer Communication and Artificial Intelligence (CCAI)","volume":"32 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2023-05-26","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Comparable GPU: Optimizing the BERT Model with AMX Feature\",\"authors\":\"Xiang Gao, Xiancheng Lin, Rongkai Liu\",\"doi\":\"10.1109/CCAI57533.2023.10201262\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"BERT is widely used in natural language processing (NLP) tasks in AI field. BERT has wide range of application scenarios. The performance of BERT determines the user experience feeling of application directly. AMX technology is a new feature introduced by Intel CPU, which supports two dimensional vector operations to optimize matrix operations. This paper uses AMX features, combined with optimization techniques such as operator fusion and quantization, to significantly improve the inference performance of BERT. Under the premise of a certain accuracy, compared with NVIDIA’s T4 GPU, in the BF16 small batch size scenario, the performance is improved by 1.2 times; Similarly, the performance of INT8 small batch size scene is 1.48 times higher.\",\"PeriodicalId\":285760,\"journal\":{\"name\":\"2023 IEEE 3rd International Conference on Computer Communication and Artificial Intelligence (CCAI)\",\"volume\":\"32 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2023-05-26\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2023 IEEE 3rd International Conference on Computer Communication and Artificial Intelligence (CCAI)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/CCAI57533.2023.10201262\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2023 IEEE 3rd International Conference on Computer Communication and Artificial Intelligence (CCAI)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/CCAI57533.2023.10201262","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
Comparable GPU: Optimizing the BERT Model with AMX Feature
BERT is widely used in natural language processing (NLP) tasks in AI field. BERT has wide range of application scenarios. The performance of BERT determines the user experience feeling of application directly. AMX technology is a new feature introduced by Intel CPU, which supports two dimensional vector operations to optimize matrix operations. This paper uses AMX features, combined with optimization techniques such as operator fusion and quantization, to significantly improve the inference performance of BERT. Under the premise of a certain accuracy, compared with NVIDIA’s T4 GPU, in the BF16 small batch size scenario, the performance is improved by 1.2 times; Similarly, the performance of INT8 small batch size scene is 1.48 times higher.