Instructions to use howdyaendra/xblock-large-patch3-224 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use howdyaendra/xblock-large-patch3-224 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="howdyaendra/xblock-large-patch3-224") 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("howdyaendra/xblock-large-patch3-224") model = AutoModelForImageClassification.from_pretrained("howdyaendra/xblock-large-patch3-224", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from howdyaendra/xblock-large-patch3-224: direct link, hf CLI and curl.
- Browser
- Download file 1.08 kB
-
https://huggingface.co/howdyaendra/xblock-large-patch3-224/resolve/main/config.json
- Command line
-
hf download hf://howdyaendra/xblock-large-patch3-224/config.json
-
curl -L -o config.json https://huggingface.co/howdyaendra/xblock-large-patch3-224/resolve/main/config.json
1.08 kB
| { | |
| "_name_or_path": "howdyaendra/xblock-large-patch3-224", | |
| "_num_labels": 11, | |
| "architectures": [ | |
| "ViTForImageClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.0, | |
| "encoder_stride": 16, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.0, | |
| "hidden_size": 1024, | |
| "id2label": { | |
| "0": "altright", | |
| "1": "bluesky", | |
| "2": "facebook", | |
| "3": "fediverse", | |
| "4": "instagram", | |
| "5": "irrelevant", | |
| "6": "ngl", | |
| "7": "reddit", | |
| "8": "threads", | |
| "9": "tumblr", | |
| "10": "twitter" | |
| }, | |
| "image_size": 224, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 4096, | |
| "label2id": { | |
| "altright": 0, | |
| "bluesky": 1, | |
| "facebook": 2, | |
| "fediverse": 3, | |
| "instagram": 4, | |
| "irrelevant": 5, | |
| "ngl": 6, | |
| "reddit": 7, | |
| "threads": 8, | |
| "tumblr": 9, | |
| "twitter": 10 | |
| }, | |
| "layer_norm_eps": 1e-12, | |
| "model_type": "vit", | |
| "num_attention_heads": 16, | |
| "num_channels": 3, | |
| "num_hidden_layers": 24, | |
| "patch_size": 16, | |
| "problem_type": "single_label_classification", | |
| "qkv_bias": true, | |
| "transformers_version": "4.33.2" | |
| } | |