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:Debug Variables
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