andreasjansson / codegen

An open-source model for program synthesis. Competitive with OpenAI Codex.

replicate.com
Total runs: 1.1K
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Github
Model's Last Updated: May 25 2022

Introduction of codegen

Model Details of codegen

Readme

CodeGen

This is an unofficial implementation not affiliated with Salesforce.

Sample from the codegen-6B-mono checkpoint trained on python.

Arxiv : A Conversational Paradigm for Program Synthesis

Authors : Erik Nijkamp *, Bo Pang *, Hiroaki Hayashi *, Lifu Tu , Huan Wang , Yingbo Zhou , Silvio Savarese , and Caiming Xiong (* indicates equal contribution)

Released models

The models are named in the following format:

codegen-{model-size}-{data}

model-size has 4 options: 350M , 2B , 6B , 16B , which represent the number of parameters in each model.

data has 3 options: nl , multi , mono .

  • nl models are randomly initialized and trained on The Pile , a 825.18 GB English text corpous.
  • multi models are initialized from nl models and then trained on a corpus with code data consisting of multiple programming languages.
  • mono models are initialized from multi models and then trained on a corpus with Python code data.
Download the model parameters
codegen-350M-nl,multi,mono

https://storage.googleapis.com/sfr-codegen-research/checkpoints/codegen-350M-nl.tar.gz https://storage.googleapis.com/sfr-codegen-research/checkpoints/codegen-350M-multi.tar.gz https://storage.googleapis.com/sfr-codegen-research/checkpoints/codegen-350M-mono.tar.gz

codegen-2B-nl,multi,mono

https://storage.googleapis.com/sfr-codegen-research/checkpoints/codegen-2B-nl.tar.gz https://storage.googleapis.com/sfr-codegen-research/checkpoints/codegen-2B-multi.tar.gz https://storage.googleapis.com/sfr-codegen-research/checkpoints/codegen-2B-mono.tar.gz

codegen-6B-nl,multi,mono

https://storage.googleapis.com/sfr-codegen-research/checkpoints/codegen-6B-nl.tar.gz https://storage.googleapis.com/sfr-codegen-research/checkpoints/codegen-6B-multi.tar.gz https://storage.googleapis.com/sfr-codegen-research/checkpoints/codegen-6B-mono.tar.gz

codegen-16B-nl,multi,mono

https://storage.googleapis.com/sfr-codegen-research/checkpoints/codegen-16B-nl.tar.gz https://storage.googleapis.com/sfr-codegen-research/checkpoints/codegen-16B-multi.tar.gz https://storage.googleapis.com/sfr-codegen-research/checkpoints/codegen-16B-mono.tar.gz

Citation

If you find our code or paper useful, please cite the paper:

@article{Nijkamp2022ACP,
  title={A Conversational Paradigm for Program Synthesis},
  author={Nijkamp, Erik and Pang, Bo and Hayashi, Hiroaki and Tu, Lifu and Wang, Huan and Zhou, Yingbo and Savarese, Silvio and Xiong, Caiming},
  journal={arXiv preprint},
  year={2022}
}
License

Our code is BSD-3 licensed. See LICENSE.txt for details.

Pricing of codegen replicate.com

Run time and cost

This model costs approximately $0.19 to run on Replicate, or 5 runs per $1, but this varies depending on your inputs. It is also open source and you can run it on your own computer with Docker .

This model runs on Nvidia A100 (80GB) GPU hardware . Predictions typically complete within 136 seconds. The predict time for this model varies significantly based on the inputs.

Runs of andreasjansson codegen on replicate.com

1.1K
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About codegen replicate.com Model

codegen replicate.com

codegen replicate.com is an AI model on replicate.com that provides codegen's model effect (An open-source model for program synthesis. Competitive with OpenAI Codex.), which can be used instantly with this andreasjansson codegen model. replicate.com supports a free trial of the codegen model, and also provides paid use of the codegen. Support call codegen model through api, including Node.js, Python, http.

andreasjansson codegen online free

codegen replicate.com is an online trial and call api platform, which integrates codegen's modeling effects, including api services, and provides a free online trial of codegen, you can try codegen online for free by clicking the link below.

andreasjansson codegen online free url in replicate.com:

https://replicate.com/andreasjansson/codegen

codegen install

codegen is an open source model from GitHub that offers a free installation service, and any user can find codegen on GitHub to install. At the same time, replicate.com provides the effect of codegen install, users can directly use codegen installed effect in replicate.com for debugging and trial. It also supports api for free installation.

codegen install url in replicate.com:

https://replicate.com/andreasjansson/codegen

codegen install url in github:

https://github.com/salesforce/CodeGen

Url of codegen

Provider of codegen replicate.com

Other API from andreasjansson

replicate

Return CLIP features for the clip-vit-large-patch14 model

Total runs: 83.4M
Run Growth: 0
Growth Rate: 0.00%
Updated:March 06 2023
replicate

Answers questions about images

Total runs: 29.6M
Run Growth: 0
Growth Rate: 0.00%
Updated:November 21 2023
replicate

The DeepFloyd IF model has been initially released as a non-commercial research-only model. Please make sure you read and abide to the license before using it.

Total runs: 2.0M
Run Growth: 0
Growth Rate: 0.00%
Updated:April 29 2023
replicate

Create tileable animations with seamless transitions

Total runs: 529.1K
Run Growth: 0
Growth Rate: 0.00%
Updated:February 13 2023
replicate

Monster Labs' control_v1p_sd15_qrcode_monster ControlNet on top of SD 1.5

Total runs: 402.0K
Run Growth: 0
Growth Rate: 0.00%
Updated:September 18 2023
replicate

Stable Diffusion fined-tuned on frames from Monkey Island 1 and 2

Total runs: 2.4K
Run Growth: 0
Growth Rate: 0.00%
Updated:November 02 2022
replicate

Suite of models to evaluate the image quality of text-to-image models with respect to their input prompts.

Total runs: 1.9K
Run Growth: 0
Growth Rate: 0.00%
Updated:October 15 2024
replicate

FLUX.1 [dev] trained on the Replicate goo

Total runs: 1.3K
Run Growth: 0
Growth Rate: 0.00%
Updated:August 23 2024
replicate

Flux LoRA trained on generated images of random shapes

Total runs: 897
Run Growth: 0
Growth Rate: 0.00%
Updated:August 22 2024
replicate

Llama-2 13B with support for grammars and jsonschema

Total runs: 748
Run Growth: 0
Growth Rate: 0.00%
Updated:September 20 2023
replicate

Monkey Island database for Retrieval-augmented Diffusion model

Total runs: 622
Run Growth: 0
Growth Rate: 0.00%
Updated:August 20 2022
replicate

Generate plasma shader equations

Total runs: 466
Run Growth: 0
Growth Rate: 0.00%
Updated:December 06 2023
replicate

Implicit neural differentiable FM synthesizer

Total runs: 390
Run Growth: 0
Growth Rate: 0.00%
Updated:October 28 2022
replicate

Generate music based on the Monkey Island theme using the FIGARO model

Total runs: 305
Run Growth: 0
Growth Rate: 0.00%
Updated:August 20 2022
replicate

Image similarity metric that that compares a reference image to a set of images.

Total runs: 299
Run Growth: 0
Growth Rate: 0.00%
Updated:October 15 2024
replicate

Generate "algorithmic symphony" one-liners with grammar-constrained CodeLlama

Total runs: 205
Run Growth: 0
Growth Rate: 0.00%
Updated:September 18 2023
replicate

Inpainting and video2video experiments with Wan 2.1

Total runs: 171
Run Growth: 0
Growth Rate: 0.00%
Updated:March 11 2025
replicate

Random rectangles, ellipses, lines, in random colors

Total runs: 87
Run Growth: 0
Growth Rate: 0.00%
Updated:August 22 2024