Run this model with HF Jobs
Run ArsalanAnwar/test-image-classification-model on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/ArsalanAnwar/test-image-classification-model. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/ArsalanAnwar/test-image-classification-model on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use ArsalanAnwar/test-image-classification-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ArsalanAnwar/test-image-classification-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="ArsalanAnwar/test-image-classification-model") 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("ArsalanAnwar/test-image-classification-model") model = AutoModelForImageClassification.from_pretrained("ArsalanAnwar/test-image-classification-model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
8e7d1ca
1
Parent(s): c452468
Upload ViTForImageClassification
Browse filesFiles changed (2)
- config.jsonAdded+22
- pytorch_model.binAdded+3
12345678910111213141516171819202122{ "architectures": [ "ViTForImageClassification" ], "attention_probs_dropout_prob": 0.0, "encoder_stride": 16, "hidden_act": "gelu", "hidden_dropout_prob": 0.0, "hidden_size": 12, "image_size": 224, "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": 2, "patch_size": 16, "qkv_bias": true, "torch_dtype": "float32", "transformers_version": "4.25.1"}123version https://git-lfs.github.com/spec/v1oid sha256:50cc71b662275ef3f53406761ec520bffd11ccf0560f6f1f2591a4a34355720dsize 677929config.jsonAdded+22
pytorch_model.binAdded+3