Python function
max_tokens_to_generate
max_tokens_to_generate()
max.pipelines.lib.max_tokens_to_generate(prompt_size, max_length, max_new_tokens=None)
Returns the max number of new tokens to generate.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!