of trainable parameters.   exclude_embeddings (bool, optional, defaults to False) —
Whether or not to return only the number of non-embedding parameters.   Returns 
int
  
The number of parameters.
  Get number of (trainable or non-embedding) parameters in the module.  Example:   Copied from diffusers import UNet2DConditionModel

model_id = "runwayml/stable-diffusion-v1-5"
unet = UNet2DConditionModel.from_pretrained(model_id, subfolder="unet")
