cancel
Showing results for 
Search instead for 
Did you mean: 
Machine Learning
Dive into the world of machine learning on the Databricks platform. Explore discussions on algorithms, model training, deployment, and more. Connect with ML enthusiasts and experts.
cancel
Showing results for 
Search instead for 
Did you mean: 

Failure in mlflow.spark.load_model : Random Forrest pretrained model

ashrafkhan94
New Contributor II
model = mlflow.spark.load_model(model_uri=f"models:/{model_name}/{model_version}")

Log:

An error occurred while calling o2861.load.

: org.apache.spark.SparkException: Job aborted due to stage failure: Task 4 in stage 4599.0 failed 4 times, most recent failure: Lost task 4.3 in stage 4599.0 (TID 3270) (10.139.64.5 executor 1): java.lang.AssertionError: assertion failed: Decision Tree load failed. Expected largest node ID to be 53, but found 26

1 ACCEPTED SOLUTION

Accepted Solutions

sean_owen
Honored Contributor II
Honored Contributor II

Hm. Are you training with one version of Spark but loading in another version? though that should be pretty compatible across versions, just trying to rule that in/out.

View solution in original post

2 REPLIES 2

sean_owen
Honored Contributor II
Honored Contributor II

Hm. Are you training with one version of Spark but loading in another version? though that should be pretty compatible across versions, just trying to rule that in/out.

Noopur_Nigam
Valued Contributor II
Valued Contributor II

Hi @Ashraf Khan​ Did you get a chance to look into Sean's response. Please let us know if you need more help on this.

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!