Error on installation on endpoints. Does anyone know how to solve it?

#8
by bacis - opened

Server message:Endpoint failed to start. on, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 732, in lifespan async with self.lifespan_context(app) as maybe_state: File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 608, in aenter await self.router.startup() File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 709, in startup await handler() File "/app/webservice_starlette.py", line 60, in some_startup_task inference_handler = get_inference_handler_either_custom_or_default_handler(HF_MODEL_DIR, task=HF_TASK) File "/app/huggingface_inference_toolkit/handler.py", line 54, in get_inference_handler_either_custom_or_default_handler return HuggingFaceHandler(model_dir=model_dir, task=task) File "/app/huggingface_inference_toolkit/handler.py", line 18, in init self.pipeline = get_pipeline( File "/app/huggingface_inference_toolkit/utils.py", line 276, in get_pipeline hf******** = pipeline( File "/usr/local/lib/python3.10/dist-packages/transformers/pipelines/init.py", line 1004, in pipeline tokenizer = AutoTokenizer.from_pretrained( File "/usr/local/lib/python3.10/dist-packages/transformers/models/auto/tokenization_auto.py", line 846, in from_pretrained return tokenizer_class_py.from_pretrained(pretrained_model_name_or_path, *inputs, **kwargs) File "/usr/local/lib/python3.10/dist-packages/transformers/tokenization_utils_base.py", line 2048, in from_pretrained return cls._from_pretrained( File "/usr/local/lib/python3.10/dist-packages/transformers/tokenization_utils_base.py", line 2287, in _from_pretrained tokenizer = cls(*init_inputs, **init_kwargs) File "/usr/local/lib/python3.10/dist-packages/transformers/models/biogpt/tokenization_biogpt.py", line 118, in init raise ImportError( ImportError: You need to install sacremoses to use BioGptTokenizer. See https://pypi.org/project/sacremoses/ for installation. Application startup failed. Exiting.

Sign up or log in to comment