Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement other sampling methods #8

Open
certik opened this issue Mar 6, 2023 · 2 comments
Open

Implement other sampling methods #8

certik opened this issue Mar 6, 2023 · 2 comments

Comments

@certik
Copy link
Owner

certik commented Mar 6, 2023

Currently only the "greedy" sampling is implemented (the token with the highest probability is selected).

Implement other sampling methods, some options are:

@matteo-grella
Copy link

Hi @certik!

In RWKV.f90, we've already implemented several sampling methods, including:

  • Temperature
  • Top-p
  • Frequency/Presence Penalty
  • Speculative Decoding (this is still experimental)
  • Classifier-Free Guidance (currently a work in progress)

Hope this helps in expanding the sampling methods for your project!

@certik
Copy link
Owner Author

certik commented Sep 13, 2023

@matteo-grella awesome, excellent! Thanks for the comment. I'll have a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants