Slackbot
02/02/2023, 4:00 PMYilun Zhang
02/02/2023, 4:50 PMtoken-classification
rather than ner
. ner
is not a supported pipeline by default in transformers, so when loading, bentoml.transformers will look for this pipeline pickle file.
Changing to token-classification
worked perfectly!Yilun Zhang
02/02/2023, 4:59 PMpipeline.v1.pkl
file is not found but actually show the real reason behind it (pipeline not supported
).Yilun Zhang
02/02/2023, 6:13 PMner
is not working since it’s one of the value in TASK_ALIASES
in https://github.com/huggingface/transformers/blob/v4.21.2/src/transformers/pipelines/__init__.py#L129. So theoretically it should work. I will double check if I can consistently reproduce this error.Yilun Zhang
02/02/2023, 6:43 PMsauyon
02/02/2023, 8:27 PMAaron Pham
02/03/2023, 1:00 AMAaron Pham
02/09/2023, 5:41 AMYilun Zhang
02/09/2023, 1:55 PM