This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
I want use the function prefix_allowed_tokens_fn, where of basaran's source code shall I modify? #220
Labels
question
Further information is requested
Hello, we all know that in huggingface transformers' origin
model.generate()
method, we can set the function paremeterprefix_allowed_tokens_fn
to restrict the generate rule. I want to use this function in basaran just like I used in originmodel.generate()
, could you please tell me where of the source code shall I modify to make the model generation obey my custom prefix_allowed_tokens_fn?The text was updated successfully, but these errors were encountered: