Hugging Face Forums
Custom BCEWithLogitsLoss for Sequence Classification using Auto Model
Beginners
John6666
May 26, 2025, 11:10am
2
Hmm…
BCEWithLogitsLoss is for Binary 0 or 1 use torch.nn.CrossEntropyLoss
show post in topic
Related topics
Topic
Replies
Views
Activity
Mullti Label Text Classification
🤗Transformers
2
1562
June 26, 2023
Multi label classification with large number of labels and sparse data
🤗Transformers
1
1513
July 15, 2023
Mismatched target and input size for BCE using "multi_label_classification"
Intermediate
2
7002
September 1, 2022
Multi-label token classification
🤗Transformers
34
7664
September 6, 2023
Why is BCELoss used for multi-label classification?
🤗Transformers
4
323
October 12, 2024