Run this model with HF Jobs
Run hf-tiny-model-private/tiny-random-PerceiverForMaskedLM 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-PerceiverForMaskedLM. 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-PerceiverForMaskedLM 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-PerceiverForMaskedLM 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-PerceiverForMaskedLM with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="hf-tiny-model-private/tiny-random-PerceiverForMaskedLM")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("hf-tiny-model-private/tiny-random-PerceiverForMaskedLM") model = AutoModelForMaskedLM.from_pretrained("hf-tiny-model-private/tiny-random-PerceiverForMaskedLM", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
4cb53b5
1
Parent(s): 05427ab
Upload tiny models for PerceiverForMaskedLM
Browse filesFiles changed (5)
- config.jsonAdded+51
- preprocessor_config.jsonAdded+27
- pytorch_model.binAdded+3
- special_tokens_map.jsonAdded+44
- tokenizer_config.jsonAdded+54
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051{ "architectures": [ "PerceiverForMaskedLM" ], "attention_probs_dropout_prob": 0.1, "audio_samples_per_frame": 200, "cross_attention_shape_for_attention": "kv", "cross_attention_widening_factor": 4, "d_latents": 20, "d_model": 768, "hidden_act": "gelu", "id2label": { "0": "LABEL_0", "1": "LABEL_1", "2": "LABEL_2" }, "image_size": 32, "initializer_range": 0.02, "label2id": { "LABEL_0": 0, "LABEL_1": 1, "LABEL_2": 2 }, "layer_norm_eps": 1e-12, "max_position_embeddings": 40, "model_type": "perceiver", "num_blocks": 1, "num_cross_attention_heads": 1, "num_frames": 5, "num_latents": 10, "num_self_attends_per_block": 2, "num_self_attention_heads": 1, "output_shape": [ 1, 16, 224, 224 ], "qk_channels": 20, "samples_per_patch": 20, "self_attention_widening_factor": 4, "torch_dtype": "float32", "train_size": [ 20, 20 ], "transformers_version": "4.28.0.dev0", "use_query_residual": true, "v_channels": 20, "vocab_size": 262}123456789101112131415161718192021222324252627{ "crop_size": { "height": 32, "width": 32 }, "do_center_crop": true, "do_normalize": true, "do_rescale": true, "do_resize": true, "image_mean": [ 0.485, 0.456, 0.406 ], "image_processor_type": "PerceiverImageProcessor", "image_std": [ 0.229, 0.224, 0.225 ], "resample": 3, "rescale_factor": 0.00392156862745098, "size": { "height": 32, "width": 32 }}123version https://git-lfs.github.com/spec/v1oid sha256:2bc8ba63c0b65801feb206576472d1d5d2757edd1a5448092a3cab878e84a508size 92358521234567891011121314151617181920212223242526272829303132333435363738394041424344{ "bos_token": { "content": "[BOS]", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "cls_token": { "content": "[CLS]", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "eos_token": { "content": "[EOS]", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "mask_token": { "content": "[MASK]", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "pad_token": { "content": "[PAD]", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "sep_token": { "content": "[SEP]", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354{ "bos_token": { "__type": "AddedToken", "content": "[BOS]", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "clean_up_tokenization_spaces": true, "cls_token": { "__type": "AddedToken", "content": "[CLS]", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "eos_token": { "__type": "AddedToken", "content": "[EOS]", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "mask_token": { "__type": "AddedToken", "content": "[MASK]", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "model_max_length": 40, "pad_token": { "__type": "AddedToken", "content": "[PAD]", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "sep_token": { "__type": "AddedToken", "content": "[SEP]", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "special_tokens_map_file": "/home/runner/.cache/huggingface/hub/models--deepmind--language-perceiver/snapshots/255f5db6df01f4426999171fbdcc6a2c991ee350/special_tokens_map.json", "tokenizer_class": "PerceiverTokenizer"}config.jsonAdded+51
preprocessor_config.jsonAdded+27
pytorch_model.binAdded+3
special_tokens_map.jsonAdded+44
tokenizer_config.jsonAdded+54