Palashio / libra

Ergonomic machine learning for everyone.
http://libradocs.org/
MIT License
1.91k stars 108 forks source link

Modification proposition for generate_text query #348

Closed ugolbck closed 3 years ago

ugolbck commented 3 years ago

name: New Modification (generate_text()) about: Modified arguments for generate_text() query labels: feature

- What I did

Removed "instruction" argument as it felt useless since we pass a txt file to the query. Added a temperature parameter to tweak prediction a bit more. Adapted docstring.

Adapted text generation function (remove instruction, added temperature).

Removed instruction accordingly with the generate_text modifications.

- How I did it

/

- How to verify it The modifications are not code breaking, build passing, "temperature" argument available for transformers.model object.

This pull request adds a new feature to libra. @Palashio, could you please take a look at it?