CodeFuse-13B:一个预训练的多语言代码大语言模型
CodeFuse-13B: A Pretrained Multi-lingual Code Large Language Model
AI总结:
本文提出开源预训练代码大语言模型CodeFuse-13B,通过高质量多语言预训练数据优化,支持中英文提示和40余种编程语言,在HumanEval-x及中文场景中表现领先。
摘要:
代码大语言模型(Code LLMs)因其在软件工程全生命周期中的广泛应用而受到业界的显著关注。然而,现有模型在多语言代码相关任务中理解非英语输入的有效性仍远未得到充分研究。本文介绍了CodeFuse-13B,一个开源的预训练代码大语言模型。它专为同时支持英文和中文提示的代码相关任务而设计,并支持超过40种编程语言。CodeFuse通过利用高质量预训练数据集来实现其有效性,该数据集经过程序分析器的精心过滤,并在训练过程中进行了优化。我们使用真实世界使用场景、行业标准基准HumanEval-x以及专为中文提示设计的CodeFuseEval进行了广泛实验。为了评估CodeFuse的有效性,我们积极收集了来自蚂蚁集团软件开发过程的宝贵人类反馈,CodeFuse已在该过程中成功部署。结果表明,CodeFuse-13B在HumanEval pass@1上取得了37.10%的得分,使其成为具有相似参数规模的顶级多语言代码大语言模型之一。在代码生成、代码翻译、代码注释和测试用例生成等实际场景中,面对中文提示时,CodeFuse的表现优于其他模型。
英文摘要:
Code Large Language Models (Code LLMs) have gained significant attention in the industry due to their wide applications in the full lifecycle of software engineering. However, the effectiveness of existing models in understanding non-English inputs for multi-lingual code-related tasks is still far from well studied. This paper introduces CodeFuse-13B, an open-sourced pre-trained code LLM. It is specifically designed for code-related tasks with both English and Chinese prompts and supports over 40 programming languages. CodeFuse achieves its effectiveness by utilizing a high quality pre-training dataset that is carefully filtered by program analyzers and optimized during the training process. Extensive experiments are conducted using real-world usage scenarios, the industry-standard benchmark HumanEval-x, and the specially designed CodeFuseEval for Chinese prompts. To assess the effectiveness of CodeFuse, we actively collected valuable human feedback from the AntGroup's software development process where CodeFuse has been successfully deployed. The results demonstrate that CodeFuse-13B achieves a HumanEval pass@1 score of 37.10%, positioning it as one of the top multi-lingual code LLMs with similar parameter sizes. In practical scenarios, such as code generation, code translation, code comments, and testcase generation, CodeFuse performs better than other models when confronted with Chinese prompts.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。