Implement top_p / nucleus sampling (#819)

* Implement top_p / nucleus sampling

* Update changelog

* rustfmt

* Add tests

* Fix clippy warning

* Fix another clippy error
This commit is contained in:
Juarez Bochi
2023-09-12 09:10:16 -07:00
committed by GitHub
parent 42da17694a
commit 805bf9ffa7
12 changed files with 199 additions and 43 deletions

View File

@ -4,6 +4,8 @@ This documents the main changes to the `candle` crate.
## v0.2.2 - Unreleased
### Added
- Support for `top_p` sampling
[819](https://github.com/huggingface/candle/pull/819).
### Modified