Documentation Index
Fetch the complete documentation index at: https://docs.monostate.ai/llms.txt
Use this file to discover all available pages before exploring further.
Environment Variables
Configure AITraining behavior through environment variables.Authentication
Hugging Face
- Private models
- Private datasets
- Pushing to Hub
Weights & Biases
--log wandb.
GPU Configuration
Select GPUs
Memory Management
GPU Override
Mac (Apple Silicon) Settings
MPS Control
When MPS is disabled or incompatible, AITraining automatically sets
PYTORCH_ENABLE_MPS_FALLBACK=1 for CPU fallback.Security Settings
Remote Code Execution
Logging
W&B Settings
Hub Settings
Default Username
Cache Directory
Training Settings
Disable Telemetry
Offline Mode
Usage Examples
Full Setup Script
Create a setup scriptsetup_env.sh:
Using .env Files
Create a.env file:
Internal Variables
These are set automatically by AITraining:| Variable | Value | Purpose |
|---|---|---|
TF_CPP_MIN_LOG_LEVEL | 3 | Suppress TensorFlow warnings |
TOKENIZERS_PARALLELISM | false | Disable tokenizer parallelism warnings |
BITSANDBYTES_NOWELCOME | 1 | Suppress bitsandbytes welcome message |
AUTOTRAIN_TUI_MODE | 1 | Set when running in TUI mode |
Debug Variables
| Variable | Default | Purpose |
|---|---|---|
PAUSE_ON_FAILURE | 1 | Pause Space on training failure (for Spaces backend) |
Priority
When using--config, the config file takes full control of training parameters. Environment variables are used for authentication and system settings (like HF_TOKEN, WANDB_API_KEY, CUDA_VISIBLE_DEVICES).
Next Steps
YAML Configs
Configuration files
Installation
Initial setup