<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Stuck-- Can't Load Registered ML Model in Data Science</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Science/Stuck-Can-t-Load-Registered-ML-Model/m-p/4185227#M397</link>
    <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Hello, wonderful people,&lt;/P&gt;&lt;P&gt;I'm stuck and am hoping you can help! In Fabric I have several ML models registered:&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the sake of conversation, let's pretend the "name" of the model I'm interested in is test-model6.&lt;/P&gt;&lt;P&gt;If I run the following:&lt;/P&gt;&lt;PRE&gt;from synapse.ml.predict import MLFlowTransformer

df = spark.read.format("delta").load(
&amp;nbsp; &amp;nbsp; "abfss://[stuff goes here]"
)

model = MLFlowTransformer(
&amp;nbsp; &amp;nbsp; inputCols=list(df.columns),
&amp;nbsp; &amp;nbsp; outputCol='predictions',
&amp;nbsp; &amp;nbsp; modelName='test-model6',
&amp;nbsp; &amp;nbsp; modelVersion=1
)&lt;/PRE&gt;&lt;P&gt;I get back:&lt;/P&gt;&lt;P&gt;RuntimeError: Unable to get model info: No such file or directory: '/tmp/tmpwfi3sxe4/MLmodel'&lt;/P&gt;&lt;P&gt;If I run the following:&lt;/P&gt;&lt;PRE&gt;model = mlflow.sklearn.load_model(model_uri="models:/test-model6/latest")&lt;/PRE&gt;&lt;P&gt;I get back:&lt;/P&gt;&lt;P&gt;MlflowException: Could not find an "MLmodel" configuration file at "/tmp/tmpdbthhvco/"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't figure out any way to actually apply my ML model in Fabric!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do have a lakehouse attached, the same lakehouse which was attached during the generation of the models.&lt;/P&gt;&lt;P&gt;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!&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 27 Sep 2024 18:33:59 GMT</pubDate>
    <dc:creator>AlanZ</dc:creator>
    <dc:date>2024-09-27T18:33:59Z</dc:date>
    <item>
      <title>Stuck-- Can't Load Registered ML Model</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Science/Stuck-Can-t-Load-Registered-ML-Model/m-p/4185227#M397</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Hello, wonderful people,&lt;/P&gt;&lt;P&gt;I'm stuck and am hoping you can help! In Fabric I have several ML models registered:&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the sake of conversation, let's pretend the "name" of the model I'm interested in is test-model6.&lt;/P&gt;&lt;P&gt;If I run the following:&lt;/P&gt;&lt;PRE&gt;from synapse.ml.predict import MLFlowTransformer

df = spark.read.format("delta").load(
&amp;nbsp; &amp;nbsp; "abfss://[stuff goes here]"
)

model = MLFlowTransformer(
&amp;nbsp; &amp;nbsp; inputCols=list(df.columns),
&amp;nbsp; &amp;nbsp; outputCol='predictions',
&amp;nbsp; &amp;nbsp; modelName='test-model6',
&amp;nbsp; &amp;nbsp; modelVersion=1
)&lt;/PRE&gt;&lt;P&gt;I get back:&lt;/P&gt;&lt;P&gt;RuntimeError: Unable to get model info: No such file or directory: '/tmp/tmpwfi3sxe4/MLmodel'&lt;/P&gt;&lt;P&gt;If I run the following:&lt;/P&gt;&lt;PRE&gt;model = mlflow.sklearn.load_model(model_uri="models:/test-model6/latest")&lt;/PRE&gt;&lt;P&gt;I get back:&lt;/P&gt;&lt;P&gt;MlflowException: Could not find an "MLmodel" configuration file at "/tmp/tmpdbthhvco/"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't figure out any way to actually apply my ML model in Fabric!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do have a lakehouse attached, the same lakehouse which was attached during the generation of the models.&lt;/P&gt;&lt;P&gt;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!&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 27 Sep 2024 18:33:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Science/Stuck-Can-t-Load-Registered-ML-Model/m-p/4185227#M397</guid>
      <dc:creator>AlanZ</dc:creator>
      <dc:date>2024-09-27T18:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck-- Can't Load Registered ML Model</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Science/Stuck-Can-t-Load-Registered-ML-Model/m-p/4198831#M428</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="457727" data-lia-user-login="AlanZ" class="lia-mention lia-mention-user"&gt;AlanZ&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I applied the following code got from the &lt;A href="https://learn.microsoft.com/fabric/data-science/tutorial-data-science-batch-scoring" target="_blank" rel="noopener"&gt;tutorial documentation&lt;/A&gt;&amp;nbsp;without having any error. There are two other ways to apply the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://aka.ms/fabric/predict-from-model-item" target="_blank" rel="noopener" data-linktype="external"&gt;PREDICT&lt;/A&gt; function in the model in the documentation, which you can try.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If all methods failed,&amp;nbsp;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.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Updated:&lt;/P&gt;
&lt;P&gt;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.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Jing&lt;BR /&gt;&lt;EM&gt;If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos! &lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 07:58:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Science/Stuck-Can-t-Load-Registered-ML-Model/m-p/4198831#M428</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-30T07:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck-- Can't Load Registered ML Model</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Science/Stuck-Can-t-Load-Registered-ML-Model/m-p/4686941#M753</link>
      <description>&lt;P&gt;Also had this error. Solution did not remedy.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;models_dict_list&lt;/SPAN&gt;&lt;SPAN&gt; = [&lt;/SPAN&gt;&lt;SPAN&gt;dict&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;model&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;SPAN&gt;for&lt;/SPAN&gt; &lt;SPAN&gt;model&lt;/SPAN&gt; &lt;SPAN&gt;in&lt;/SPAN&gt; &lt;SPAN&gt;models_list&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;models_dict_list&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;[{'aliases': {},
  'creation_timestamp': 1746808155391,
  'description': '',
  'last_updated_timestamp': 1746808155391,
  'latest_versions': [&amp;lt;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'&amp;gt;],
  'name': 'FaultClassification',
  'tags': {}}]&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;If I'm reading the error correctly `&lt;SPAN class=""&gt;RuntimeError&lt;/SPAN&gt;&lt;SPAN&gt;: Unable to get model info: No such file or directory: '/tmp/tmpsb213zls/MLmodel'`&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It's trying to access a temp directory rather than the path that's in the `source` field? Is that right?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 17:23:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Science/Stuck-Can-t-Load-Registered-ML-Model/m-p/4686941#M753</guid>
      <dc:creator>wharding2025</dc:creator>
      <dc:date>2025-05-09T17:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck-- Can't Load Registered ML Model</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Science/Stuck-Can-t-Load-Registered-ML-Model/m-p/5181131#M1170</link>
      <description>&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2026 19:53:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Science/Stuck-Can-t-Load-Registered-ML-Model/m-p/5181131#M1170</guid>
      <dc:creator>sean_cochran</dc:creator>
      <dc:date>2026-05-11T19:53:30Z</dc:date>
    </item>
  </channel>
</rss>

