transformers icon indicating copy to clipboard operation
transformers copied to clipboard

Request for a clear documentation for .generate()

Open sedol1339 opened this issue 1 year ago • 2 comments

Feature request

The .generate() function has a lot of parameters, for example length_penalty and diversity_penalty. However, the documentation of this function does not document a full list of parameters, hiding them in **kwargs. It says that "For an overview of generation strategies and code examples, check out the following guide". However, this guide also do not document a full list of parameters. It only says that "For the complete list of the available parameters, refer to the API documentation." However, the link is broken. So, could you please document all the available parameters?

UPD I found the full documentation through Google in the earlier version of Transformers. Why it was removed?

Motivation

The full documentation for .generate() is either missing or hidden somewhere

Your contribution

No, sorry, I can't write a doumentation, on the contrary, I need it to understand how the library works.

sedol1339 avatar Sep 27 '24 10:09 sedol1339