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

lucataco /llama-2-7b-chat:6ab580ab

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
Tell me about AI
Prompt to send to Llama v2
system_prompt
string
You are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature. If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.
System prompt that helps guide system behavior
max_new_tokens
integer
512

Min: 1

Max: 4096

Number of new tokens
temperature
number
0.75

Max: 5

Randomness of outputs, 0 is deterministic, greater than 1 is random
top_p
number
0.95

Min: 0.01

Max: 1

When decoding text, samples from the top p percentage of most likely tokens; lower to ignore less likely tokens
repetition_penalty
number
1.1

Max: 5

Penalty for repeated words in generated text; 1 is no penalty, values greater than 1 discourage repetition, less than 1 encourage it

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{'title': 'Output', 'type': 'string'}