Instructions to use Luistoq/vit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Luistoq/vit with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="Luistoq/vit") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Luistoq/vit", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from Luistoq/vit: direct link, hf CLI and curl.
- Browser
- Download file 546 Bytes
-
https://huggingface.co/Luistoq/vit/resolve/main/config.json
- Command line
-
hf download hf://Luistoq/vit/config.json
-
curl -L -o config.json https://huggingface.co/Luistoq/vit/resolve/main/config.json
546 Bytes
Invalid JSON:Expected ',' or '}' after property value in JSONat line 16, column 3
| { | |
| "_name_or_path": "vit", | |
| "architectures": [ | |
| "ViTModel" | |
| ], | |
| "attention_probs_dropout_prob": 0.0, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.0, | |
| "hidden_size": 768, | |
| "image_size": 224, | |
| "id2label": { | |
| "0": "CK", | |
| "1": "ML", | |
| "2": "P", | |
| "3": "TW"} | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "layer_norm_eps": 1e-12, | |
| "model_type": "vit", | |
| "num_attention_heads": 12, | |
| "num_channels": 3, | |
| "num_hidden_layers": 12, | |
| "patch_size": 16, | |
| "qkv_bias": true, | |
| "transformers_version": "4.13.0.dev0" | |
| } |