tutorials icon indicating copy to clipboard operation
tutorials copied to clipboard

[BUG] - <title>When I use fsdp, Because the flattened parameters, I always meet some question

Open sqzhang-lazy opened this issue 2 years ago • 2 comments

Add Link

When I use fsdp, Because the flattened parameters, I always meet some question. for examples: RuntimeError: mat2 must be a matrix, got 1-D tensor and RuntimeError: weight should have at least three dimensions It always occurred in some flattened model weights, sucn as conv, linear etc. How can I solve this problem?

Describe the bug

When I use fsdp, Because the flattened parameters, I always meet some question for examples: RuntimeError: mat2 must be a matrix, got 1-D tensor and RuntimeError: weight should have at least three dimensions It always occurred in some flattened model weights, sucn as conv, linear etc. How can I solve this problem?

Describe your environment

Pytorch 2.1.0

cc @osalpekar @H-Huang @kwen2501

sqzhang-lazy avatar Oct 19 '23 14:10 sqzhang-lazy

Hi @648652443, could please provide some code snippets to reproduce the bug?

yiliu30 avatar Nov 01 '23 06:11 yiliu30