<?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 Re: Importing sentence-transformers no longer works on Databricks runtime 17.2 ML in Machine Learning</title>
    <link>https://community.databricks.com/t5/machine-learning/importing-sentence-transformers-no-longer-works-on-databricks/m-p/131167#M4292</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Khaja_Zaffer_0-1757243856025.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/19815i67D62E4F66B3BBF6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Khaja_Zaffer_0-1757243856025.png" alt="Khaja_Zaffer_0-1757243856025.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Khaja_Zaffer_1-1757243873902.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/19816iFCC8D6CFBA60F8CF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Khaja_Zaffer_1-1757243873902.png" alt="Khaja_Zaffer_1-1757243873902.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So after running upgrade, I was able to use&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;model=&lt;/SPAN&gt;&lt;SPAN&gt;"Qwen/Qwen2.5-1.5B-Instruct"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Sun, 07 Sep 2025 11:18:55 GMT</pubDate>
    <dc:creator>Khaja_Zaffer</dc:creator>
    <dc:date>2025-09-07T11:18:55Z</dc:date>
    <item>
      <title>Importing sentence-transformers no longer works on Databricks runtime 17.2 ML</title>
      <link>https://community.databricks.com/t5/machine-learning/importing-sentence-transformers-no-longer-works-on-databricks/m-p/130630#M4282</link>
      <description>&lt;P&gt;In &lt;A href="https://docs.databricks.com/aws/en/release-notes/runtime/16.4lts-ml" target="_self"&gt;Databricks Runtime 16.4 LTS for Machine Learning&lt;/A&gt;, I am used to be able to import sentence-transformers without any installation as it is part of the runtime with&amp;nbsp;&lt;EM&gt;&lt;SPAN&gt;from&lt;/SPAN&gt;&lt;SPAN&gt; sentence_transformers &lt;/SPAN&gt;&lt;SPAN&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; SentenceTransformer.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;In this case I am running on a personal compute cluster and although i&lt;/SPAN&gt;t generates some advanced warnings that I don't know how to interpret, it runs&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;&lt;SPAN&gt;2025-09-03 09:39:48.853218: I tensorflow/core/util/port.cc:153] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`. 2025-09-03 09:39:48.869748: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:485] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered 2025-09-03 09:39:48.890311: E external/local_xla/xla/stream_executor/cuda/cuda_dnn.cc:8454] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered 2025-09-03 09:39:48.896580: E external/local_xla/xla/stream_executor/cuda/cuda_blas.cc:1452] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered 2025-09-03 09:39:48.911486: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations. To enable the following instructions: AVX2 AVX512F AVX512_VNNI FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags. 2025-09-03 09:39:50.080574: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;However, if I upgrade my cluster to run the latest &lt;A href="https://docs.databricks.com/aws/en/release-notes/runtime/17.2ml" target="_self"&gt;17.2 machine learning&lt;/A&gt; (Beta). I instead get this crash.&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Failed to import transformers.modeling_utils because of the following error (look up to see its traceback):&lt;BR /&gt;/databricks/python/lib/python3.12/site-packages/flash_attn_2_cuda.cpython-312-x86_64-linux-gnu.so: undefined symbol: _ZN3c105ErrorC2ENS_14SourceLocationESs&lt;BR /&gt;[Trace ID: 00-91c7cd652996226fe8747ad97efc53e6-f7a274cbb6f58e49-00]&lt;/P&gt;&lt;P&gt;Both runtimes include sentence-transformers although version 3.4.1 versus 4.0.1, so it should work. Is this no longer supported? Is it known to be broken in the beta?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2025 09:56:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/importing-sentence-transformers-no-longer-works-on-databricks/m-p/130630#M4282</guid>
      <dc:creator>excavator-matt</dc:creator>
      <dc:date>2025-09-03T09:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: Importing sentence-transformers no longer works on Databricks runtime 17.2 ML</title>
      <link>https://community.databricks.com/t5/machine-learning/importing-sentence-transformers-no-longer-works-on-databricks/m-p/130633#M4283</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/179384"&gt;@excavator-matt&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which version of pytorch and CUDA are you using? Which version of flash attention are you using?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if there’s a matching wheel for your environment, you can download it from&amp;nbsp;&lt;A href="https://github.com/Dao-AILab/flash-attention/releases/" target="_blank"&gt;https://github.com/Dao-AILab/flash-attention/releases/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2025 10:22:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/importing-sentence-transformers-no-longer-works-on-databricks/m-p/130633#M4283</guid>
      <dc:creator>Khaja_Zaffer</dc:creator>
      <dc:date>2025-09-03T10:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Importing sentence-transformers no longer works on Databricks runtime 17.2 ML</title>
      <link>https://community.databricks.com/t5/machine-learning/importing-sentence-transformers-no-longer-works-on-databricks/m-p/130638#M4284</link>
      <description>&lt;P&gt;I simply run import in in the runtime, so it would it be the &lt;A href="https://docs.databricks.com/aws/en/release-notes/runtime/17.2ml" target="_self"&gt;runtime default&lt;/A&gt;&amp;nbsp;(CUDA 12.6, torch 2.70 and flash_attn 2.7.4.post1). I haven't tried overriding any of these. Not sure if there is a known incompatibility here.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2025 10:59:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/importing-sentence-transformers-no-longer-works-on-databricks/m-p/130638#M4284</guid>
      <dc:creator>excavator-matt</dc:creator>
      <dc:date>2025-09-03T10:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Importing sentence-transformers no longer works on Databricks runtime 17.2 ML</title>
      <link>https://community.databricks.com/t5/machine-learning/importing-sentence-transformers-no-longer-works-on-databricks/m-p/130695#M4285</link>
      <description>&lt;P&gt;I am trying to find solution for your issue but since morning, I am unable to use databricks community editions, the cluster just spins without error.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2025 14:59:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/importing-sentence-transformers-no-longer-works-on-databricks/m-p/130695#M4285</guid>
      <dc:creator>Khaja_Zaffer</dc:creator>
      <dc:date>2025-09-03T14:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Importing sentence-transformers no longer works on Databricks runtime 17.2 ML</title>
      <link>https://community.databricks.com/t5/machine-learning/importing-sentence-transformers-no-longer-works-on-databricks/m-p/131164#M4291</link>
      <description>&lt;P&gt;I just checked&amp;nbsp;&lt;/P&gt;&lt;P&gt;run pip install --upgrade transformers&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe you are working on RAG?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Sep 2025 11:00:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/importing-sentence-transformers-no-longer-works-on-databricks/m-p/131164#M4291</guid>
      <dc:creator>Khaja_Zaffer</dc:creator>
      <dc:date>2025-09-07T11:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Importing sentence-transformers no longer works on Databricks runtime 17.2 ML</title>
      <link>https://community.databricks.com/t5/machine-learning/importing-sentence-transformers-no-longer-works-on-databricks/m-p/131167#M4292</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Khaja_Zaffer_0-1757243856025.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/19815i67D62E4F66B3BBF6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Khaja_Zaffer_0-1757243856025.png" alt="Khaja_Zaffer_0-1757243856025.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Khaja_Zaffer_1-1757243873902.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/19816iFCC8D6CFBA60F8CF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Khaja_Zaffer_1-1757243873902.png" alt="Khaja_Zaffer_1-1757243873902.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So after running upgrade, I was able to use&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;model=&lt;/SPAN&gt;&lt;SPAN&gt;"Qwen/Qwen2.5-1.5B-Instruct"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 07 Sep 2025 11:18:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/importing-sentence-transformers-no-longer-works-on-databricks/m-p/131167#M4292</guid>
      <dc:creator>Khaja_Zaffer</dc:creator>
      <dc:date>2025-09-07T11:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Importing sentence-transformers no longer works on Databricks runtime 17.2 ML</title>
      <link>https://community.databricks.com/t5/machine-learning/importing-sentence-transformers-no-longer-works-on-databricks/m-p/131230#M4293</link>
      <description>&lt;P&gt;I am not sure if it is possible to replace &lt;A href="https://pypi.org/project/sentence-transformers/" target="_self"&gt;sentence-transformers&lt;/A&gt; with &lt;A href="https://pypi.org/project/transformers/" target="_self"&gt;transformers&lt;/A&gt;, but I think it should be possible to import sentence-transformers it is an official part of the runtime. In this case, I was more interested in the resulting vectors from sentence-transformers encode than any reply.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2025 12:11:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/importing-sentence-transformers-no-longer-works-on-databricks/m-p/131230#M4293</guid>
      <dc:creator>excavator-matt</dc:creator>
      <dc:date>2025-09-08T12:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Importing sentence-transformers no longer works on Databricks runtime 17.2 ML</title>
      <link>https://community.databricks.com/t5/machine-learning/importing-sentence-transformers-no-longer-works-on-databricks/m-p/131247#M4294</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/179384"&gt;@excavator-matt&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for your response.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I dont have a workspace to test on 17.2 BETA ML cluster. Highly recommended to use LTS based cluster.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;however: You can try running upgrade transformers and run sentence_transformers.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;After the &lt;/SPAN&gt;&lt;SPAN class=""&gt;pip install --upgrade transformers&lt;/SPAN&gt;&lt;SPAN class=""&gt;, run &lt;/SPAN&gt;&lt;SPAN class=""&gt;from sentence_transformers import SentenceTransformer&lt;/SPAN&gt;&lt;SPAN class=""&gt; again in your 17.2 ML Beta cluster. If it still crashes with the &lt;/SPAN&gt;&lt;SPAN class=""&gt;undefined symbol&lt;/SPAN&gt;&lt;SPAN class=""&gt; error, the upgrade alone might not have fixed the &lt;/SPAN&gt;&lt;SPAN class=""&gt;flash-attn&lt;/SPAN&gt;&lt;SPAN class=""&gt; compatibility issue (as &lt;/SPAN&gt;&lt;SPAN class=""&gt;transformers&lt;/SPAN&gt;&lt;SPAN class=""&gt; 4.41.2 might still rely on the runtime's pre-built &lt;/SPAN&gt;&lt;SPAN class=""&gt;flash-attn&lt;/SPAN&gt;&lt;SPAN class=""&gt; 2.7.4.post1).&lt;BR /&gt;&lt;BR /&gt;Thank you.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 08 Sep 2025 16:06:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/importing-sentence-transformers-no-longer-works-on-databricks/m-p/131247#M4294</guid>
      <dc:creator>Khaja_Zaffer</dc:creator>
      <dc:date>2025-09-08T16:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Importing sentence-transformers no longer works on Databricks runtime 17.2 ML</title>
      <link>https://community.databricks.com/t5/machine-learning/importing-sentence-transformers-no-longer-works-on-databricks/m-p/136801#M4392</link>
      <description>&lt;P&gt;I now upgraded to the new 17.3 LTS ML and it now works. I didn't try 17.2 ML, but with 17.3 ML available, I don't see any reason to use it anymore.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Oct 2025 18:09:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/importing-sentence-transformers-no-longer-works-on-databricks/m-p/136801#M4392</guid>
      <dc:creator>excavator-matt</dc:creator>
      <dc:date>2025-10-30T18:09:49Z</dc:date>
    </item>
  </channel>
</rss>

