QuestionQ35

VerifiedCustom Model Serving

A Machine Learning Engineer must deploy a custom model with Databricks Model Serving. The model needs an external tokenizer file (such as a vocabulary or pre-trained tokenizer) to work correctly. They must ensure that this tokenizer file is included with the model so it is available while the model is being served.

How should the tokenizer file be packaged as part of the model deployment?

Explanation

MLflow’s artifacts parameter packages external files or directories with a custom pyfunc model and exposes their local paths through context.artifacts at model load time. Databricks Model Serving requires artifacts located in Unity Catalog Volumes to be packaged into the model artifact, ensuring the tokenizer is available to the serving endpoint.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!