Edit Content

-
-
Stability AI introduced a neural network for generating and explaining code

Stability AI introduced a neural network for generating and explaining code

Stability_AI_presented_a_neural_network_for_generating_and_explaining_code

Stability AI has just announced the release of StableCode, its first LLM-generative AI coding product. This product is designed to help coders in their day-to-day work, as well as being a great learning tool for aspiring developers ready to take their coding to the next level.

StableCode offers a unique way to increase developer efficiency by utilizing three different models to assist in writing code. The base model was first trained on a diverse set of programming languages from BigCode's stack-dataset (v1.2), and then further trained on popular languages such as Python, Go, Java, Javascript, C, markdown, and C++. In total, we trained our models on 560 B lexemes of code on our high performance computing cluster.

Once the base model was created, the instruction model was customized for specific use cases to solve complex programming problems. To achieve this result, ~120,000 instruction/response pairs of code in Alpaca format were trained on the base model.

Stability AI introduced a neural network for generating and explaining code
Code to use StableCode Instruct to generate a response to a given instruction.

StableCode is the ideal building block for those who want to learn more about coding, and the long context window model is the perfect helper for making single-line and multi-line autocomplete suggestions accessible to the user. This model is designed to handle a large amount of code at once (2-4 times larger than previously released open source models with a 16,000 token context window), allowing the user to view or edit the equivalent of five medium-sized Python files simultaneously, making it an ideal learning tool for beginners looking to move on to more serious tasks.

Stability AI introduced a neural network for generating and explaining code
StableCode completes a fairly complex python file that uses the Pytorch deep learning library (gray text shows StableCode's prediction).

And here is how we compare to other models with a similar number of parameters and number of trained tokens. We use the standard pass@1 and pass@10 metrics using the popular HumanEval benchmark.

Stability AI introduced a neural network for generating and explaining code
stablecode benchmark scores.
Stability AI introduced a neural network for generating and explaining code
HumanEval Benchmark Comparison with similar sized models(3B).

Stability AI's goal is to make technology more accessible, and StableCode is a significant step towards that goal. Soon, people of all backgrounds will be able to create code to solve their everyday problems and improve their lives using artificial intelligence, and we'd like to help make that happen. We hope that StableCode will help the next billion software developers learn how to write code and provide more equitable access to technology around the world.

More in the category

The_Stability_AI_presented_its_new_Stable_Audio model
Stability AI has announced the release of its new Stable Audio model, which uses a diffusion architecture to generate text-based audio...
The_Stability_AI_presented_a_new_language_model_Stable_Chat
Stability AI has unveiled its latest development, Stable Chat, a new open source language model. This model is characterized by high...
Introduced_a_new_version_of_the_program_Stable_Diffusion_XL_1_0,_which
Stable Diffusion XL 1.0 requires fewer computing resources, making it more efficient and available for use on computers with...
Screenshot_5
Stability AI today announces the release of SDXL 0.9, the most advanced development in the Stable Diffusion model suite for text transformation...