deepspeed ZeRO Stage 2, CPU Offload, 64GB RAM, rtx 3060 (VRAM 12GB)
conda create -n dreambooth python=3.8
conda activate dreambooth
pip install -r ./requirements.txt
accelerate config # Choose use deepspeed 'yes', zero stage '2', zero.Init() 'yes', offload all on 'cpu'
python -m accelerate.commands.launch --mixed_precision fp16 --config_file accelerate_config.yaml --deepspeed_config_file ds_config.json train_dreambooth.py