search
HomeTechnology peripheralsAIStability AI open source 3B code generation model: can be completed and debugged

On Monday, Stability AI open sourced the small-volume pre-training model Stable Code Instruct 3B.

Stable Code Instruct 3B is an instruction-adapted coding language model (Code LM) based on Stable Code 3B. By providing natural language prompts, the model can be applied to a variety of tasks, including code generation, mathematical problems, and other tasks related to software engineering.

Stability AI claims that their model shows state-of-the-art performance at scale of 3B, outperforming larger scale models such as CodeLlama’s 7B Instruct, on software engineering related tasks , and even has the same performance as StarChat’s 15B model.

Stability AI开源3B代码生成模型:可补全,还能Debug


  • Model: https://huggingface.co/stabilityai/stable- code-instruct-3b
  • HuggingFace Trial: https://huggingface.co/spaces/stabilityai/stable-code-instruct-3b
  • Stable Code Technical Report: https://static1.squarespace.com/static/6213c340453c3f502425776e/t/6601c5713150412edcd56f8e/1711392114564/Stable_Code_TechReport_release.pdf

Stable Code Instruct 3B has upgraded its code completion function and supports natural language interaction, aiming to improve the efficiency and intuitiveness of programming and software development tasks. Experimental results show that this model performs well in various coding-related tasks, outperforming competing models such as Codellama 7B Instruct and DeepSeek-Coder Instruct 1.3B.

Method introduction

Stable Code is based on Stable LM 3B. Stable Code is a causal pure decoder transformer, similar to the LLaMA architecture. The main differences from LLaMA are as follows:

  • Position embedding, rotation position embedding is applied to the front of the head embedding dimension 25% to improve throughput;
  • Normalization, LayerNorm with learned bias terms;
  • Deviation, except key, query and Bias in value projection, Stable Code removes all bias terms from feedforward networks and multi-head self-attention layers.

Stability AI开源3B代码生成模型:可补全,还能Debug

The following table gives the sampling weight, epoch, category and other information of the pre-training corpus data set.

Stability AI开源3B代码生成模型:可补全,还能Debug

Stability AI开源3B代码生成模型:可补全,还能Debug

##According to Stack Overflow 2023 Developer Survey Report, Stable Code Instruct 3B Key Points Focus on languages ​​like Python, Javascript, Java, C, C++, and Go, which are the most popular and influential for developers of all kinds. While these languages ​​were selected as the focus of training, the model was also trained on other widely adopted languages ​​such as SQL, PHP, and Rust.

Stability AI开源3B代码生成模型:可补全,还能Debug

Stable Code Instruct 3B is powerful even for languages ​​that were not originally included in the training set (such as Lua) test performance. This proficiency likely stems from an understanding of underlying coding principles and the ability to adapt concepts in different programming environments by taking advantage of the inherent predictability of coding tasks.

Stable Code Instruct 3B is proficient not only in code generation, but also in FIM (Fill in the Middle) tasks, database queries, code translation, interpretation and creation. Its instructions are tuned to enable it to understand and act on nuanced instructions, facilitating a wide range of coding tasks beyond simple code completion, including mathematical understanding, logical reasoning, and processing complex technical descriptions surrounding software development.

Performance Evaluation

Compared with leading models such as Codellama 7B Instruct and DeepSeek-Coder Instruct 1.3B, Stable Code Instruct 3B performs better in a series of Demonstrated superior performance in coding tasks.

Stability AI开源3B代码生成模型:可补全,还能Debug

The research team also compared the three models on the Multi-PL benchmark. Despite having fewer parameters, Stable Code Instruct 3B significantly outperformed CodeLlama Instruct on all languages.

Stability AI开源3B代码生成模型:可补全,还能Debug

##Table 8 below shows the performance of several models on the FIM task:

Stability AI开源3B代码生成模型:可补全,还能Debug

Experimental testing shows that Stable Code Instruct 3B matches or exceeds other models in code completion accuracy, understanding of natural language instructions, and ability to span different programming languages.

Stability AI开源3B代码生成模型:可补全,还能Debug

Stable Code Instruct 3B’s parameter size and low hardware requirements make it accessible to a wide audience, empowering developers Ability to work more efficiently. It’s worth mentioning that Stable Code Instruct 3B is now available for commercial purposes with a Stability AI membership.

The above is the detailed content of Stability AI open source 3B code generation model: can be completed and debugged. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:51CTO.COM. If there is any infringement, please contact admin@php.cn delete
Let's Dance: Structured Movement To Fine-Tune Our Human Neural NetsLet's Dance: Structured Movement To Fine-Tune Our Human Neural NetsApr 27, 2025 am 11:09 AM

Scientists have extensively studied human and simpler neural networks (like those in C. elegans) to understand their functionality. However, a crucial question arises: how do we adapt our own neural networks to work effectively alongside novel AI s

New Google Leak Reveals Subscription Changes For Gemini AINew Google Leak Reveals Subscription Changes For Gemini AIApr 27, 2025 am 11:08 AM

Google's Gemini Advanced: New Subscription Tiers on the Horizon Currently, accessing Gemini Advanced requires a $19.99/month Google One AI Premium plan. However, an Android Authority report hints at upcoming changes. Code within the latest Google P

How Data Analytics Acceleration Is Solving AI's Hidden BottleneckHow Data Analytics Acceleration Is Solving AI's Hidden BottleneckApr 27, 2025 am 11:07 AM

Despite the hype surrounding advanced AI capabilities, a significant challenge lurks within enterprise AI deployments: data processing bottlenecks. While CEOs celebrate AI advancements, engineers grapple with slow query times, overloaded pipelines, a

MarkItDown MCP Can Convert Any Document into Markdowns!MarkItDown MCP Can Convert Any Document into Markdowns!Apr 27, 2025 am 09:47 AM

Handling documents is no longer just about opening files in your AI projects, it’s about transforming chaos into clarity. Docs such as PDFs, PowerPoints, and Word flood our workflows in every shape and size. Retrieving structured

How to Use Google ADK for Building Agents? - Analytics VidhyaHow to Use Google ADK for Building Agents? - Analytics VidhyaApr 27, 2025 am 09:42 AM

Harness the power of Google's Agent Development Kit (ADK) to create intelligent agents with real-world capabilities! This tutorial guides you through building conversational agents using ADK, supporting various language models like Gemini and GPT. W

Use of SLM over LLM for Effective Problem Solving - Analytics VidhyaUse of SLM over LLM for Effective Problem Solving - Analytics VidhyaApr 27, 2025 am 09:27 AM

summary: Small Language Model (SLM) is designed for efficiency. They are better than the Large Language Model (LLM) in resource-deficient, real-time and privacy-sensitive environments. Best for focus-based tasks, especially where domain specificity, controllability, and interpretability are more important than general knowledge or creativity. SLMs are not a replacement for LLMs, but they are ideal when precision, speed and cost-effectiveness are critical. Technology helps us achieve more with fewer resources. It has always been a promoter, not a driver. From the steam engine era to the Internet bubble era, the power of technology lies in the extent to which it helps us solve problems. Artificial intelligence (AI) and more recently generative AI are no exception

How to Use Google Gemini Models for Computer Vision Tasks? - Analytics VidhyaHow to Use Google Gemini Models for Computer Vision Tasks? - Analytics VidhyaApr 27, 2025 am 09:26 AM

Harness the Power of Google Gemini for Computer Vision: A Comprehensive Guide Google Gemini, a leading AI chatbot, extends its capabilities beyond conversation to encompass powerful computer vision functionalities. This guide details how to utilize

Gemini 2.0 Flash vs o4-mini: Can Google Do Better Than OpenAI?Gemini 2.0 Flash vs o4-mini: Can Google Do Better Than OpenAI?Apr 27, 2025 am 09:20 AM

The AI landscape of 2025 is electrifying with the arrival of Google's Gemini 2.0 Flash and OpenAI's o4-mini. These cutting-edge models, launched weeks apart, boast comparable advanced features and impressive benchmark scores. This in-depth compariso

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function