Run this model with HF Jobs
Run hf-tiny-model-private/tiny-random-NatForImageClassification 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/hf-tiny-model-private/tiny-random-NatForImageClassification. 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/hf-tiny-model-private/tiny-random-NatForImageClassification 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 hf-tiny-model-private/tiny-random-NatForImageClassification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-tiny-model-private/tiny-random-NatForImageClassification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="hf-tiny-model-private/tiny-random-NatForImageClassification") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForImageClassification model = AutoModelForImageClassification.from_pretrained("hf-tiny-model-private/tiny-random-NatForImageClassification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
8b7ed7f
1
Parent(s): aaa2b8f
Upload tiny models for NatForImageClassification
Browse filesFiles changed (3)
- config.jsonAdded+69
- preprocessor_config.jsonAdded+23
- pytorch_model.binAdded+3
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869{ "architectures": [ "NatForImageClassification" ], "attention_probs_dropout_prob": 0.0, "depths": [ 1, 2, 1 ], "drop_path_rate": 0.1, "embed_dim": 16, "hidden_act": "gelu", "hidden_dropout_prob": 0.0, "hidden_size": 64, "id2label": { "0": "LABEL_0", "1": "LABEL_1", "2": "LABEL_2", "3": "LABEL_3", "4": "LABEL_4", "5": "LABEL_5", "6": "LABEL_6", "7": "LABEL_7", "8": "LABEL_8", "9": "LABEL_9" }, "image_size": 64, "initializer_range": 0.02, "kernel_size": 3, "label2id": { "LABEL_0": 0, "LABEL_1": 1, "LABEL_2": 2, "LABEL_3": 3, "LABEL_4": 4, "LABEL_5": 5, "LABEL_6": 6, "LABEL_7": 7, "LABEL_8": 8, "LABEL_9": 9 }, "layer_norm_eps": 1e-05, "layer_scale_init_value": 0.0, "mlp_ratio": 2.0, "model_type": "nat", "num_channels": 3, "num_heads": [ 2, 4, 8 ], "num_layers": 3, "out_features": [ "stage1", "stage2" ], "patch_norm": true, "patch_size": 4, "qkv_bias": true, "stage_names": [ "stem", "stage1", "stage2", "stage3" ], "torch_dtype": "float32", "transformers_version": "4.28.0.dev0"}1234567891011121314151617181920212223{ "crop_size": 64, "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": 64, "width": 64 }}123version https://git-lfs.github.com/spec/v1oid sha256:d5613e0f9f6c5cb94d42fa3d9b1dd2d06b4cbd362ab598d0edb20b5ae95a1947size 341869config.jsonAdded+69
preprocessor_config.jsonAdded+23
pytorch_model.binAdded+3