Add the option to use samplers in the logit viewer
This commit is contained in:
parent
25e5eaa6a6
commit
8545052c9d
8 changed files with 75 additions and 18 deletions
|
@ -24,6 +24,7 @@ class Stream(transformers.StoppingCriteria):
|
|||
def __call__(self, input_ids, scores) -> bool:
|
||||
if self.callback_func is not None:
|
||||
self.callback_func(input_ids[0])
|
||||
|
||||
return False
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue