Download test_model_loading.py from shravvvv/SAG-ViT: direct link, hf CLI and curl.
- Browser
- Download file 225 Bytes
-
https://huggingface.co/shravvvv/SAG-ViT/resolve/main/test_model_loading.py
- Command line
-
hf download hf://shravvvv/SAG-ViT/test_model_loading.py
-
curl -L -o test_model_loading.py https://huggingface.co/shravvvv/SAG-ViT/resolve/main/test_model_loading.py
225 Bytes
| from transformers import AutoModel, AutoConfig | |
| # Load Config and Model | |
| config = AutoConfig.from_pretrained("shravvvv/SAG-ViT") | |
| model = AutoModel.from_pretrained("shravvvv/SAG-ViT", config=config) | |
| # Check Model | |
| print(model) | |