Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Training erroe with accelerate.backward(loss) #80

Open
juxingyiwan opened this issue Jan 10, 2025 · 0 comments
Open

Training erroe with accelerate.backward(loss) #80

juxingyiwan opened this issue Jan 10, 2025 · 0 comments

Comments

@juxingyiwan
Copy link

When I run the default training script for sd1.5, an error occurred on the line accelerate.backward(loss). The detailed error is as follows:

Traceback (most recent call last):
  File "/mnt/lustre/zhuguibo/dcy/BrushNet/examples/brushnet/train_brushnet.py", line 1403, in <module>
    main(args)
  File "/mnt/lustre/zhuguibo/dcy/BrushNet/examples/brushnet/train_brushnet.py", line 1303, in main
    accelerator.backward(loss)
  File "/mnt/lustre/zhuguibo/anaconda3/envs/diffusers/lib/python3.9/site-packages/accelerate/accelerator.py", line 2248, in backward
    loss.backward(**kwargs)
  File "/mnt/lustre/zhuguibo/anaconda3/envs/diffusers/lib/python3.9/site-packages/torch/_tensor.py", line 487, in backward
    torch.autograd.backward(
  File "/mnt/lustre/zhuguibo/anaconda3/envs/diffusers/lib/python3.9/site-packages/torch/autograd/__init__.py", line 200, in backward
    Variable._execution_engine.run_backward(  # Calls into the C++ engine to run the backward pass
RuntimeError: CUDA error: an illegal instruction was encountered
Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.

Any one met the same issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant