Hey @Henrik_ ,
There are a few things that could be happening here, if you share the error message/stack trace you get when it doesnโt work, I can help figure out which of these could be biting you and tailor the fix.
In the meantime, here's a quick debug checklist:
-
Print the exact run_id and artifact_path used to register the winner; confirm they point to the child run that logged that candidate.
-
Inspect the modelโs signature in UC (Catalog Explorer โ Model โ Version โ Signature) and ensure the input you pass at inference matches names and types. If missing, re-log with input_example or autologging.
-
If you see module import errors at inference, install the recorded dependencies with mlflow.pyfunc.get_model_dependencies() before loading, or use env_manager="virtualenv" for Spark UDFs.
-
Confirm the client and code are pointed to UC (mlflow.set_registry_uri("databricks-uc")) and that youโre using the 3-level UC name when registering and loading.
Could you paste the exact error text you see when calling predict, as well as how youโre building the model URI you register (the run_id and artifact_path)?