arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.01226cs.CL
收藏

Stable Code 技术报告

Stable Code Technical Report

Stability AI(稳定性人工智能公司)

Nikhil Pinnaparaju, Reshinth Adithyan, Duy Phung, Jonathan Tow, James Baicoianu, Ashish Datta, Maksym Zhuravinskyi, Dakota Mahan, Marco Bellagente, Carlos Riquelme, Nathan Cooper

AI总结:

本文提出 Stable Code 系列代码语言模型,包括基础模型和指令微调变体,在 3B 参数规模下实现代码补全与多轮对话等任务的最先进性能,并开源权重及量化版本。

摘要:

我们介绍了 Stable Code,这是我们新一代代码语言模型系列中的第一个模型,它作为一个通用基础代码语言模型,面向代码补全、推理、数学以及其他基于软件工程的任务。此外,我们还介绍了一个指令微调变体,名为 Stable Code Instruct,它允许在自然聊天界面中与模型对话,以执行问答和基于指令的任务。在本技术报告中,我们详细说明了得到这两个模型的数据和训练过程。它们的权重可通过 Hugging Face 供任何人下载和使用,地址为 https://huggingface.co/stabilityai/stable-code-3b 和 https://huggingface.co/stabilityai/stable-code-instruct-3b。本报告包含对模型的全面评估,包括多语言编程基准测试,以及专注于多轮对话的 MT benchmark。在发布时,Stable Code 是 3B 参数以下最先进的开放模型,甚至在流行的 Multi-PL 基准测试上的表现可与 70 亿和 150 亿参数的更大模型相媲美。与其他指令微调模型相比,Stable Code Instruct 在 MT-Bench 编码任务和 Multi-PL 补全方面也展现出最先进的性能。鉴于其具有吸引力的小尺寸,我们还提供了在多种边缘设备上的吞吐量测量结果。此外,我们开源了多个量化检查点,并提供了它们与原始模型相比的性能指标。

英文摘要:

We introduce Stable Code, the first in our new-generation of code language models series, which serves as a general-purpose base code language model targeting code completion, reasoning, math, and other software engineering-based tasks. Additionally, we introduce an instruction variant named Stable Code Instruct that allows conversing with the model in a natural chat interface for performing question-answering and instruction-based tasks. In this technical report, we detail the data and training procedure leading to both models. Their weights are available via Hugging Face for anyone to download and use at https://huggingface.co/stabilityai/stable-code-3b and https://huggingface.co/stabilityai/stable-code-instruct-3b. This report contains thorough evaluations of the models, including multilingual programming benchmarks, and the MT benchmark focusing on multi-turn dialogues. At the time of its release, Stable Code is the state-of-the-art open model under 3B parameters and even performs comparably to larger models of sizes 7 billion and 15 billion parameters on the popular Multi-PL benchmark. Stable Code Instruct also exhibits state-of-the-art performance on the MT-Bench coding tasks and on Multi-PL completion compared to other instruction tuned models. Given its appealing small size, we also provide throughput measurements on a number of edge devices. In addition, we open source several quantized checkpoints and provide their performance metrics compared to the original model.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑