name: New Modification (generate_text())
about: Modified arguments for generate_text() query
labels: feature
- What I did
updated generate_text()
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.
Updated generate_text()
Adapted text generation function (remove instruction, added temperature).
Update tests.py
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.
[ ] I updated the docs.
This pull request adds a new feature to libra. @Palashio, could you please take a look at it?
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?