Image Feature Extraction
Transformers
JAX
Safetensors
MLX
PyTorch
aimv2_vision_model
vision
custom_code
Run this model with HF Jobs
Run apple/aimv2-large-patch14-native 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/apple/aimv2-large-patch14-native. 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/apple/aimv2-large-patch14-native 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 apple/aimv2-large-patch14-native with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use apple/aimv2-large-patch14-native with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-feature-extraction", model="apple/aimv2-large-patch14-native", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModel processor = AutoImageProcessor.from_pretrained("apple/aimv2-large-patch14-native", trust_remote_code=True) model = AutoModel.from_pretrained("apple/aimv2-large-patch14-native", trust_remote_code=True, device_map="auto") - MLX
How to use apple/aimv2-large-patch14-native with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download apple/aimv2-large-patch14-native --local-dir aimv2-large-patch14-native
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Add HF compatible checkpoints
#4
by yaswanthgali - opened
Files changed (3)
- config.json+11-5
- model.safetensors+2-2
- preprocessor_config.json+11-1
1234561 unmodified line89101112131415163 unmodified lines202122232425{"architectures": ["AIMv2Model"],"attention_dropout": 0.0,"auto_map": {1 unmodified line"AutoModel": "modeling_aimv2.AIMv2Model","FlaxAutoModel": "modeling_flax_aimv2.FlaxAIMv2Model"},"hidden_size": 1024,"intermediate_size": 2816,"model_type": "aimv2","num_attention_heads": 8,"num_channels": 3,"num_hidden_layers": 24,3 unmodified lines"qkv_bias": false,"rms_norm_eps": 1e-05,"torch_dtype": "float32","transformers_version": "4.46.3","use_bias": false}1234561 unmodified line891011121314151617181920213 unmodified lines25262728293031{"architectures": ["Aimv2VisionModel"],"attention_dropout": 0.0,"auto_map": {1 unmodified line"AutoModel": "modeling_aimv2.AIMv2Model","FlaxAutoModel": "modeling_flax_aimv2.FlaxAIMv2Model"},"hidden_act": "silu","hidden_size": 1024,"image_size": 224,"initializer_range": 0.02,"intermediate_size": 2816,"is_native": true,"mlp_bias": false,"model_type": "aimv2_vision_model","num_attention_heads": 8,"num_channels": 3,"num_hidden_layers": 24,3 unmodified lines"qkv_bias": false,"rms_norm_eps": 1e-05,"torch_dtype": "float32","transformers_version": "4.54.0.dev0","use_bias": false,"use_head": false}
123version https://git-lfs.github.com/spec/v1oid sha256:6cdc4c4ea6f2a477edebb482cc36ba021409a313eabdf3e6be62eb722771e7d1size 1235760720123version https://git-lfs.github.com/spec/v1oid sha256:784e32ece9a01ea8f9774f6f2d7ac0fa7533fc0fb26514dcac4e07a4536008e4size 1235767568
12344 unmodified lines910111213141516171819202122{"do_center_crop": false,"do_convert_rgb": true,"do_normalize": true,4 unmodified lines0.4578275,0.40821073],"image_processor_type": "CLIPImageProcessor","image_std": [0.26862954,0.26130258,0.27577711],"resample": 3,"rescale_factor": 0.00392156862745098,"size": {"shortest_edge": 224}1234567891011124 unmodified lines17181920212223242526272829303132{"crop_size": {"height": 224,"width": 224},"data_format": "channels_first","default_to_square": false,"device": null,"disable_grouping": null,"do_center_crop": false,"do_convert_rgb": true,"do_normalize": true,4 unmodified lines0.4578275,0.40821073],"image_processor_type": "CLIPImageProcessorFast","image_std": [0.26862954,0.26130258,0.27577711],"input_data_format": null,"resample": 3,"rescale_factor": 0.00392156862745098,"return_tensors": null,"size": {"shortest_edge": 224}
config.json+11-5
model.safetensors+2-2
preprocessor_config.json+11-1