Run this model with HF Jobs
Run ybelkada/tiny-random-flava 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/ybelkada/tiny-random-flava. 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/ybelkada/tiny-random-flava 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 ybelkada/tiny-random-flava with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ybelkada/tiny-random-flava with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="ybelkada/tiny-random-flava")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModel processor = AutoProcessor.from_pretrained("ybelkada/tiny-random-flava") model = AutoModel.from_pretrained("ybelkada/tiny-random-flava", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 1,287 Bytes
915b47f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | {
"codebook_crop_size": {
"height": 112,
"width": 112
},
"codebook_do_center_crop": true,
"codebook_do_map_pixels": true,
"codebook_do_normalize": true,
"codebook_do_rescale": true,
"codebook_do_resize": true,
"codebook_image_mean": [
0.0,
0.0,
0.0
],
"codebook_image_std": [
1.0,
1.0,
1.0
],
"codebook_resample": 1,
"codebook_rescale_factor": 0.00392156862745098,
"codebook_size": {
"height": 112,
"width": 112
},
"crop_size": {
"height": 30,
"width": 30
},
"do_center_crop": true,
"do_normalize": true,
"do_rescale": true,
"do_resize": true,
"feature_extractor_type": "FlavaFeatureExtractor",
"image_mean": [
0.48145466,
0.4578275,
0.40821073
],
"image_processor_type": "FlavaImageProcessor",
"image_std": [
0.26862954,
0.26130258,
0.27577711
],
"input_size_patches": 14,
"mask_group_max_aspect_ratio": null,
"mask_group_max_patches": null,
"mask_group_min_aspect_ratio": 0.3,
"mask_group_min_patches": 16,
"processor_class": "FlavaProcessor",
"resample": 3,
"rescale_factor": 0.00392156862745098,
"return_codebook_pixels": false,
"return_image_mask": false,
"size": {
"height": 30,
"width": 30
},
"total_mask_patches": 75
}
|