Instructions to use ydshieh/tiny-random-ViTForMaskedImageModeling with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ydshieh/tiny-random-ViTForMaskedImageModeling with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, ViTForMaskedImageModeling processor = AutoImageProcessor.from_pretrained("ydshieh/tiny-random-ViTForMaskedImageModeling") model = ViTForMaskedImageModeling.from_pretrained("ydshieh/tiny-random-ViTForMaskedImageModeling", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload tiny models for ViTForMaskedImageModeling
Browse filesFiles changed (3)
- config.jsonAdded+22
- preprocessor_config.jsonAdded+18
- pytorch_model.binAdded+3
12345678910111213141516171819202122{ "architectures": [ "ViTForMaskedImageModeling" ], "attention_probs_dropout_prob": 0.1, "encoder_stride": 2, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 32, "image_size": 30, "initializer_range": 0.02, "intermediate_size": 37, "layer_norm_eps": 1e-12, "model_type": "vit", "num_attention_heads": 4, "num_channels": 3, "num_hidden_layers": 5, "patch_size": 2, "qkv_bias": true, "torch_dtype": "float32", "transformers_version": "4.24.0.dev0"}123456789101112131415161718{ "crop_size": 30, "do_normalize": true, "do_resize": true, "feature_extractor_type": "ViTFeatureExtractor", "image_mean": [ 0.5, 0.5, 0.5 ], "image_std": [ 0.5, 0.5, 0.5 ], "resample": 2, "size": 30}123version https://git-lfs.github.com/spec/v1oid sha256:bcfd08d05fe738b7f86ffe709437cbfabfd42c786f90ff89cc6d0379619737c8size 195674config.jsonAdded+22
preprocessor_config.jsonAdded+18
pytorch_model.binAdded+3