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
Training a toy example on DDP mode with the composer runtime while using both using torch.compile through Trainer.compile_config={} and BlurPool algorithm raises a dynamo error.
** To reproduce
From develop on a 2 GPU environmment.
[rank0]: torch._dynamo.exc.BackendCompilerFailed: backend='compile_fn' raised:
[rank0]: AttributeError: 'Conv2d' object has no attribute 'requires_grad'
[rank0]: Set TORCH_LOGS="+dynamo" and TORCHDYNAMO_VERBOSE=1 for more information
It works if I remove either DDP, BlurPool, or torch.compile.
The text was updated successfully, but these errors were encountered:
@Ghelfi do you know if this works for you elsewhere, e.g. if you compile outside Composer? Will help us narrow down if its a Composer issue or PyTorch issue, as the trace looks more like a Pytorch issue to me
Training a toy example on DDP mode with the composer runtime while using both using
torch.compile
throughTrainer.compile_config={}
andBlurPool
algorithm raises a dynamo error.** To reproduce
From develop on a 2 GPU environmment.
Code:
Steps to reproduce the behavior:
composer -n 2 example.py
(see code above)Dynamo Error:
It works if I remove either DDP,
BlurPool
, ortorch.compile
.The text was updated successfully, but these errors were encountered: