Run this model with HF Jobs
Run kazuma313/cat_vs_dog_classification 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/kazuma313/cat_vs_dog_classification. 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/kazuma313/cat_vs_dog_classification 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 kazuma313/cat_vs_dog_classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kazuma313/cat_vs_dog_classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="kazuma313/cat_vs_dog_classification") 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("kazuma313/cat_vs_dog_classification") model = AutoModelForImageClassification.from_pretrained("kazuma313/cat_vs_dog_classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Training in progress, step 500
Browse filesFiles changed (6)
1234567891011121314151617181920212223242526272829303132{ "_name_or_path": "google/vit-base-patch16-224-in21k", "architectures": [ "ViTForImageClassification" ], "attention_probs_dropout_prob": 0.0, "encoder_stride": 16, "hidden_act": "gelu", "hidden_dropout_prob": 0.0, "hidden_size": 768, "id2label": { "0": "cat", "1": "dog" }, "image_size": 224, "initializer_range": 0.02, "intermediate_size": 3072, "label2id": { "cat": "0", "dog": "1" }, "layer_norm_eps": 1e-12, "model_type": "vit", "num_attention_heads": 12, "num_channels": 3, "num_hidden_layers": 12, "patch_size": 16, "problem_type": "single_label_classification", "qkv_bias": true, "torch_dtype": "float32", "transformers_version": "4.37.2"}123version https://git-lfs.github.com/spec/v1oid sha256:c60b1db741bf61102a4bc7a14fb05eb17700156d52dd6623e7226e7e5be04441size 34322396812345678910111213141516171819202122{ "do_normalize": true, "do_rescale": true, "do_resize": true, "image_mean": [ 0.5, 0.5, 0.5 ], "image_processor_type": "ViTImageProcessor", "image_std": [ 0.5, 0.5, 0.5 ], "resample": 2, "rescale_factor": 0.00392156862745098, "size": { "height": 224, "width": 224 }}123version https://git-lfs.github.com/spec/v1oid sha256:20b27706dd2db88a1b907e9a7b139d2047d4f7e2ac97dd054f415ca82f289e33size 9243123version https://git-lfs.github.com/spec/v1oid sha256:ab0a4ec9d945c0198a23ecc64fad94e2f2059703e91bab856b2fabf1766b61dbsize 28270123version https://git-lfs.github.com/spec/v1oid sha256:8ba53f880542d0e0b9fe30074395a819440f065376c05570d9e1f396bb78d858size 4728config.jsonAdded+32
model.safetensorsAdded+3
preprocessor_config.jsonAdded+22
runs/Feb26_08-44-05_bbb694db8c61/events.out.tfevents.1708937054.bbb694db8c61.276.0Added+3
runs/Feb26_08-53-41_bbb694db8c61/events.out.tfevents.1708937632.bbb694db8c61.276.1Added+3
training_args.binAdded+3