# Background execution

**URL:** <https://discuss.huggingface.co/t/background-execution/71603>\
**Category:** 🤗AutoTrain\
**Created:** [February 2, 2024, 12:46pm UTC](https://discuss.huggingface.co/t/background-execution/71603 "2024-02-02T12:46:00Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![FoodIntake](https://avatars.discourse-cdn.com/v4/letter/f/74df32/32.png) [@FoodIntake](https://discuss.huggingface.co/u/FoodIntake)\
**Post date:** [February 2, 2024, 12:46pm UTC](https://discuss.huggingface.co/t/background-execution/71603/1 "2024-02-02T12:46:01Z")

</div>

During training using auto train I switched to VPN and my space auto paused. Is there way to continue where training was stopped or enable background execution until an error or done even with a closed url of the space??

---

<div class="post-metadata">

**Author:** ![abhishek](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/abhishek/32/32360_2.png) [@abhishek](https://discuss.huggingface.co/u/abhishek)\
**Post date:** [February 2, 2024, 12:57pm UTC](https://discuss.huggingface.co/t/background-execution/71603/2 "2024-02-02T12:57:27Z")

</div>

i dont think auto-pausing of space is related to vpn. a training space will auto-pause when training is finished (or encountered an error). you can see the logs by clicking the logs button in the paused space. the training runs even when you have closed the tab/window.

---

<div class="post-metadata">

**Author:** ![FoodIntake](https://avatars.discourse-cdn.com/v4/letter/f/74df32/32.png) [@FoodIntake](https://discuss.huggingface.co/u/FoodIntake)\
**Post date:** [February 2, 2024, 1:09pm UTC](https://discuss.huggingface.co/t/background-execution/71603/3 "2024-02-02T13:09:33Z")

</div>

@abhishek I’ve looked through logs, there was “network error”. Is there a way I can see that run logs somewhere to analyse them again?

---

<div class="post-metadata">

**Author:** ![abhishek](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/abhishek/32/32360_2.png) [@abhishek](https://discuss.huggingface.co/u/abhishek)\
**Post date:** [February 2, 2024, 1:11pm UTC](https://discuss.huggingface.co/t/background-execution/71603/4 "2024-02-02T13:11:00Z")

</div>

refreshing clears the message network error, else please provide space id and we can look internally.

---

<div class="post-metadata">

**Author:** ![FoodIntake](https://avatars.discourse-cdn.com/v4/letter/f/74df32/32.png) [@FoodIntake](https://discuss.huggingface.co/u/FoodIntake)\
**Post date:** [February 2, 2024, 1:25pm UTC](https://discuss.huggingface.co/t/background-execution/71603/5 "2024-02-02T13:25:01Z")

</div>

@abhishek [https://huggingface.co/spaces/FoodIntake/portion-to-quantity-unit-task](https://huggingface.co/spaces/FoodIntake/portion-to-quantity-unit-task), I don’t know what do you mean under refreshing. Its ok, I have restarted, just wanted to clarify, better use your time on something more important.

---

<div class="post-metadata">

**Author:** ![abhishek](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/abhishek/32/32360_2.png) [@abhishek](https://discuss.huggingface.co/u/abhishek)\
**Post date:** [February 2, 2024, 1:30pm UTC](https://discuss.huggingface.co/t/background-execution/71603/6 "2024-02-02T13:30:20Z")

</div>

no. i just meant ctrl+r, but anyways, lets see if it works now. btw, if it worked previously, you could also see the models in your account.

---

<div class="post-metadata">

**Author:** ![FoodIntake](https://avatars.discourse-cdn.com/v4/letter/f/74df32/32.png) [@FoodIntake](https://discuss.huggingface.co/u/FoodIntake)\
**Post date:** [February 2, 2024, 2:42pm UTC](https://discuss.huggingface.co/t/background-execution/71603/7 "2024-02-02T14:42:01Z")

</div>

```auto
🚀 INFO | 2024-02-02 14:32:04 | __main__ :train:218 - Pushing model to hub...
❌ ERROR | 2024-02-02 14:32:04 | autotrain.trainers.common:wrapper:91 - train has failed due to an exception: Traceback (most recent call last):
  File "/app/env/lib/python3.10/site-packages/autotrain/trainers/common.py", line 88, in wrapper
    return func(*args, **kwargs)
  File "/app/env/lib/python3.10/site-packages/autotrain/trainers/seq2seq/ __main__.py", line 220, in train
    api.create_repo(repo_id=config.repo_id, repo_type="model", private=True)
  File "/app/env/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 110, in _inner_fn
    validate_repo_id(arg_value)
  File "/app/env/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 158, in validate_repo_id
    raise HFValidationError(
huggingface_hub.utils._validators.HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': 'FoodIntake/FoodIntake/portion-to-quantity-unit-task'. Use `repo_type` argument if needed.

❌ ERROR | 2024-02-02 14:32:04 | autotrain.trainers.common:wrapper:92 - Repo id must be in the form 'repo_name' or 'namespace/repo_name': 'FoodIntake/FoodIntake/portion-to-quantity-unit-task'. Use `repo_type` argument if needed.
🚀 INFO | 2024-02-02 14:32:04 | autotrain.trainers.common:pause_space:49 - Pausing space...

```

Oh that’s bad, there’s no verification at the start. So I have spent processing time to see that my model can’t be saved

---

<div class="post-metadata">

**Author:** ![abhishek](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/abhishek/32/32360_2.png) [@abhishek](https://discuss.huggingface.co/u/abhishek)\
**Post date:** [February 2, 2024, 2:53pm UTC](https://discuss.huggingface.co/t/background-execution/71603/8 "2024-02-02T14:53:55Z")

</div>

did your project name consist of a “/” ?

---

<div class="post-metadata">

**Author:** ![FoodIntake](https://avatars.discourse-cdn.com/v4/letter/f/74df32/32.png) [@FoodIntake](https://discuss.huggingface.co/u/FoodIntake)\
**Post date:** [February 2, 2024, 3:09pm UTC](https://discuss.huggingface.co/t/background-execution/71603/9 "2024-02-02T15:09:09Z")

</div>

Yes seems like I have accidentally copy-pasted full path to the space instead of just space name. But this validation should be at the beginning I think not after an hour of training at saving.

---

<div class="post-metadata">

**Author:** ![abhishek](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/abhishek/32/32360_2.png) [@abhishek](https://discuss.huggingface.co/u/abhishek)\
**Post date:** [February 2, 2024, 3:19pm UTC](https://discuss.huggingface.co/t/background-execution/71603/10 "2024-02-02T15:19:45Z")

</div>

indeed. ill add it. thanks for reporting.
