


Stability AI releases stable code 3B model that runs locally and does not require a GPU
Stability AI recently released its first AI model in 2024, called Stable Code 3B. This model has 3 billion parameters and focuses on auxiliary code tasks.
Runs natively on a laptop without the need for a dedicated GPU, while still delivering competitive performance with large models like Meta’s CodeLLaMA 7B.
At the end of 2023, Stability AI began to promote the development of smaller, more compact, and more powerful models, such as the StableLM Zephyr 3B model for text generation.
In early 2024, Stability AI released an important language model called Stable Code 3B. In fact, its preview version, Stable Code Alpha 3B, was released as early as August last year. Since then, Stability AI has continued to improve the technology. This new version of Stable Code 3B is designed specifically for code completion and also has a variety of additional features.
Compared with CodeLLaMA 7b, Stable Code 3B is 60% smaller in size, but achieves performance comparable to the former on programming tasks.
Stable Code 3B achieves SOTA performance (compared to similarly sized models) on the MultiPL-E benchmark, such as Stable Code 3B in Python , performance is better than StarCoder on C, JavaScript, Java, PHP and Rust programming languages.
Research introduction
Stable Code 3B is trained based on Stable LM 3B. The number of training tokens is as high as 4 trillion. In addition, Stable Code also uses data specific to software engineering for training.
Stable Code 3B provides more features, performs well even across multiple languages, and also has other advantages, such as supporting FIM (Fill in the Middle, a new training techniques) function, and can also expand the context size. The basic Stable Code is trained on up to 16,384 token sequences and follows a similar approach to CodeLlama, that is, using Rotary Embeddings, which optionally allows modification of up to 1,000,000 rotation bases. The context length of the model is further extended to 100k tokens.
In terms of model architecture, the Stable Code 3B model is a pure decoder transformer, similar to the LLaMA architecture, with the following modifications:
- Positional embedding: Rotated positional embedding is applied to the first 25% of the head embedding dimensions to improve throughput;
- Tokenizer: Use A modified version of GPTNeoX Tokenizer.NeoX, adding special tokens to train FIM functions, such as
, , etc.
Training
Training data set
The training data set of Stable Code 3B is composed of a filtered mixture of open source large-scale data sets provided on HuggingFace Hub, including Falcon RefinedWeb, CommitPackFT, Github Issues, and StarCoder, and is further supplemented with data from the field of mathematics.
Training Infrastructure
- ##Hardware: Stable Code 3B at Stability AI 256 NVIDIA A100 40GB GPUs are used on the cluster for training.
- Software: Stable Code 3B adopts a branch of gpt-neox, uses ZeRO-1 to train under 2D parallelism (data and tensor parallelism), and relies on flash-attention, SwiGLU ,FlashAttention-2’s rotation embedding kernel.
Finally, let’s take a look at the performance of Stable Code 3B:
A more detailed technical report on Stable Code 3B will be released later, so you can look forward to it.
The above is the detailed content of Stability AI releases stable code 3B model that runs locally and does not require a GPU. For more information, please follow other related articles on the PHP Chinese website!

Since 2008, I've championed the shared-ride van—initially dubbed the "robotjitney," later the "vansit"—as the future of urban transportation. I foresee these vehicles as the 21st century's next-generation transit solution, surpas

Revolutionizing the Checkout Experience Sam's Club's innovative "Just Go" system builds on its existing AI-powered "Scan & Go" technology, allowing members to scan purchases via the Sam's Club app during their shopping trip.

Nvidia's Enhanced Predictability and New Product Lineup at GTC 2025 Nvidia, a key player in AI infrastructure, is focusing on increased predictability for its clients. This involves consistent product delivery, meeting performance expectations, and

Google's Gemma 2: A Powerful, Efficient Language Model Google's Gemma family of language models, celebrated for efficiency and performance, has expanded with the arrival of Gemma 2. This latest release comprises two models: a 27-billion parameter ver

This Leading with Data episode features Dr. Kirk Borne, a leading data scientist, astrophysicist, and TEDx speaker. A renowned expert in big data, AI, and machine learning, Dr. Borne offers invaluable insights into the current state and future traje

There were some very insightful perspectives in this speech—background information about engineering that showed us why artificial intelligence is so good at supporting people’s physical exercise. I will outline a core idea from each contributor’s perspective to demonstrate three design aspects that are an important part of our exploration of the application of artificial intelligence in sports. Edge devices and raw personal data This idea about artificial intelligence actually contains two components—one related to where we place large language models and the other is related to the differences between our human language and the language that our vital signs “express” when measured in real time. Alexander Amini knows a lot about running and tennis, but he still

Caterpillar's Chief Information Officer and Senior Vice President of IT, Jamie Engstrom, leads a global team of over 2,200 IT professionals across 28 countries. With 26 years at Caterpillar, including four and a half years in her current role, Engst

Google Photos' New Ultra HDR Tool: A Quick Guide Enhance your photos with Google Photos' new Ultra HDR tool, transforming standard images into vibrant, high-dynamic-range masterpieces. Ideal for social media, this tool boosts the impact of any photo,


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

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

Hot Article

Hot Tools

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SublimeText3 English version
Recommended: Win version, supports code prompts!

WebStorm Mac version
Useful JavaScript development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

SublimeText3 Linux new version
SublimeText3 Linux latest version