"git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "6112b1c6442aaf7affd2b0676a1cd4eee30c45cf"
Add Epsilon- and Eta-Sampling (#21121)
* Add epsilon- and eta-sampling. Add epsilon- and eta-sampling, following the official code from https://github.com/john-hewitt/truncation-sampling and adapting to be more configurable, as required by Huggingface transformers. * Add unit tests for epsilon- and eta-sampling. * Black: fix code formatting. * Fix docstring spacing. * Clean up newlines. * Fix implementation bugs and their associated tests. * Remove epsilon- and eta-sampling parameters from PretrainedConfig. * Clarify and clean up the documentation. * Remove parameters for PretrainedConfig test.
Showing
Please register or sign in to comment