# Autotrain training status through api

**URL:** <https://discuss.huggingface.co/t/autotrain-training-status-through-api/91331>\
**Category:** 🤗AutoTrain\
**Created:** [June 10, 2024, 1:42pm UTC](https://discuss.huggingface.co/t/autotrain-training-status-through-api/91331 "2024-06-10T13:42:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chsafouane](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/chsafouane/32/26450_2.png) [@chsafouane](https://discuss.huggingface.co/u/chsafouane)\
**Post date:** [June 10, 2024, 1:42pm UTC](https://discuss.huggingface.co/t/autotrain-training-status-through-api/91331/1 "2024-06-10T13:42:02Z")

</div>

I’m using Autotrain through the CLI to start the training on HF. Is there a way to get the status of the training ?

I would like to block the code execution until the model is trained (as I create an inference endpoint after that to use the model)

---

<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:** [June 10, 2024, 1:53pm UTC](https://discuss.huggingface.co/t/autotrain-training-status-through-api/91331/2 "2024-06-10T13:53:25Z")

</div>

you can maybe use huggingface\_hub library to get space status. The logs are quite difficult to get at the moment

---

<div class="post-metadata">

**Author:** ![chsafouane](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/chsafouane/32/26450_2.png) [@chsafouane](https://discuss.huggingface.co/u/chsafouane)\
**Post date:** [June 10, 2024, 2:02pm UTC](https://discuss.huggingface.co/t/autotrain-training-status-through-api/91331/3 "2024-06-10T14:02:09Z")

</div>

Thanks, I’ll look into it
