Where is the model path on macOS

I use AutoModelxxx to download models, but I can’t find the path where model saved;
where is it, os how can I find it by code.


According to the documentation (Installation):

Pretrained models are downloaded and locally cached at: ~/.cache/huggingface/transformers/

Hope it helps!