"git@developer.sourcefind.cn:lacacy/qwen_lmdeploy.git" did not exist on "1b7151c1d8bf2b7efec423cf28154656f81fcd35"
Unverified Commit 397f8196 authored by Funtowicz Morgan's avatar Funtowicz Morgan Committed by GitHub
Browse files

Restore PaddingStrategy.MAX_LENGTH on QAPipeline while no v2. (#6875)


Signed-off-by: default avatarMorgan Funtowicz <funtowiczmo@gmail.com>
parent a32d85f0
......@@ -1674,7 +1674,7 @@ class QuestionAnsweringPipeline(Pipeline):
max_seq_length=kwargs["max_seq_len"],
doc_stride=kwargs["doc_stride"],
max_query_length=kwargs["max_question_len"],
padding_strategy=PaddingStrategy.DO_NOT_PAD.value,
padding_strategy=PaddingStrategy.MAX_LENGTH.value,
is_training=False,
tqdm_enabled=False,
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment