Run this model with HF Jobs
Run OpenGVLab/InternVL-14B-224px 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/OpenGVLab/InternVL-14B-224px. 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/OpenGVLab/InternVL-14B-224px 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 OpenGVLab/InternVL-14B-224px with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OpenGVLab/InternVL-14B-224px with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-feature-extraction", model="OpenGVLab/InternVL-14B-224px", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModel processor = AutoProcessor.from_pretrained("OpenGVLab/InternVL-14B-224px", trust_remote_code=True) model = AutoModel.from_pretrained("OpenGVLab/InternVL-14B-224px", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Fix incorrect image embedding when running with a single GPU and 24GB VRAM
Verified signature# Issue When running the image encoding function on a single GPU with no more than 24GB ram, `model.encode_image(pixel_values, mode='InternVL-G')` returns incorrect value # To Reproduce - Hardware: Single GPU with **no more than 24GB memory** (e.g. RTX3090/4090). - transformers==4.37.2 - accelerate==0.24.1 minimal code to reproduce: ```python import torch import requests from io import BytesIO from PIL import Image from transformers import AutoModel, CLIPImageProcessor from transformers import AutoTokenizer model_path = 'OpenGVLab/InternVL-14B-224px' model = AutoModel.from_pretrained( model_path, torch_dtype=torch.bfloat16, low_cpu_mem_usage=True, device_map='auto', trust_remote_code=True ).eval() image_processor = CLIPImageProcessor.from_pretrained(model_path) tokenizer = AutoTokenizer.from_pretrained( model_path, use_fast=False, add_eos_token=True) tokenizer.pad_token_id = 0 # set pad_token_id to 0 print(model.hf_device_map) request = requests.get('…aa5199e
-
Update README.md
Verified signature17f90c4
-
Update README.md
Verified signature5b916ef
-
Update README.md
Verified signature4f22248
-
Update README.md
Verified signature8a67969
-
Update README.md
Verified signaturebb6b287
-
Update README.md
Verified signature5956092
-
Update README.md
Verified signaturebc5ea9e -
Update README.md
Verified signature907d2d7 -
Update README.md
Verified signature79b55e2 -
Update README.md
Verified signature37cb9c9 -
Update README.md
Verified signatured76eb45
-
Update modeling_internvl.py
Verified signaturec4036dd -
Update modeling_intern_vit.py
Verified signature419d2f0
-
Update modeling_internvl.py
Verified signature0bffb65 -
Update modeling_internvl.py
Verified signatured707ab1 -
Update modeling_intern_vit.py
Verified signature964aedc
-
Update README.md
Verified signature0d5e783
-
Update README.md
6d492b5 -
Update README.md
0b827a6 -
Update README.md
44e4329
-
Update README.md
253108a
-
Upload folder using huggingface_hub
56dcc06 -
initial commit
8e927bb