I meet the same error and I following the guide
https://discuss.huggingface.co/t/help-runtimeerror-cuda-error-device-side-assert-triggered/9418
if you have a CUDA error, run your code on CPU and check if you’re getting a more helpful error message.
and I find what's error in my code.