)
→
int

Parameters 

only_trainable (bool, optional, defaults to False) —
Whether or not to return only the number of trainable parameters


exclude_embeddings (bool, optional, defaults to False) —
Whether or not to return only the number of non-embeddings parameters


Returns

int



The number of parameters.


Get number of (optionally, trainable or non-embeddings) parameters in the module.

save_pretrained

<
source
>
(
save_directory: typi