Hugging Face Forums
RuntimeError: Expected tensor for argument #1 'indices' to have one of the following scalar types: Long, Int; but got MPSFloatType instead (while checking arguments for embedding)
🤗Transformers
Joshua-Evans
July 24, 2024, 8:15pm
2
Im having the same issue. Did you ever figure it out?
1 Like
show post in topic
Related topics
Topic
Replies
Views
Activity
Model doesn't accept int32
Beginners
0
99
April 29, 2024
Run_backward: expected dtype Float but got dtype Long
Intermediate
4
1010
July 3, 2024
String indices must be integers in BertPreTrainedModel
Models
0
276
March 12, 2024
RuntimeError: mixed dtype (CPU): expect parameter to have scalar type of Float
Models
0
2609
October 11, 2022
Output tensor must have the same type as input tensor
🤗AutoTrain
0
411
June 6, 2024