>>936630965
>>936630907
https://huggingface.co/docs/hub/transformers

Here's an example. For stable diffusion models youd probably use the diffusers library instead, but the huggingface hub integration works the same