cbh123
/
llama-ascii
- Public
- 13 runs
Run cbh123/llama-ascii with an API
Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.
Input schema
The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.
Field | Type | Default value | Description |
---|---|---|---|
prompt |
string
|
Prompt to send to Llama v2.
|
|
max_new_tokens |
integer
|
500
Min: 1 |
Maximum number of tokens to generate. A word is generally 2-3 tokens
|
min_new_tokens |
integer
|
-1
Min: -1 |
Minimum number of tokens to generate. To disable, set to -1. A word is generally 2-3 tokens.
|
temperature |
number
|
0.95
Min: 0.01 Max: 5 |
Adjusts randomness of outputs, greater than 1 is random and 0 is deterministic, 0.75 is a good starting value.
|
top_p |
number
|
0.95
Max: 1 |
When decoding text, samples from the top p percentage of most likely tokens; lower to ignore less likely tokens
|
top_k |
integer
|
250
|
When decoding text, samples from the top k most likely tokens; lower to ignore less likely tokens
|
repetition_penalty |
number
|
1.15
Min: 0.01 Max: 5 |
Penalty for repeated words in generated text; 1 is no penalty, values greater than 1 discourage repetition, less than 1 encourage it.
|
repetition_penalty_sustain |
integer
|
256
Min: -1 |
Number of most recent tokens to apply repetition penalty to, -1 to apply to whole context
|
token_repetition_penalty_decay |
integer
|
128
Min: 1 |
Gradually decrease penalty over this many tokens
|
debug |
boolean
|
False
|
provide debugging output in logs
|
{
"type": "object",
"title": "Input",
"required": [
"prompt"
],
"properties": {
"debug": {
"type": "boolean",
"title": "Debug",
"default": false,
"x-order": 9,
"description": "provide debugging output in logs"
},
"top_k": {
"type": "integer",
"title": "Top K",
"default": 250,
"minimum": 0,
"x-order": 5,
"description": "When decoding text, samples from the top k most likely tokens; lower to ignore less likely tokens"
},
"top_p": {
"type": "number",
"title": "Top P",
"default": 0.95,
"maximum": 1,
"minimum": 0,
"x-order": 4,
"description": "When decoding text, samples from the top p percentage of most likely tokens; lower to ignore less likely tokens"
},
"prompt": {
"type": "string",
"title": "Prompt",
"x-order": 0,
"description": "Prompt to send to Llama v2."
},
"temperature": {
"type": "number",
"title": "Temperature",
"default": 0.95,
"maximum": 5,
"minimum": 0.01,
"x-order": 3,
"description": "Adjusts randomness of outputs, greater than 1 is random and 0 is deterministic, 0.75 is a good starting value."
},
"max_new_tokens": {
"type": "integer",
"title": "Max New Tokens",
"default": 500,
"minimum": 1,
"x-order": 1,
"description": "Maximum number of tokens to generate. A word is generally 2-3 tokens"
},
"min_new_tokens": {
"type": "integer",
"title": "Min New Tokens",
"default": -1,
"minimum": -1,
"x-order": 2,
"description": "Minimum number of tokens to generate. To disable, set to -1. A word is generally 2-3 tokens."
},
"repetition_penalty": {
"type": "number",
"title": "Repetition Penalty",
"default": 1.15,
"maximum": 5,
"minimum": 0.01,
"x-order": 6,
"description": "Penalty for repeated words in generated text; 1 is no penalty, values greater than 1 discourage repetition, less than 1 encourage it."
},
"repetition_penalty_sustain": {
"type": "integer",
"title": "Repetition Penalty Sustain",
"default": 256,
"minimum": -1,
"x-order": 7,
"description": "Number of most recent tokens to apply repetition penalty to, -1 to apply to whole context"
},
"token_repetition_penalty_decay": {
"type": "integer",
"title": "Token Repetition Penalty Decay",
"default": 128,
"minimum": 1,
"x-order": 8,
"description": "Gradually decrease penalty over this many tokens"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
{
"type": "array",
"items": {
"type": "string"
},
"title": "Output",
"x-cog-array-type": "iterator",
"x-cog-array-display": "concatenate"
}