stabilityai / stablecode-instruct-alpha-3b

huggingface.co
Total runs: 39
24-hour runs: -1
7-day runs: -5
30-day runs: -28
Model's Last Updated: August 08 2023
text-generation

Introduction of stablecode-instruct-alpha-3b

Model Details of stablecode-instruct-alpha-3b

StableCode-Instruct-Alpha-3B

Model Description

StableCode-Instruct-Alpha-3B is a 3 billion parameter decoder-only instruction tuned code model pre-trained on diverse set of programming languages that topped the stackoverflow developer survey.

Usage

The model is intended to follow instruction to generate code. The dataset used to train the model is formatted in Alpaca format. Get started generating code with StableCode-Instruct-Alpha-3B by using the following code snippet:

from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("stabilityai/stablecode-instruct-alpha-3b")
model = AutoModelForCausalLM.from_pretrained(
  "stabilityai/stablecode-instruct-alpha-3b",
  trust_remote_code=True,
  torch_dtype="auto",
)
model.cuda()
inputs = tokenizer("###Instruction\nGenerate a python function to find number of CPU cores###Response\n", 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-Instruct-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 StableCode Research License Copyright (c) Stability AI Ltd. All Rights Reserved
  • 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 4096
  • 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-Instruct-Alpha-3B is the instruction finetuned version on StableCode-Completion-Alpha-3B with code instruction datasets.

Use and Limitations
Intended Use

StableCode-Instruct-Alpha-3B independently generates new code completions, but we recommend that you use StableCode-Instruct-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{StableCodeInstructAlpha, 
      url={[https://huggingface.co/stabilityai/stablecode-instruct-alpha-3b](https://huggingface.co/stabilityai/stablecode-instruct-alpha-3b)}, 
      title={Stable Code Instruct Alpha}, 
      author={Adithyan, Reshinth and Phung, Duy and Cooper, Nathan and Pinnaparaju, Nikhil and Laforte, Christian}
}

Runs of stabilityai stablecode-instruct-alpha-3b on huggingface.co

39
Total runs
-1
24-hour runs
-4
3-day runs
-5
7-day runs
-28
30-day runs

More Information About stablecode-instruct-alpha-3b huggingface.co Model

More stablecode-instruct-alpha-3b license Visit here:

https://choosealicense.com/licenses/other

stablecode-instruct-alpha-3b huggingface.co

stablecode-instruct-alpha-3b huggingface.co is an AI model on huggingface.co that provides stablecode-instruct-alpha-3b's model effect (), which can be used instantly with this stabilityai stablecode-instruct-alpha-3b model. huggingface.co supports a free trial of the stablecode-instruct-alpha-3b model, and also provides paid use of the stablecode-instruct-alpha-3b. Support call stablecode-instruct-alpha-3b model through api, including Node.js, Python, http.

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

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

stabilityai stablecode-instruct-alpha-3b online free

stablecode-instruct-alpha-3b huggingface.co is an online trial and call api platform, which integrates stablecode-instruct-alpha-3b's modeling effects, including api services, and provides a free online trial of stablecode-instruct-alpha-3b, you can try stablecode-instruct-alpha-3b online for free by clicking the link below.

stabilityai stablecode-instruct-alpha-3b online free url in huggingface.co:

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

stablecode-instruct-alpha-3b install

stablecode-instruct-alpha-3b is an open source model from GitHub that offers a free installation service, and any user can find stablecode-instruct-alpha-3b on GitHub to install. At the same time, huggingface.co provides the effect of stablecode-instruct-alpha-3b install, users can directly use stablecode-instruct-alpha-3b installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

stablecode-instruct-alpha-3b install url in huggingface.co:

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

Url of stablecode-instruct-alpha-3b

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

Provider of stablecode-instruct-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: August 04 2023
huggingface.co

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

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

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

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

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated: April 14 2024