You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] "Unsloth: Failed to create dynamic compiled modules!" error triggered and fixed by updating "create_new_function" in unsloth_zoo/compiler.py #1928
I found install unsloth and run below code ends with this error "if trials == 1000: raise RuntimeError("Unsloth: Failed to create dynamic compiled modules!")"
fromunslothimportFastLanguageModel, PatchFastRL
So I fixed create_new_function in unsloth_zoo/compiler.py and bug fixed.
Reacted by Jonathan-Chayna, Đinh Dương Hải Nam, Namron2000, Ludwittge and Caio Mascarenhas Soares
Hey, is there another workaround? Maybe in the installation process? I don't want to change the file whenever I create a container. Sadly, Unsloth Zoo doesn't have tags, so you can not reinstall the older Version.
Hey, is there another workaround? Maybe in the installation process? I don't want to change the file whenever I create a container. Sadly, Unsloth Zoo doesn't have tags, so you can not reinstall the older Version.
Activity
satpalsr commentedon Mar 6, 2025
+1, just experienced same bug.
LucaBoscia commentedon Mar 6, 2025
Hi also experiencing this!
Namron2000 commentedon Mar 6, 2025
Hey, is there another workaround? Maybe in the installation process? I don't want to change the file whenever I create a container. Sadly, Unsloth Zoo doesn't have tags, so you can not reinstall the older Version.
satpalsr commentedon Mar 6, 2025
pip install unsloth==2025.3.6 unsloth_zoo==2025.3.4from #1925
LucaBoscia commentedon Mar 6, 2025
You're a legend, it worked thanks!!
Big bug fixes
danielhanchen commentedon Mar 6, 2025
@satpalsr @Namron2000 @LucaBoscia @yhsong-nxt Extreme apologies - I rechecked everything and pushed some fixes - so sorry on the issue!
For local machines, please do:
For Colab / Kaggle machines, please disconnect and restart the runtime!
You can also force the versions:
You should see Unsloth's version at least is 2025.3.8:

Big bug fixes