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))
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
37
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:
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 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:
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: