# Online training options

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fonline-training-options%2F143475%3E%5C
**Category:** Beginners\
**Created:** [February 28, 2025, 7:20pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fonline-training-options%2F143475 "2025-02-28T19:20:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thibaut](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/thibaut/32/40904_2.png) [@Thibaut](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FThibaut)%5C
**Post date:** [February 28, 2025, 7:20pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fonline-training-options%2F143475%2F1 "2025-02-28T19:20:22Z")

</div>

Hi,

I’m not sure to understand correctly the options to train a model online with Hugging Face.

The most obvious option is AutoTrain. However this is not an option for us as Instance Segmentation is not supported.

I’ve got suggestions about using spaces. However in the documentation this does not seems to be something officially supported. Maybe more a hack?

I’ve also got suggestions about using the Inference API. It does not seems intuitive as it is called “Inference” but, after all, it supports GPU.

The most obvious option I see in the documentation would be to use Amazon Sagemaker integration. It’s a bit of overload but it maybe a reliable option.

What is your process in such cases ?

Regards

---

<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 1, 2025, 6:24am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fonline-training-options%2F143475%2F2 "2025-03-01T06:24:17Z")

</div>

If you want to do it for free, you can use Hugging Face’s CPU space, but I think the more common method is to use Google Colab Free. The Hugging Face course also uses that method…

> **[Welcome to the Community Computer Vision Course - Hugging Face Community...](https://huggingface.co/learn/computer-vision-course/unit0/welcome/welcome)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

---

<div class="post-metadata">

**Author:** ![Thibaut](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/thibaut/32/40904_2.png) [@Thibaut](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FThibaut)%5C
**Post date:** [March 2, 2025, 3:14pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fonline-training-options%2F143475%2F3 "2025-03-02T15:14:55Z")

</div>

Thanks, we have enterprise HF and we are ok to spend money. Also, the training time will exceed Google Collab max up time. So I guess the solution is to use Amazon Sagemaker integration.

---

<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 2, 2025, 8:04pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fonline-training-options%2F143475%2F4 "2025-03-02T20:04:27Z")

</div>

Then there are a lot of options. Trainer works in most environments as long as you have Python 3.10 and PyTorch, so I think you can run it on most cloud services other than SageMaker.  
For example, you could create a dummy GUI in Hugging Face Spaces and use that to train. With general services, you don’t even need a GUI.

Well, when it comes to stability, I’m not sure.😅 Trainer has an option to save checkpoints frequently, so if it crashes, it might be quicker to devise a way to resume from there.

### Resume

[https://github.com/huggingface/transformers/issues/7198](https://github.com/huggingface/transformers/issues/7198)

### For cost efficient training

> **[Parallelism methods](https://huggingface.co/docs/transformers/perf_train_gpu_many)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

> **[Methods and tools for efficient training on a single GPU](https://huggingface.co/docs/transformers/v4.49.0/perf_train_gpu_one)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

---

<div class="post-metadata">

**Author:** ![Thibaut](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/thibaut/32/40904_2.png) [@Thibaut](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FThibaut)%5C
**Post date:** [March 3, 2025, 1:18pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fonline-training-options%2F143475%2F5 "2025-03-03T13:18:20Z")

</div>

Thanks a lot, we will try integration with SageMaker
