AutoGPT
  • AutoGPT Guide
  • Before you start
    • General Information
    • Generate OpenAI API Key
  • Installation
  • Download
  • Grant Access
  • Add to Xcode
  • Features
    • Commands
  • How to use
    • GPT
      • Models
      • Temperature
      • Max Tokens
    • Response
    • Customization
    • Help
Powered by GitBook
On this page
  1. How to use
  2. GPT

Max Tokens

Max Tokens is a fine-tuning parameter that controls the maximum length of the output text generated by the language model. It specifies the maximum number of tokens (words or subwords) that the model can generate in response to a given prompt or input.

For example, if you set max tokens to 50, the model will generate a response of up to 50 tokens in length. If the model reaches the maximum length before generating a complete sentence or idea, it will stop generating text.

The Max Tokens parameter can be useful for controlling the length of the generated text, especially if you want to avoid getting very long and possibly irrelevant responses from the model.

PreviousTemperatureNextResponse

Last updated 2 years ago