-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
token_id_filter
function to create logit filter from predicate
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.
- Loading branch information
1 parent
ed9fa13
commit 50522b7
Showing
1 changed file
with
63 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters