arboreal-ai / llama-2-7b-chat

Llama-2-7b-Chat (GPTQ) with additional generation parameters

  • Public
  • 4.7K runs
  • GitHub
  • License

Run arboreal-ai/llama-2-7b-chat 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
[INST]Tell me about AI[/INST]
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
1

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

Max: 5

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

Max: 4096

Number of tokens to wait before starting exponential decay.
exponential_decay_factor
number
1

Min: 1

Max: 10

Decay factor for LogitProcessor exponential decay.
skip_prompt
boolean
True
Whether to skip the prompt to .generate() or not. Useful e.g. for chatbots.
random_seed
integer
0
Random seed for reproducibility. Set to 0 for no random seed.

Output schema

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

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