Hugging Face Forums
{"error":"The expanded size of the tensor (524) must match the existing size (514) at non-singleton dimension 1. Target sizes: [1, 524]. Tensor sizes: [1, 514]"}
Models
gegham
November 22, 2024, 7:50am
1
Hi All , I’m calling to this model
and get error about tensor size. How can I solve this?
2 Likes
Related topics
Topic
Replies
Views
Activity
The expanded size of the tensor (22528) must match the existing size (1024) at non-singleton dimension 0
Models
0
1474
July 25, 2023
ERROR: The size of tensor a () must match the size of tensor b () at non-singleton dimension 1
Inference Endpoints on the Hub
0
788
January 11, 2024
RuntimeError: The size of tensor a (48) must match the size of tensor b (64) at \nnon-singleton dimension 0"}
Inference Endpoints on the Hub
1
13
April 29, 2025
RuntimeError: The expanded size of the tensor (31) must match the existing size (7) at non-singleton dimension 0. Target sizes: [31]. Tensor sizes: [7]
Beginners
0
181
May 23, 2024
I am following a hugging face guide for fine tuning whisper but I run into error when training
🤗Transformers
0
166
March 15, 2024