You're looking at a specific version of this model. Jump to the model overview.

andreasjansson /codegen:211bde4f

Input

string
Shift + Return to add a new line

Some starting python code. CodeGen will try to complete the code provided. Providing examples of what you want to do before your prompt can improve performance.

Default: "# Implement a function that computes the square of an integer argument.\n"

boolean

Whether to prepend your input to the output.

Default: true

integer
(minimum: 1, maximum: 10)

Number of code completions to generate from context.

Default: 1

number
(minimum: 0, maximum: 1)

Increase to improve diversity of outputs, may cause artifacts.

Default: 0.2

boolean

Whether to prepend a numpy import to the context as in the paper.

Default: true

number
(minimum: 0, maximum: 1)

Top-p sampling probability.

Default: 0.95

integer
(minimum: 32, maximum: 2048)

Max length of returned sequences.

Default: 128

integer

Seed for reproducibility. Use -1 for a random seed.

Default: -1

boolean

Whether to return a long string (multiple code snippets separated by the string `======`) or a markdown url to be downloaded. May find useful for api.

Default: false

Output

No output yet! Press "Submit" to start a prediction.