certik / fastGPT

Fast GPT-2 inference written in Fortran
MIT License
187 stars 16 forks source link

Implement other sampling methods #8

Open certik opened 1 year ago

certik commented 1 year ago

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

Implement other sampling methods, some options are:

matteo-grella commented 1 year ago

Hi @certik!

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

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

certik commented 1 year ago

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