-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Simplify customizing the
TextGeneration
task with custom …
…prompts (#974) * Simplify customization of TextGeneration * Update tests loading the task * Extra tests for the new functionality * Added examples and extra checks * Include missing attributes and info in docstrings * Fix model_post_init call to super * Force a template for the task * Trying to fix the pickling error * It's unused, but the argument of generate was wrongly spelled * Checking if works without an instance of Template * Remove template in unload to fix error on offline batch generation
- Loading branch information
Showing
3 changed files
with
268 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.