Skip to main content

AutoHF

One-line AutoML: from idea to trained model using Hugging Face + AutoGluon.

AutoHF is an autonomous machine learning pipeline that takes a natural language description of a task (e.g., "sentiment analysis") and automatically finds the best datasets on Hugging Face, ranks them by quality, and trains a state-of-the-art model using AutoGluon.


Features

  • Intent-to-Task: Automatically detects ML task types (classification, regression, etc.) and keywords from natural language.
  • Autonomous Dataset Discovery: Searches the Hugging Face Hub for relevant datasets using multi-strategy search.
  • Intelligent Ranking: Ranks datasets based on quality signals like downloads, likes, and metadata completeness.
  • Automated Training: Leverages AutoGluon to train high-quality models with minimal configuration.
  • Interactive TUI Dashboard: A rich Terminal UI (autohf ui) featuring a smart chatbot assistant integrated with Google Gemini/Gemma, local Ollama (fully offline), or HF Inference API. Includes live progress, logging, and an advanced settings sidebar.
  • Agentic Architecture: Inspired by patterns from AutoGen, LangGraph, and OpenHands for robust state management and collaboration.
  • Interactive Gemma Chat: Run a single prompt or start an interactive chat session with local Gemma models.

Installation

# Basic installation
pip install autohf

# With training support (recommended)
pip install "autohf[train]"

CLI Quick Start (Step-by-Step)

AutoHF provides a simple command-line interface:

Step 1: Detect and Train a Model

To find the best datasets and train a model directly from a task description:

autohf train "sentiment analysis"

Or with custom presets and training limits:

autohf train "spam detection" --preset high_quality --time-limit 600

Step 2: Search and Rank Datasets

If you only want to discover and rank the top Hugging Face datasets for your task without training:

autohf search "question answering"

You can also list top models for the task:

autohf search "question answering" --models

Step 3: Launch the Interactive TUI Dashboard

To launch the interactive dashboard featuring the Gemma/Gemini smart chatbot, live pipeline logs, and the settings sidebar:

autohf ui

Step 4: Interactive local Gemma Chat

To query or chat with a local Gemma model (such as google/gemma-4-E2B-it):

# Start an interactive multi-turn chat REPL session
autohf chat

# Or run a single prompt query directly
autohf chat "Explain AutoML in one sentence."

Note: Make sure your HF_TOKEN environment variable is set to download the model.

Step 5: Show package info and supported task types

autohf info

Python API Usage

from autohf import AutoHF

# Initialize and train
hf = AutoHF.from_preset("medium_quality")
result = hf.train("customer review classification")

# Access results
print(f"Best model: {result.best_model_name}")
print(f"Accuracy: {result.metrics['accuracy']}")
print(f"Model saved at: {result.model_path}")

License

MIT License. See LICENSE for details.

Metadata

Release files for autohf 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for autohf 1.0.1
File Size Uploaded
autohf-1.0.1.tar.gz 55.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for autohf 1.0.1
File Interpreter ABI Platform
autohf-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 111.5 kB

Release files / autohf-1.0.1.tar.gz

Download URL autohf-1.0.1.tar.gz
Size 55.0 kB
Tags Source
SHA-256 checksum
How to use checksums
99152b328d79f7a1a48fb337da5e2e21be8e85044195e48edce487d8408c734b
BLAKE2b-256 checksum
How to use checksums
df841e1fba657e9e6df7c38d67f27b467498551a240c430e06791db471bbf3d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 22, 2026.

Transparency log

Release files / autohf-1.0.1-py3-none-any.whl

Download URL autohf-1.0.1-py3-none-any.whl
Size 56.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2397a98ec8514941420c051c83176c60040bf29ced5767c4f91d6fe92a3831d0
BLAKE2b-256 checksum
How to use checksums
80328db985f6939485c459079d60679bfd23d5d47caf45532732008e48265d62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 22, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page