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
I am simply running the gemma-2-2b example notebook of unsloth [https://colab.research.google.com/drive/1weTpKOjBZxZJ5PQ-Ql8i6ptAY2x-FWVA?usp=sharing] and getting the cited error.
changed the title [-]Getting "compiled_autograd.enable() requires no threads in backwards()" on running SFTTrainer[/-][+]Getting "compiled_autograd.enable() requires no threads in backwards()" on running SFTTrainer on unsloth/gemma-2 models[/+]on Nov 6, 2024
changed the title [-]Getting "compiled_autograd.enable() requires no threads in backwards()" on running SFTTrainer on unsloth/gemma-2 models[/-][+][FIXED] `compiled_autograd.enable()` Gemma[/+]on Nov 7, 2024
Activity
[-]Getting "compiled_autograd.enable() requires no threads in backwards()" on running SFTTrainer[/-][+]Getting "compiled_autograd.enable() requires no threads in backwards()" on running SFTTrainer on unsloth/gemma-2 models[/+]sudha-kannan commentedon Nov 7, 2024
Yes, I too face similar issue
[-]Getting "compiled_autograd.enable() requires no threads in backwards()" on running SFTTrainer on unsloth/gemma-2 models[/-][+][FIXED] `compiled_autograd.enable()` Gemma[/+]danielhanchen commentedon Nov 7, 2024
Apologies just fixed it! @sudha-kannan @InderjeetVishnoi also cc @Erland366
Please update Unsloth without changing dependencies if on local machines - Colab / Kaggle just delete the runtime and start again
pip uninstall unsloth unsloth-zoo -y && pip install --upgrade --no-cache-dir --no-deps unsloth unsloth-zooInderjeetVishnoi commentedon Nov 7, 2024
Hi @danielhanchen
Thank you for the quick fix, it is working now :)
sudha-kannan commentedon Nov 7, 2024
Thank you @danielhanchen for the fix, appreciate it!