Instructions to use hf-internal-testing/tiny-random-ViTMSNForImageClassification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-internal-testing/tiny-random-ViTMSNForImageClassification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="hf-internal-testing/tiny-random-ViTMSNForImageClassification") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("hf-internal-testing/tiny-random-ViTMSNForImageClassification") model = AutoModelForImageClassification.from_pretrained("hf-internal-testing/tiny-random-ViTMSNForImageClassification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from hf-internal-testing/tiny-random-ViTMSNForImageClassification: direct link, hf CLI and curl.
- Browser
- Download file 491 Bytes
-
https://huggingface.co/hf-internal-testing/tiny-random-ViTMSNForImageClassification/resolve/feda819aa7dbb55d850130f4cf1d210858d7eb89/config.json
- Command line
-
hf download hf://hf-internal-testing/tiny-random-ViTMSNForImageClassification@feda819aa7dbb55d850130f4cf1d210858d7eb89/config.json
-
curl -L -o config.json https://huggingface.co/hf-internal-testing/tiny-random-ViTMSNForImageClassification/resolve/feda819aa7dbb55d850130f4cf1d210858d7eb89/config.json
491 Bytes
| { | |
| "architectures": [ | |
| "ViTMSNForImageClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 32, | |
| "image_size": 30, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 37, | |
| "layer_norm_eps": 1e-06, | |
| "model_type": "vit_msn", | |
| "num_attention_heads": 4, | |
| "num_channels": 3, | |
| "num_hidden_layers": 5, | |
| "patch_size": 2, | |
| "qkv_bias": true, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.25.0.dev0" | |
| } | |