The documentation page MAIN_CLASSES/#TRANSFORMERS.GENERATIONCONFIG.MAX_LENGTH doesn’t exist in v4.46.2, but exists on the main version. Click here to redirect to the main version of the documentation.