I came across this error with repeating “module.module.module.conv1.weight” when loading a checkpoint in Jupyter notebook. Later I found out that I accidentally ran the following cell more than once:
model = torch.nn.DataParallel(model)

This line appears to insert the “module” tag to the weights’ names every time you run it. Once I fix this, the error is gone.