On a 16GB GPU, you can use bitsandbytes 8-bit optimizer and gradient checkpointing to optimize your training run. Install bitsandbytes:   Copied pip install bitsandbytes Then, add the following parameter to your training command:   Copied accelerate launch train_controlnet.py \