StableCode-Completion-Alpha-3B
is a 3 billion parameter decoder-only code completion model pre-trained on diverse set of programming languages that were the top used languages based on the 2023 stackoverflow developer survey.
Usage
The model is intended to do single/multiline code completion from a long context window upto 16k tokens.
Get started generating code with
StableCode-Completion-Alpha-3B
by using the following code snippet:
License
: Model checkpoints are licensed under the
Apache 2.0
license.
Contact
: For questions and comments about the model, please email
[email protected]
Model Architecture
Parameters
Hidden Size
Layers
Heads
Sequence Length
2,796,431,360
2560
32
32
16384
Decoder Layer
: Parallel Attention and MLP residuals with a single input LayerNorm (
Wang & Komatsuzaki, 2021
)
Position Embeddings
: Rotary Position Embeddings (
Su et al., 2021
)
Bias
: LayerNorm bias terms only
Training
StableCode-Completion-Alpha-3B
is pre-trained using a multi-stage context length extension schedule following similar work (
Nijkamp et al. 2023
); first pre-training at a context length of 4096 for 300 billion tokens, then fine-tuning at a context length of 16384 for another 200B tokens.
Training Dataset
The first pre-training stage relies on 300B tokens sourced from various top programming languages occuring in the stackoverflow developer survey in the
starcoder-data
dataset. We then finetune it on a longer context augmentation of
starcoder-data
dataset which increased the average token per sample to 20k.
Training Procedure
The model is pre-trained on the dataset mixes mentioned above in mixed-precision BF16), optimized with AdamW, and trained using the StarCoder tokenizer with a vocabulary size of 49k.
Software
: We use a fork of gpt-neox (
EleutherAI, 2021
) and train under 2D parallelism (Data and Tensor Parallel) with ZeRO-1 (
Rajbhandari et al., 2019
) and rely on flash-attention as well as rotary embedding kernels from FlashAttention-2 (
Dao et al., 2023
)
This model is intended to be used responsibly. It is not intended to be used to create unlawful content of any kind, to further any unlawful activity, or to engage in activities with a high risk of physical or economic harm.
How to cite
@misc{StableCodeCompleteAlpha,
url={[https://huggingface.co/stabilityai/stablecode-complete-alpha-3b](https://huggingface.co/stabilityai/stablecode-complete-alpha-3b)},
title={Stable Code Complete Alpha},
author={Adithyan, Reshinth and Phung, Duy and Cooper, Nathan and Pinnaparaju, Nikhil and Laforte, Christian}
}
Runs of stabilityai stablecode-completion-alpha-3b on huggingface.co
117
Total runs
0
24-hour runs
-16
3-day runs
-55
7-day runs
-330
30-day runs
More Information About stablecode-completion-alpha-3b huggingface.co Model
More stablecode-completion-alpha-3b license Visit here:
stablecode-completion-alpha-3b huggingface.co is an AI model on huggingface.co that provides stablecode-completion-alpha-3b's model effect (), which can be used instantly with this stabilityai stablecode-completion-alpha-3b model. huggingface.co supports a free trial of the stablecode-completion-alpha-3b model, and also provides paid use of the stablecode-completion-alpha-3b. Support call stablecode-completion-alpha-3b model through api, including Node.js, Python, http.
stablecode-completion-alpha-3b huggingface.co is an online trial and call api platform, which integrates stablecode-completion-alpha-3b's modeling effects, including api services, and provides a free online trial of stablecode-completion-alpha-3b, you can try stablecode-completion-alpha-3b online for free by clicking the link below.
stabilityai stablecode-completion-alpha-3b online free url in huggingface.co:
stablecode-completion-alpha-3b is an open source model from GitHub that offers a free installation service, and any user can find stablecode-completion-alpha-3b on GitHub to install. At the same time, huggingface.co provides the effect of stablecode-completion-alpha-3b install, users can directly use stablecode-completion-alpha-3b installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
stablecode-completion-alpha-3b install url in huggingface.co: