stabilityai / stablecode-completion-alpha-3b

huggingface.co
Total runs: 114
24-hour runs: 0
7-day runs: -55
30-day runs: -330
Model's Last Updated: 8월 08 2023
text-generation

Introduction of stablecode-completion-alpha-3b

Model Details of stablecode-completion-alpha-3b

StableCode-Completion-Alpha-3B

Model Description

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:

from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("stabilityai/stablecode-completion-alpha-3b")
model = AutoModelForCausalLM.from_pretrained(
  "stabilityai/stablecode-completion-alpha-3b",
  trust_remote_code=True,
  torch_dtype="auto",
)
model.cuda()
inputs = tokenizer("import torch\nimport torch.nn as nn", return_tensors="pt").to("cuda")
tokens = model.generate(
  **inputs,
  max_new_tokens=48,
  temperature=0.2,
  do_sample=True,
)
print(tokenizer.decode(tokens[0], skip_special_tokens=True))
Model Details
  • Developed by : Stability AI
  • Model type : StableCode-Completion-Alpha-3B models are auto-regressive language models based on the transformer decoder architecture.
  • Language(s) : Code
  • Library : GPT-NeoX
  • License : Model checkpoints are licensed under the Apache 2.0 license.
  • Contact : For questions and comments about the model, please email lm@stability.ai
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.

Use and Limitations
Intended Use

StableCode-Completion-Alpha-3B independently generates new code completions, but we recommend that you use StableCode-Completion-Alpha-3B together with the tool developed by BigCode and HuggingFace (huggingface/huggingface-vscode: Code completion VSCode extension for OSS models (github.com)) , to identify and, if necessary, attribute any outputs that match training code.

Limitations and bias

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

114
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:

https://choosealicense.com/licenses/apache-2.0

stablecode-completion-alpha-3b huggingface.co

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 Url

https://huggingface.co/stabilityai/stablecode-completion-alpha-3b

stabilityai stablecode-completion-alpha-3b online free

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:

https://huggingface.co/stabilityai/stablecode-completion-alpha-3b

stablecode-completion-alpha-3b install

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:

https://huggingface.co/stabilityai/stablecode-completion-alpha-3b

Url of stablecode-completion-alpha-3b

stablecode-completion-alpha-3b huggingface.co Url

Provider of stablecode-completion-alpha-3b huggingface.co

stabilityai
ORGANIZATIONS

Other API from stabilityai

huggingface.co

Total runs: 143.2K
Run Growth: 8.3K
Growth Rate: 5.81%
Updated: 8월 04 2023
huggingface.co

Total runs: 137.2K
Run Growth: 16.4K
Growth Rate: 11.93%
Updated: 7월 10 2024
huggingface.co

Total runs: 34.3K
Run Growth: 3.4K
Growth Rate: 10.04%
Updated: 8월 09 2024
huggingface.co

Total runs: 378
Run Growth: -97.9K
Growth Rate: -25898.41%
Updated: 8월 03 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated: 7월 10 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated: 4월 13 2024