Hugging Face Forums
Error using SFTTrainer: Make sure that your dataset has enough samples to at least yield one packed sequence
Beginners
sc4r3cr0w
May 9, 2024, 12:57pm
7
Just remove the packing=True argument from the SFTTrainer
Model responses are random ignoring my dataset
show post in topic
Related topics
Topic
Replies
Views
Activity
Unable to create tensor, you should probably activate truncation and/or padding with 'padding=True' 'truncation=True'
🤗Transformers
2
911
July 24, 2024
SFTTrainer work but without result
Beginners
1
137
October 13, 2025
Fine tuning LLM for text classification -- error with SFTTrainer
Intermediate
2
1459
June 3, 2025
Can only automatically infer lengths for datasets whose items are dictionaries with an 'input_ids' key
🤗Transformers
0
653
May 30, 2024
Packing issue, SFTTrainer
🤗Transformers
0
368
November 10, 2023