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
1465
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
757
January 11, 2024
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
179
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
The size of tensor a (882) must match the size of tensor b (568) at non-singleton dimension 1
🤗Transformers
2
25
March 27, 2025