You might want to truncate the model output with
<eom>
.
Training data
This checkpoint is trained on the stricter permissive subset of
the deduplicated version of the Stack dataset (v1.1)
. Supported languages (and frameworks) are as follows:
c
,
c++
,
c-sharp
,
dart
,
go
,
java
,
javascript
,
kotlin
,
lua
,
php
,
python
,
ruby
,
rust
,
scala
,
shell
,
sql
,
swift
,
typescript
,
vue
.
Training procedure
CodeGen2 was trained using cross-entropy loss to maximize the likelihood of sequential inputs.
The input sequences are formatted in two ways: (1) causal language modeling and (2) file-level span corruption.
Please refer to the paper for more details.
Evaluation results
We evaluate our models on HumanEval and HumanEval-Infill. Please refer to the
paper
for more details.
Intended use and limitations
As an autoregressive language model, CodeGen2 is capable of extracting features from given natural language and programming language texts, and calculating the likelihood of them.
However, the model is intended for and best at
program synthesis
, that is, generating executable code given English prompts, where the prompts should be in the form of a comment string. The model can complete partially-generated code as well.
BibTeX entry and citation info
@article{Nijkamp2023codegen2,
title={CodeGen2: Lessons for Training LLMs on Programming and Natural Languages},
author={Nijkamp, Erik and Hayashi, Hiroaki and Xiong, Caiming and Savarese, Silvio and Zhou, Yingbo},
journal={arXiv preprint},
year={2023}
}
Runs of Salesforce codegen2-7B_P on huggingface.co
179
Total runs
3
24-hour runs
-1
3-day runs
-67
7-day runs
-85
30-day runs
More Information About codegen2-7B_P huggingface.co Model
codegen2-7B_P huggingface.co is an AI model on huggingface.co that provides codegen2-7B_P's model effect (), which can be used instantly with this Salesforce codegen2-7B_P model. huggingface.co supports a free trial of the codegen2-7B_P model, and also provides paid use of the codegen2-7B_P. Support call codegen2-7B_P model through api, including Node.js, Python, http.
codegen2-7B_P huggingface.co is an online trial and call api platform, which integrates codegen2-7B_P's modeling effects, including api services, and provides a free online trial of codegen2-7B_P, you can try codegen2-7B_P online for free by clicking the link below.
Salesforce codegen2-7B_P online free url in huggingface.co:
codegen2-7B_P is an open source model from GitHub that offers a free installation service, and any user can find codegen2-7B_P on GitHub to install. At the same time, huggingface.co provides the effect of codegen2-7B_P install, users can directly use codegen2-7B_P installed effect in huggingface.co for debugging and trial. It also supports api for free installation.