Skip to main content

Installation & Setup

The AITraining CLI is included when you install the aitraining package.

Installation

Using pip

Verify Installation

Check that the CLI is working:
You should see the version number printed.

First Run

Running aitraining without arguments launches the interactive wizard:
This displays the Monostate banner and starts the configuration wizard.

GPU Setup

For GPU training, ensure you have CUDA installed and PyTorch can detect your GPU:

Apple Silicon (M1/M2/M3)

On Apple Silicon Macs, MPS is used automatically:

Environment Variables

Common environment variables:
VariableDescription
HF_TOKENHugging Face token for private models/datasets
WANDB_API_KEYWeights & Biases API key for logging
CUDA_VISIBLE_DEVICESSpecify which GPUs to use
Set these before running training:

Next Steps

Command Structure

Learn the CLI command syntax

LLM Training

Train language models