CodeT5+
is a new family of open code large language models
with an encoder-decoder architecture that can flexibly operate in different modes (i.e.
encoder-only
,
decoder-only
,
and
encoder-decoder
) to support a wide range of code understanding and generation tasks.
It is introduced in the paper:
Compared to the original CodeT5 family (base:
220M
, large:
770M
), CodeT5+ is pretrained with a diverse set of
pretraining tasks including
span denoising
,
causal language modeling
,
contrastive learning
, and
text-code
matching
to learn rich representations from both unimodal code data and bimodal code-text data.
Additionally, it employs a simple yet effective
compute-efficient pretraining
method to initialize the model
components with frozen off-the-shelf LLMs such as
CodeGen
to efficiently scale
up the model (i.e.
2B
,
6B
,
16B
), and adopts a "shallow encoder and deep decoder" architecture.
Furthermore, it is instruction-tuned to align with natural language instructions (see our InstructCodeT5+ 16B)
following
Code Alpaca
.
How to use
This checkpoint consists of an encoder of CodeT5+ 220M model (pretrained from 2 stages on both unimodal and bimodal) and a projection layer, which can be used to extract code
embeddings of 256 dimension. It can be easily loaded using the
AutoModel
functionality and employs the
same
CodeT5
tokenizer.
This checkpoint is trained on the stricter permissive subset of the deduplicated version of
the
github-code dataset
.
The data is preprocessed by reserving only permissively licensed code ("mit" “apache-2”, “bsd-3-clause”, “bsd-2-clause”,
“cc0-1.0”, “unlicense”, “isc”).
Supported languages (9 in total) are as follows:
c
,
c++
,
c-sharp
,
go
,
java
,
javascript
,
php
,
python
,
ruby.
Training procedure
This checkpoint is first trained on the unimodal code data at the first-stage pretraining and then on bimodal text-code
pair data using the proposed mixture of pretraining tasks.
Please refer to the paper for more details.
Evaluation results
We show the zero-shot results of this checkpoint on 6 downstream code retrieval tasks from CodeXGLUE in the following table.
Ruby
JavaScript
Go
Python
Java
PHP
Overall
74.51
69.07
90.69
71.55
71.82
67.72
74.23
BibTeX entry and citation info
@article{wang2023codet5plus,
title={CodeT5+: Open Code Large Language Models for Code Understanding and Generation},
author={Wang, Yue and Le, Hung and Gotmare, Akhilesh Deepak and Bui, Nghi D.Q. and Li, Junnan and Hoi, Steven C. H.},
journal={arXiv preprint},
year={2023}
}
Runs of Salesforce codet5p-110m-embedding on huggingface.co
48.1K
Total runs
-1.4K
24-hour runs
-3.7K
3-day runs
-834
7-day runs
-12.7K
30-day runs
More Information About codet5p-110m-embedding huggingface.co Model
codet5p-110m-embedding huggingface.co is an AI model on huggingface.co that provides codet5p-110m-embedding's model effect (), which can be used instantly with this Salesforce codet5p-110m-embedding model. huggingface.co supports a free trial of the codet5p-110m-embedding model, and also provides paid use of the codet5p-110m-embedding. Support call codet5p-110m-embedding model through api, including Node.js, Python, http.
codet5p-110m-embedding huggingface.co is an online trial and call api platform, which integrates codet5p-110m-embedding's modeling effects, including api services, and provides a free online trial of codet5p-110m-embedding, you can try codet5p-110m-embedding online for free by clicking the link below.
Salesforce codet5p-110m-embedding online free url in huggingface.co:
codet5p-110m-embedding is an open source model from GitHub that offers a free installation service, and any user can find codet5p-110m-embedding on GitHub to install. At the same time, huggingface.co provides the effect of codet5p-110m-embedding install, users can directly use codet5p-110m-embedding installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
codet5p-110m-embedding install url in huggingface.co: