AutoTrain documentation

Who should use AutoTrain?

You are viewing main version, which requires installation from source. If you'd like regular pip install, checkout the latest stable version (v0.7.69).
Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

autotrain-homepage

🤗 AutoTrain Advanced (or simply AutoTrain) is a no-code tool for training state-of-the-art models for Natural Language Processing (NLP) tasks, for Computer Vision (CV) tasks, and for Speech tasks and even for Tabular tasks. It is built on top of the awesome tools developed by the Hugging Face team, and it is designed to be easy to use.

Who should use AutoTrain?

AutoTrain is for anyone who wants to train a state-of-the-art model for a NLP, CV, Speech or even Tabular task, but doesn’t want to spend time on the technical details of training a model. AutoTrain is also for anyone who wants to train a model for a custom dataset, but doesn’t want to spend time on the technical details of training a model. Our goal is to make it easy for anyone to train a state-of-the-art model for any task and our focus is not just data scientists or machine learning engineers, but also non-technical users.

How to use AutoTrain?

We offer several ways to use AutoTrain:

  • No code users can use AutoTrain Advanced by creating a new space with AutoTrain Docker image: Click here to create AutoTrain Space. Please make sure you keep the space private and attach appropriate hardware to the space.

  • Developers can access and build on top of AutoTrain using python api or run AutoTrain Advanced UI locally. The python api is available in the autotrain-advanced package.

You can install it using pip:

$ pip install autotrain-advanced

Running AutoTrain Locally

To run the autotrain app locally, you can use the following command:

$ export HF_TOKEN=your_hugging_face_write_token
$ autotrain app --host 127.0.0.1 --port 8000

This will start the app on http://127.0.0.1:8000.

Its advised to install autotrain-advanced in a virtual environment to avoid any conflicts with other packages.

$ conda create -n autotrain python=3.10
$ conda activate autotrain
$ pip install autotrain-advanced
$ conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia
$ conda install -c "nvidia/label/cuda-12.1.0" cuda-nvcc
$ export HF_TOKEN=your_hugging_face_write_token
$ autotrain app --host 127.0.0.1 --port 8000
< > Update on GitHub