# Training data is not working

**URL:** <https://discuss.huggingface.co/t/training-data-is-not-working/125426>\
**Category:** Beginners\
**Created:** [November 18, 2024, 12:03am UTC](https://discuss.huggingface.co/t/training-data-is-not-working/125426 "2024-11-18T00:03:32Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [November 18, 2024, 1:17am UTC](https://discuss.huggingface.co/t/training-data-is-not-working/125426/2 "2024-11-18T01:17:31Z")

</div>

Hello. We can’t give you any specific advice unless we know which model and dataset is causing the error…  
If you don’t put the data set in the HF data set repository, autotrain won’t work properly.  
Basically, that error occurs when the program is not passed the number of types of data it expects.  
As a general rule, I think it’s easier to get it to work if you first try running a very simple sample that seems to work without a problem, and then replace it with your own model and data.

It seems that this can also be caused by bugs or insufficient performance in the library, and in such cases it is difficult to solve the problem on your own.

> [@Getting runtime error when using AutoTrain](https://discuss.huggingface.co/t/getting-runtime-error-when-using-autotrain/66042):
>
> Hello, I am trying to test out autotrain using a [llama 2 chat](https://huggingface.co/meta-llama/Llama-2-7b-chat-hf) and an [alpaca dataset](https://huggingface.co/datasets/tatsu-lab/alpaca) but I have cut it down to 1k rows instead of 52k. I am running on T4 Small I haven’t changed any configuration options and everything is default. { "block\_size": 1024, "model\_max\_length": 2048, "use\_flash\_attention\_2": false, "disable\_gradient\_checkpointing": false, "logging\_steps": -1, "evaluation\_strategy": "epoch", "save\_total\_limit": 1, "save\_strategy": "epoch", "auto\_find\_batch\_size": fa…

---

_[View the full topic](https://discuss.huggingface.co/t/training-data-is-not-working/125426)._
