python train_text_to_image_flax.py \
--pretrained_model_name_or_path=$MODEL_NAME \
--dataset_name=$dataset_name \
--resolution=512 --center_crop --random_flip \
--train_batch_size=1 \
--max_train_steps=15000 \
--learning_rate=1e-05 \
--max_grad_norm=1 \
--output_dir="sd-naruto-model" \
--push_to_hub
```  
</hfoption>
</hfoptions>  
Once training is complete, you can use your newly trained model for inference:  
<hfoptions id="training-inference">
<hfoption id="PyTorch">  
```py