Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
AlanZ
Advocate I
Advocate I

Stuck-- Can't Load Registered ML Model

Hello, wonderful people,

I'm stuck and am hoping you can help! In Fabric I have several ML models registered:

 

fabricml_getting_models_back.png

 

For the sake of conversation, let's pretend the "name" of the model I'm interested in is test-model6.

If I run the following:

from synapse.ml.predict import MLFlowTransformer

df = spark.read.format("delta").load(
    "abfss://[stuff goes here]"
)

model = MLFlowTransformer(
    inputCols=list(df.columns),
    outputCol='predictions',
    modelName='test-model6',
    modelVersion=1
)

I get back:

RuntimeError: Unable to get model info: No such file or directory: '/tmp/tmpwfi3sxe4/MLmodel'

If I run the following:

model = mlflow.sklearn.load_model(model_uri="models:/test-model6/latest")

I get back:

MlflowException: Could not find an "MLmodel" configuration file at "/tmp/tmpdbthhvco/"

 

I can't figure out any way to actually apply my ML model in Fabric!

 

I do have a lakehouse attached, the same lakehouse which was attached during the generation of the models.

Any idea what could be going on? Do I need to submit a support ticket? Sure there's probably just something silly I'm missing or misunderstanding about MLflow in Fabric!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @AlanZ 

 

I applied the following code got from the tutorial documentation without having any error. There are two other ways to apply the PREDICT function in the model in the documentation, which you can try.

vjingzhanmsft_0-1727680354229.png

vjingzhanmsft_2-1727680657674.png

 

If all methods failed, you might take a moment to try out the entire tutorial in the previous documentation. Test if the sample provided in the tutorial works at your end. If it works, the cause probably doesn't lie in the environment. Then you might need to check the model registration process. 

 

Updated:

Additionally, open the related Experiment, select the model and save the run as an ML model. You can save it as a new model with a different name. Then try to load this new model. This might work.  

vjingzhanmsft_3-1727682897162.png

 

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

View solution in original post

3 REPLIES 3
sean_cochran
Resolver I
Resolver I

Did you ever find a solution that did not depend on synapse.ml? Synapse.ml requires pyspark, which I don't want or need since I am running in a python notebook.

wharding2025
Microsoft Employee
Microsoft Employee

Also had this error. Solution did not remedy. 

 

models_dict_list = [dict(model) for model in models_list]
models_dict_list

 

[{'aliases': {},
  'creation_timestamp': 1746808155391,
  'description': '',
  'last_updated_timestamp': 1746808155391,
  'latest_versions': [<ModelVersion: aliases=[], creation_timestamp=1746810862004, current_stage='None', description='', last_updated_timestamp=1746810862004, name='FaultClassification', run_id='c424459f-6b46-4d53-bccb-d391aa105dac', run_link='', source='abfss://A-GUID@onelakemsit.pbidedicated.windows.net/A-GUID/artifacts', status='READY', status_message='', tags={}, user_id='', version='3'>],
  'name': 'FaultClassification',
  'tags': {}}]

 

 

wharding2025_0-1746811318895.png

If I'm reading the error correctly `RuntimeError: Unable to get model info: No such file or directory: '/tmp/tmpsb213zls/MLmodel'`

It's trying to access a temp directory rather than the path that's in the `source` field? Is that right? 

wharding2025_1-1746811402677.png

 

 

Anonymous
Not applicable

Hi @AlanZ 

 

I applied the following code got from the tutorial documentation without having any error. There are two other ways to apply the PREDICT function in the model in the documentation, which you can try.

vjingzhanmsft_0-1727680354229.png

vjingzhanmsft_2-1727680657674.png

 

If all methods failed, you might take a moment to try out the entire tutorial in the previous documentation. Test if the sample provided in the tutorial works at your end. If it works, the cause probably doesn't lie in the environment. Then you might need to check the model registration process. 

 

Updated:

Additionally, open the related Experiment, select the model and save the run as an ML model. You can save it as a new model with a different name. Then try to load this new model. This might work.  

vjingzhanmsft_3-1727682897162.png

 

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

June Fabric Update Carousel

Fabric Monthly Update - June 2026

Check out the June 2026 Fabric update to learn about new features.

Top Solution Authors