BackendCompilerFailed: backend='inductor' raised:
TypeError: cannot pickle '_thread.RLock' object
Got this error, when trying to locally fine-tune the gemma3 model.
I searched online and couldn't find people having the same poroblem as me. I also asked AI, who told me to disable the compiler. This didn't work, I wasn't even able to select a different backend_compiler.
I am using a Jetson orin nano with Ubuntu 22.04, Cuda 12.6.68, python 3.10.12.
details on the error and the notebook in question:
https://github.com/AntonStantan/matura/blob/main/pre-trained-tranformers/gemma_unsloth.ipynb
some important package versions:
torch 2.8.0
triton 3.4.0
transformers 4.56.0
unsloth 2025.8.9
unsloth_zoo 2025.8.9
The error is very deep, I suggest there might be a problem with the dependencies. Any help will be appreciated. Thanks in advance.
