# Errors during autotrain use

**URL:** <https://discuss.huggingface.co/t/errors-during-autotrain-use/153405>\
**Category:** Spaces\
**Created:** [May 4, 2025, 11:32am UTC](https://discuss.huggingface.co/t/errors-during-autotrain-use/153405 "2025-05-04T11:32:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Snackstopalex](https://avatars.discourse-cdn.com/v4/letter/s/9e8a1a/32.png) [@Snackstopalex](https://discuss.huggingface.co/u/Snackstopalex)\
**Post date:** [May 4, 2025, 11:32am UTC](https://discuss.huggingface.co/t/errors-during-autotrain-use/153405/1 "2025-05-04T11:32:08Z")

</div>

Hello there,new here  
My name is Alex  
I am trying to train a model using autotrain with a very small dataset because i am a beginner,i am just trying this in order to learn not for serious use  
The thing is,i am stuck and keep seeing this error all the time and then the page “restart this space” automatically appears.Anyone can help?Thanks in advance

 ![IMG_6444](https://us1.discourse-cdn.com/hellohellohello/original/3X/8/2/822c7e7f16182455d9e2d644e30e085174778045.jpeg)

---

<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:** [May 5, 2025, 3:20am UTC](https://discuss.huggingface.co/t/errors-during-autotrain-use/153405/2 "2025-05-05T03:20:27Z")

</div>

I don’t know why, but it’s probably a similar case. There have been multiple reports that it doesn’t work.

> [@Using autotrain api but not seeing any files generated](https://discuss.huggingface.co/t/using-autotrain-api-but-not-seeing-any-files-generated/146980):
>
> i have persistence using example similar to this: it says that it’s saving the model but then i don’t see anything anywhere setting push\_to\_hub in the curl json has no effect – it still says push\_to\_hub:false in the logs help would be greatly appreciated if at least i knew where the files were saved in /data that would be a start, but after it runs i don’t see anything in /data anywhere it ends with: INFO | 2025-03-22 22:24:34 | autotrain.trainers.clm.utils:post\_training\_steps:416 …

---

<div class="post-metadata">

**Author:** ![Zelgodiz](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/zelgodiz/32/45662_2.png) [@Zelgodiz](https://discuss.huggingface.co/u/Zelgodiz)\
**Post date:** [May 5, 2025, 4:04am UTC](https://discuss.huggingface.co/t/errors-during-autotrain-use/153405/3 "2025-05-05T04:04:49Z")

</div>

It sounds like you’re running into an issue where **AutoTrain keeps restarting your Space** , which can be frustrating—especially when you’re just trying to learn the basics.

### **Possible Causes**

1. **Insufficient Dataset Size** – AutoTrain may require a minimum number of samples to function properly. If your dataset is too small, it might trigger an error.
2. **Space Configuration Issues** – Some users have reported that Spaces automatically pause or restart due to misconfigured settings[43dcd9a7-70db-4a1f-b0ae-981daa162054](https://discuss.huggingface.co/t/autotrain-space-automatically-pauses-during-training/142529?citationMarker=43dcd9a7-70db-4a1f-b0ae-981daa162054 "1").
3. **GPU or Memory Constraints** – If your Space is running on limited resources, it might be failing due to memory overload[43dcd9a7-70db-4a1f-b0ae-981daa162054](https://discuss.huggingface.co/t/autotrain-not-working-at-all/94363?citationMarker=43dcd9a7-70db-4a1f-b0ae-981daa162054 "2").
4. **AutoTrain Defaults** – Some parameters might not be set correctly, causing unexpected behavior[43dcd9a7-70db-4a1f-b0ae-981daa162054](https://discuss.huggingface.co/t/need-help-interpreting-autotrain-error-log/70131?citationMarker=43dcd9a7-70db-4a1f-b0ae-981daa162054 "3").

### **Potential Fixes**

- **Increase Dataset Size** – Try adding more samples to see if it resolves the issue.
- **Check Space Settings** – If your Space has a `PAUSE_ON_FAILURE` setting, set it to `0` instead of `1` to prevent automatic restarts[43dcd9a7-70db-4a1f-b0ae-981daa162054](https://discuss.huggingface.co/t/autotrain-space-automatically-pauses-during-training/142529?citationMarker=43dcd9a7-70db-4a1f-b0ae-981daa162054 "1").
- **Review Logs** – Click on the logs in your Space to see if there are specific error messages that indicate the root cause[43dcd9a7-70db-4a1f-b0ae-981daa162054](https://discuss.huggingface.co/t/autotrain-not-working-at-all/94363?citationMarker=43dcd9a7-70db-4a1f-b0ae-981daa162054 "2").
- **Try a Different Model** – If the issue persists, test with a simpler model to see if the problem is model-specific[43dcd9a7-70db-4a1f-b0ae-981daa162054](https://discuss.huggingface.co/t/need-help-interpreting-autotrain-error-log/70131?citationMarker=43dcd9a7-70db-4a1f-b0ae-981daa162054 "3").

Would you like help troubleshooting specific error messages from your logs? 🚀

---

<div class="post-metadata">

**Author:** ![bensonbbn](https://avatars.discourse-cdn.com/v4/letter/b/f475e1/32.png) [@bensonbbn](https://discuss.huggingface.co/u/bensonbbn)\
**Post date:** [May 9, 2025, 3:14pm UTC](https://discuss.huggingface.co/t/errors-during-autotrain-use/153405/4 "2025-05-09T15:14:53Z")

</div>

Dear Zelgodiz Sir,  
I came across your response in another post and just wanted to personally thank you for the helpful answer you provided a few days ago.

Thank you so much for your clear instructions and for taking the time to correct my code!

I followed your suggestions, and I’m happy to report that it worked perfectly. Your guidance truly made a difference, and I sincerely appreciate your support and kindness.

Thank you once again for your generous help.
