# AutoTrain - Space Automatically Pauses During Training

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fautotrain-space-automatically-pauses-during-training%2F142529%3E%5C
**Category:** 🤗AutoTrain\
**Created:** [February 23, 2025, 7:00pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fautotrain-space-automatically-pauses-during-training%2F142529 "2025-02-23T19:00:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![FlexDev](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/flexdev/32/41803_2.png) [@FlexDev](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FFlexDev)%5C
**Post date:** [February 23, 2025, 7:00pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fautotrain-space-automatically-pauses-during-training%2F142529%2F1 "2025-02-23T19:00:44Z")

</div>

Hello everyone,

I’m facing an issue with AutoTrain using the Hugging Face graphical interface. Every time I start a training session, my Space automatically pauses within seconds, showing the message: _“This Space has been paused by its owner”_. However, I haven’t done anything to stop it.

I checked the logs, but they don’t clearly indicate where the issue is coming from. I also searched the forums and documentation but couldn’t find a solution.

Has anyone encountered this issue before or has any idea what might be causing it and how to fix it? Any help would be greatly appreciated!

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [February 24, 2025, 7:38am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fautotrain-space-automatically-pauses-during-training%2F142529%2F2 "2025-02-24T07:38:46Z")

</div>

It seems to be a kind of safety device to prevent the case where the program continues to run with a bug and consumes money, assuming that it is running on a paid Spaces. There is probably an error in the settings or something.

> <https://github.com/huggingface/autotrain-advanced/issues/670>
>
> Hello, I keep trying to train a model using AutoTrain with my own training data …and it keeps doing what the title says
> 
> Model: https://huggingface.co/meta-llama/Meta-Llama-3-8B
> Dataset: 
> \[coolbot dataset 2.csv\](https://github.com/user-attachments/files/15738216/coolbot.dataset.2.csv)

> space pauses itself to save you money on failure or success. even after its paused, you can click on logs to see what happened. you can find the trained models in your huggingface account if the training finished.

---

<div class="post-metadata">

**Author:** ![kalendar](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/kalendar/32/43802_2.png) [@kalendar](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fkalendar)%5C
**Post date:** [March 21, 2025, 4:27pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fautotrain-space-automatically-pauses-during-training%2F142529%2F3 "2025-03-21T16:27:57Z")

</div>

I’m having the same problem. Is there any more information on this issue?

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [March 21, 2025, 5:07pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fautotrain-space-automatically-pauses-during-training%2F142529%2F4 "2025-03-21T17:07:20Z")

</div>

Perhaps related?

> [@AutoTrain 429 Apocalypse: Token Verification Meltdown on Windows 11](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fautotrain-429-apocalypse-token-verification-meltdown-on-windows-11%2F146800)%3A
>
> Greetings from the edge of the galaxy—or at least from my Windows 11 rig, where I’m battling an AutoTrain crisis worthy of a sci-fi blockbuster. I’m armed with a write token, PowerShell wizardry, and a dream of training models without the universe imploding, but alas, your API is throwing a 429 Too Many Requests tantrum, followed by a melodramatic “Invalid token” sob story. I’m pretty sure I didn’t sign up for this level of intergalactic drama, so let’s unpack this mess. Here’s the saga in all …

---

<div class="post-metadata">

**Author:** ![kalendar](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/kalendar/32/43802_2.png) [@kalendar](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fkalendar)%5C
**Post date:** [March 21, 2025, 5:22pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fautotrain-space-automatically-pauses-during-training%2F142529%2F5 "2025-03-21T17:22:37Z")

</div>

I figured this out. It’s a setting you control when you first create your Space. At the bottom, there’s a setting called: PAUSE\_ON\_FAILURE. Set that to 0 instead of 1. Now your Space won’t pause when you encounter an error, and you’ll be able to check the relevant logs.

---

<div class="post-metadata">

**Author:** ![mdanco](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/mdanco/32/53817_2.png) [@mdanco](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmdanco)%5C
**Post date:** [September 14, 2025, 12:08am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fautotrain-space-automatically-pauses-during-training%2F142529%2F6 "2025-09-14T00:08:47Z")

</div>

Sorry to ressurect this, but where’s this pause on failure button? Does this work for non AutoTrain apps? Mine is just a regular FastAPI app. There’s no setting in my space like that and my space randomly auto-pauses and gets into a pause/restart loop always refreshing the page; making it impossible to read the logs. I have no idea what happened. Any clues?

I’d be greatly appreciated! Thank you.

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [September 14, 2025, 1:03am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fautotrain-space-automatically-pauses-during-training%2F142529%2F7 "2025-09-14T01:03:13Z")

</div>

> Does this work for non AutoTrain apps?

You can explicitly pause a Space via the HF API or GUI, but auto-pause is an AutoTrain feature, so it shouldn’t be present in a regular FastAPI app unless you consciously implement it… probably.

[Sleep states](https://huggingface.co/docs/huggingface_hub/en/guides/manage-spaces) or [infinite restarts due to crashes](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdebugging-spaceses-application%2F71242) are relatively common.
