Closed robertknight closed 3 weeks ago
A very common use case for logit filters is to prevent certain token IDs from being sampled. Add a token_id_filter helper for this.
token_id_filter
In the process Generator was modified to support samplers and logit filters with non-static lifetimes.
Generator
A very common use case for logit filters is to prevent certain token IDs from being sampled. Add a
token_id_filter
helper for this.In the process
Generator
was modified to support samplers and logit filters with non-static lifetimes.