cancel
Showing results for 
Search instead for 
Did you mean: 
Get Started Discussions
Start your journey with Databricks by joining discussions on getting started guides, tutorials, and introductory topics. Connect with beginners and experts alike to kickstart your Databricks experience.
cancel
Showing results for 
Search instead for 
Did you mean: 

Got No such file or directory error while serving the endpoint

masab019
Visitor

Hello Everyone!

I'm using Databricks for my MLOps learning, and I'm following the tutorial, and I got an error while serving the endpoint. I need help in this.

Problem Overview:

I have created a basic LightGBM model and logged it in the Unity Catalog. Then, I created a custom PyFunc wrapper for the model. Now, I need to serve an endpoint for my PyFunc wrapper model, which in this case is my custom model.

Unfortunately, I’m encountering the following error:

OSError: No such file or directory: '/model/artifacts'

I need help resolving this issue. I have double-checked everything, including the artifacts, and everything seems normal to me.

Code Files

https://github.com/musabanees/marvel-characters_mlops/blob/main/notebooks/lecture6.deploy_model_serv...

https://github.com/musabanees/marvel-characters_mlops/blob/main/src/marvel_characters/serving/model_...

Thank you

(Virus scan in progress ...)
1 REPLY 1

sevin91580
Visitor

Hello!

The error OSError: No such file or directory: '/model/artifacts' usually means your PyFunc model is missing required files during deployment. Make sure you’ve logged the model correctly with all necessary artifacts, and that your custom wrapper references them properly. If using Unity Catalog, verify the model URI and version are accurate. You may need to re-log the model with explicit artifact paths using mlflow.pyfunc.log_model() to ensure everything is included. 

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now