hugging_face_serving package
Contents
hugging_face_serving package#
Submodules#
hugging_face_serving.hugging_face_serving module#
- class hugging_face_serving.hugging_face_serving.HuggingFaceModelServer(context: mlrun.execution.MLClientCtx, name: str, task: str, model_path: Optional[str] = None, model_name: Optional[str] = None, model_class: Optional[str] = None, tokenizer_name: Optional[str] = None, tokenizer_class: Optional[str] = None, framework: Optional[str] = None, **class_args)[source]#
Bases:
mlrun.serving.v2_serving.V2ModelServer
,abc.ABC
Hugging Face Model serving class, inheriting the V2ModelServer class for being initialized automatically by the model server and be able to run locally as part of a nuclio serverless function, or as part of a real-time pipeline.