# Error using SFTTrainer: Make sure that your dataset has enough samples to at least yield one packed sequence

**URL:** <https://discuss.huggingface.co/t/error-using-sfttrainer-make-sure-that-your-dataset-has-enough-samples-to-at-least-yield-one-packed-sequence/73731>\
**Category:** Beginners\
**Created:** [February 18, 2024, 7:36pm UTC](https://discuss.huggingface.co/t/error-using-sfttrainer-make-sure-that-your-dataset-has-enough-samples-to-at-least-yield-one-packed-sequence/73731 "2024-02-18T19:36:50Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![sc4r3cr0w](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/sc4r3cr0w/32/26797_2.png) [@sc4r3cr0w](https://discuss.huggingface.co/u/sc4r3cr0w)\
**Post date:** [May 9, 2024, 12:57pm UTC](https://discuss.huggingface.co/t/error-using-sfttrainer-make-sure-that-your-dataset-has-enough-samples-to-at-least-yield-one-packed-sequence/73731/7 "2024-05-09T12:57:46Z")

</div>

> [@celsowm](#):
>
> `packing=True,`

Just remove the packing=True argument from the SFTTrainer

---

_[View the full topic](https://discuss.huggingface.co/t/error-using-sfttrainer-make-sure-that-your-dataset-has-enough-samples-to-at-least-yield-one-packed-sequence/73731)._
