The model was trained on GitHub code as well as additional selected data sources such as Arxiv and Wikipedia. As such it is
not
an instruction model and commands like "Write a function that computes the square root." do not work well.
Generation
Here are some examples to get started with the model. You can find a script for fine-tuning in StarCoder2's
GitHub repository
.
First, make sure to install
transformers
from source:
The pretraining dataset of the model was filtered for permissive licenses and code with no license only. Nevertheless, the model can generate source code verbatim from the dataset. The code's license might require attribution and/or other specific requirements that must be respected. We provide a
search index
that lets you search through the pretraining data to identify where the generated code came from, and apply the proper attribution to your code.
Limitations
The model has been trained on source code from 600+ programming languages. The predominant language in source is English although other languages are also present. As such the model is capable to generate code snippets provided some context but the generated code is not guaranteed to work as intended. It can be inefficient, contain bugs or exploits. See
the paper
for an in-depth discussion of the model limitations.
Training
Model
Architecture:
Transformer decoder with grouped-query and sliding window attention and Fill-in-the-Middle objective
The model is licensed under the BigCode OpenRAIL-M v1 license agreement. You can find the full agreement
here
.
Citation
@misc{lozhkov2024starcoder,
title={StarCoder 2 and The Stack v2: The Next Generation},
author={Anton Lozhkov and Raymond Li and Loubna Ben Allal and Federico Cassano and Joel Lamy-Poirier and Nouamane Tazi and Ao Tang and Dmytro Pykhtar and Jiawei Liu and Yuxiang Wei and Tianyang Liu and Max Tian and Denis Kocetkov and Arthur Zucker and Younes Belkada and Zijian Wang and Qian Liu and Dmitry Abulkhanov and Indraneil Paul and Zhuang Li and Wen-Ding Li and Megan Risdal and Jia Li and Jian Zhu and Terry Yue Zhuo and Evgenii Zheltonozhskii and Nii Osae Osae Dade and Wenhao Yu and Lucas Krauß and Naman Jain and Yixuan Su and Xuanli He and Manan Dey and Edoardo Abati and Yekun Chai and Niklas Muennighoff and Xiangru Tang and Muhtasham Oblokulov and Christopher Akiki and Marc Marone and Chenghao Mou and Mayank Mishra and Alex Gu and Binyuan Hui and Tri Dao and Armel Zebaze and Olivier Dehaene and Nicolas Patry and Canwen Xu and Julian McAuley and Han Hu and Torsten Scholak and Sebastien Paquet and Jennifer Robinson and Carolyn Jane Anderson and Nicolas Chapados and Mostofa Patwary and Nima Tajbakhsh and Yacine Jernite and Carlos Muñoz Ferrandis and Lingming Zhang and Sean Hughes and Thomas Wolf and Arjun Guha and Leandro von Werra and Harm de Vries},
year={2024},
eprint={2402.19173},
archivePrefix={arXiv},
primaryClass={cs.SE}
}
Runs of bigcode starcoder2-3b on huggingface.co
1.1M
Total runs
0
24-hour runs
68.9K
3-day runs
211.1K
7-day runs
717.0K
30-day runs
More Information About starcoder2-3b huggingface.co Model
starcoder2-3b huggingface.co is an AI model on huggingface.co that provides starcoder2-3b's model effect (), which can be used instantly with this bigcode starcoder2-3b model. huggingface.co supports a free trial of the starcoder2-3b model, and also provides paid use of the starcoder2-3b. Support call starcoder2-3b model through api, including Node.js, Python, http.
starcoder2-3b huggingface.co is an online trial and call api platform, which integrates starcoder2-3b's modeling effects, including api services, and provides a free online trial of starcoder2-3b, you can try starcoder2-3b online for free by clicking the link below.
bigcode starcoder2-3b online free url in huggingface.co:
starcoder2-3b is an open source model from GitHub that offers a free installation service, and any user can find starcoder2-3b on GitHub to install. At the same time, huggingface.co provides the effect of starcoder2-3b install, users can directly use starcoder2-3b installed effect in huggingface.co for debugging and trial. It also supports api for free installation.