, you may need to enable certain optimizations to train DreamBooth. 16GB 12GB 8GB  On a 16GB GPU, you can use bitsandbytes 8-bit optimizer and gradient checkpointing to help you train a DreamBooth model. Install bitsandbytes:   Copied pip install bitsandbytes Then, add the following parameter to your training command:   Copied accelerate launch train_dreambooth.py \
  --gradient_checkpointing \
  --use_8bit_adam \  PyTorch Flax    Copied export