Skip to content

UserWarning: Grad strides do not match bucket view strides. #19

@lime-s

Description

@lime-s

Have you encountered such problems during training?:
.conda/envs/seggpt/lib/python3.8/site-packages/torch/autograd/init.py:173: UserWarning: Grad strides do not match bucket view strides. This may indicate grad was not created according to the gradient layout contract, or that the param's strides changed since DDP was constructed. This is not an error, but may impair performance.
grad.sizes() = [1, 1, 1024], strides() = [2409472, 1024, 1]
bucket_view.sizes() = [1, 1, 1024], strides() = [1024, 1024, 1] (Triggered internally at ../torch/csrc/distributed/c10d/reducer.cpp:312.)
Variable._execution_engine.run_backward( # Calls into the C++ engine to run the backward pass

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions