Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 14040

python- pytorch.compile() giving runtime error saying Dynamo is not supported on python 3.12+

$
0
0

I'm trying to run this block of code in my local LLM.

if compile:    print("compiling the model")    unoptimized_model = model    model = torch.compile(model)

And this is the error i get:

Traceback (most recent call last):File "c:\Users\abul4\OneDrive\Desktop\LLM\train.py", line 180, in <module>model = torch.compile(model)^^^^^^^^^^^^^^^^^^^^File "C:\Users\abul4\AppData\Local\Programs\Python\Python312\Lib\site-packages\torch_init_.py", line 1801, in compileraise RuntimeError("Dynamo is not supported on Python 3.12+")RuntimeError: Dynamo is not supported on Python 3.12+

Pls help me fix this

Traceback (most recent call last):File "c:\\Users\\abul4\\OneDrive\\Desktop\\LLM\\train.py", line 180, in \<module\>model = torch.compile(model)^^^^^^^^^^^^^^^^^^^^File "C:\\Users\\abul4\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\torch\__init_\_.py", line 1801, in compileraise RuntimeError("Dynamo is not supported on Python 3.12+")RuntimeError: Dynamo is not supported on Python 3.12+

Viewing all articles
Browse latest Browse all 14040

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>