Allow configuring the tokenizer in Text2TextGenerationPipeline
#1096
Labels
enhancement
New feature or request
Text2TextGenerationPipeline
#1096
Feature request
The current behavior has hardcoded options for the tokenizer https://github.com/huggingface/transformers.js/blob/main/src/pipelines.js#L761-L775
Motivation
It would be nice to stick with the generic
pipeline
API and be able to pass through custom tokenizer options that are overwritingtokenizer.json
Your contribution
If the idea sounds good I can contribute the patch
The text was updated successfully, but these errors were encountered: