Retour au classement

huggingface/autotrain-advanced

Pythonhuggingface.co/autotrain

🤗 AutoTrain Advanced

huggingfacedeep-learningmachine-learningnatural-language-processingnatural-language-understandingautotrainpython
Croissance des étoiles
Étoiles
4.6k
Forks
627
Croissance hebdomadaire
Issues
4
2k4k
mars 2021déc. 2022oct. 2024juil. 2026
ArtefactsPyPIpip install autotrain-advanced
README

🤗 AutoTrain Advanced

[!WARNING] This project is no longer maintained. No new features will be added and bugs will not be fixed. We recommend using Axolotl, TRL, or transformers.Trainer.

AutoTrain Advanced: faster and easier training and deployments of state-of-the-art machine learning models. AutoTrain Advanced is a no-code solution that allows you to train machine learning models in just a few clicks. Please note that you must upload data in correct format for project to be created. For help regarding proper data format and pricing, check out the documentation.

NOTE: AutoTrain is free! You only pay for the resources you use in case you decide to run AutoTrain on Hugging Face Spaces. When running locally, you only pay for the resources you use on your own infrastructure.

Supported Tasks

Task Status Python Notebook Example Configs
LLM SFT Finetuning Open In Colab llm_sft_finetune.yaml
LLM ORPO Finetuning Open In Colab llm_orpo_finetune.yaml
LLM DPO Finetuning Open In Colab llm_dpo_finetune.yaml
LLM Reward Finetuning Open In Colab llm_reward_finetune.yaml
LLM Generic/Default Finetuning Open In Colab llm_generic_finetune.yaml
Text Classification Open In Colab text_classification.yaml
Text Regression Open In Colab text_regression.yaml
Token Classification Coming Soon token_classification.yaml
Seq2Seq Coming Soon seq2seq.yaml
Extractive Question Answering Coming Soon extractive_qa.yaml
Image Classification Coming Soon image_classification.yaml
Image Scoring/Regression Coming Soon image_regression.yaml
VLM 🟥 Coming Soon vlm.yaml

Running UI on Colab or Hugging Face Spaces

  • Deploy AutoTrain on Hugging Face Spaces: Deploy on Spaces

  • Run AutoTrain UI on Colab via ngrok: Open In Colab

Local Installation

You can Install AutoTrain-Advanced python package via PIP. Please note you will need python >= 3.10 for AutoTrain Advanced to work properly.

pip install autotrain-advanced

Please make sure that you have git lfs installed. Check out the instructions here: https://github.com/git-lfs/git-lfs/wiki/Installation

You also need to install torch, torchaudio and torchvision.

The best way to run autotrain is in a conda environment. You can create a new conda environment with the following command:

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

Once done, you can start the application using:

autotrain app --port 8080 --host 127.0.0.1

If you are not fond of UI, you can use AutoTrain Configs to train using command line or simply AutoTrain CLI.

To use config file for training, you can use the following command:

autotrain --config <path_to_config_file>

You can find sample config files in the configs directory of this repository.

Example config file for finetuning SmolLM2:

task: llm-sft
base_model: HuggingFaceTB/SmolLM2-1.7B-Instruct
project_name: autotrain-smollm2-finetune
log: tensorboard
backend: local

data:
  path: HuggingFaceH4/no_robots
  train_split: train
  valid_split: null
  chat_template: tokenizer
  column_mapping:
    text_column: messages

params:
  block_size: 2048
  model_max_length: 4096
  epochs: 2
  batch_size: 1
  lr: 1e-5
  peft: true
  quantization: int4
  target_modules: all-linear
  padding: right
  optimizer: paged_adamw_8bit
  scheduler: linear
  gradient_accumulation: 8
  mixed_precision: bf16
  merge_adapter: true

hub:
  username: ${HF_USERNAME}
  token: ${HF_TOKEN}
  push_to_hub: true

To fine-tune a model using the config file above, you can use the following command:

$ export HF_USERNAME=<your_hugging_face_username>
$ export HF_TOKEN=<your_hugging_face_write_token>
$ autotrain --config <path_to_config_file>

Documentation

Documentation is available at https://hf.co/docs/autotrain/

Citation

@inproceedings{thakur-2024-autotrain,
    title = "{A}uto{T}rain: No-code training for state-of-the-art models",
    author = "Thakur, Abhishek",
    booktitle = "Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing: System Demonstrations",
    month = nov,
    year = "2024",
    address = "Miami, Florida, USA",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2024.emnlp-demo.44",
    pages = "419--423",
    abstract = "With the advancements in open-source models, training(or finetuning) models on custom datasets has become a crucial part of developing solutions which are tailored to specific industrial or open-source applications. Yet, there is no single tool which simplifies the process of training across different types of modalities or tasks.We introduce AutoTrain(aka AutoTrain Advanced){---}an open-source, no code tool/library which can be used to train (or finetune) models for different kinds of tasks such as: large language model (LLM) finetuning, text classification/regression, token classification, sequence-to-sequence task, finetuning of sentence transformers, visual language model (VLM) finetuning, image classification/regression and even classification and regression tasks on tabular data. AutoTrain Advanced is an open-source library providing best practices for training models on custom datasets. The library is available at https://github.com/huggingface/autotrain-advanced. AutoTrain can be used in fully local mode or on cloud machines and works with tens of thousands of models shared on Hugging Face Hub and their variations.",
}
Dépôts similaires
huggingface/agents-course

This repository contains the Hugging Face Agents Course.

MDXApache License 2.0agentic-aiagents
30.3k2.2k
huggingface/datasets

🤗 The largest hub of ready-to-use datasets for AI models with fast, easy-to-use and efficient data manipulation tools

PythonPyPIApache License 2.0nlpdatasets
huggingface.co/docs/datasets
21.7k3.3k
langchain4j/langchain4j

LangChain4j is an idiomatic, open-source Java library for building LLM-powered applications on the JVM. It offers a unified API over popular LLM providers and vector stores, and makes implementing tool calling (including MCP support), agents and RAG easy. It integrates seamlessly with enterprise Java frameworks like Quarkus and Spring Boot.

JavaMavenApache License 2.0huggingfacejava
docs.langchain4j.dev
12.7k2.4k
speechbrain/speechbrain

A PyTorch-based Speech Toolkit

PythonPyPIApache License 2.0speech-recognitionspeech-toolkit
speechbrain.github.io
11.7k1.7k
Orchestra-Research/AI-Research-SKILLs

Comprehensive open-source library of AI research and engineering skills for any AI model. Package the skills and your claude code/codex/gemini agent will be an AI research agent with full horsepower. Maintained by Orchestra Research.

TeXMIT Licenseaiai-research
orchestra-research.com
11k807
huggingface/chat-ui

The open source codebase powering HuggingChat

TypeScriptnpmApache License 2.0chatgpthuggingface
huggingface.co/chat
10.8k1.7k
kyegomez/swarms

The Enterprise-Grade Production-Ready Multi-Agent Orchestration Framework. Website: https://swarms.ai

PythonPyPIApache License 2.0artificial-intelligencelangchain
docs.swarms.world
7k968
multimodal-art-projection/YuE

YuE: Open Full-song Music Generation Foundation Model, something similar to Suno.ai but open

PythonPyPIApache License 2.0foundation-modelsmusic-generation
map-yue.github.io
6.3k750
skorch-dev/skorch

A scikit-learn compatible neural network library that wraps PyTorch

Jupyter NotebookBSD 3-Clause "New" or "Revised" Licensescikit-learnpytorch
6.2k413
Andyyyy64/whichllm

Find the local LLM that actually runs and performs best on your hardware. Ranked by real, recency-aware benchmarks, not parameter count. One command, run it instantly.

PythonPyPIMIT Licenseaicli
5.9k316
Michael-A-Kuykendall/shimmy

⚡ Pure-Rust WebGPU inference engine — OpenAI-API compatible, GGUF native, runs on any GPU. No Python. No llama.cpp. Single binary.

Rustcrates.ioApache License 2.0llamallamacpp
5.7k544
baichuan-inc/Baichuan-7B

A large-scale 7B pretraining language model developed by BaiChuan-Inc.

PythonPyPIApache License 2.0artificial-intelligenceceval
huggingface.co/baichuan-inc/baichuan-7B
5.7k501