gpt-4o-2024-05-13· OpenAI
WildChat-4.8M (AI2)
RuntimeError: mat1 and mat2 shapes cannot be multiplied (34650x64 and 512x512) F.linear
- User
RuntimeError: mat1 and mat2 shapes cannot be multiplied (34650x64 and 512x512) F.linear
- Assistant
The error you're encountering typically arises from the shape mismatch between the input matrix
mat1and the weight matrix when attempting a linear transformation in PyTorch using .