Aller au contenu
ModelPrésentéExterne
Télécharger

ViTP Vit L 300M General

ViTP (Visual Instruction Pretraining) vision backbone — ViT-L 300M variant pretrained on general domain visual instruction data. Compatible with InternVisionModel from InternVL.

TypeOtherModèle de baseGreatBird/ViTPVersionRevision 10238bbBClasse

Source du modèle

Type
Other
Taille du fichier
580 MB
Modèle de base
GreatBird/ViTP
Version
vRevision 10238bb
Mis à jour
2 nov. 2026
Téléchargements
6
Source
Hugging Face

Description de la source

ViTP-ViT-L-300M-General

ViTP (Visual Instruction Pretraining) vision backbone — ViT-L 300M variant pretrained on general domain visual instruction data. Compatible with InternVisionModel from InternVL.

Model Details

  • Architecture: InternVisionModel (ViT-L, 24 layers, 1024 hidden, 16 heads)
  • Image size: 448×448
  • Patch size: 14
  • Domain: General

Usage

The model repo includes the modeling code. Load with transformers (no ViTP repo needed):

from transformers import AutoModel, AutoImageProcessor
import torch

device = "cuda"
model = AutoModel.from_pretrained(
    "BiliSakura/ViTP-ViT-L-300M-General",
    trust_remote_code=True,
    torch_dtype=torch.bfloat16,
    device_map=device,
).eval()

processor = AutoImageProcessor.from_pretrained("BiliSakura/ViTP-ViT-L-300M-General")
pixel_values = processor(images="image.jpg", return_tensors="pt").pixel_values.to(device, model.dtype)

with torch.no_grad():
    outputs = model(pixel_values=pixel_values)

# Pooled CLS token: (1, 1024)
features = outputs.pooler_output
# Or full sequence: outputs.last_hidden_state

Citation

@article{Li_2025_ViTP,
  title={Visual Instruction Pretraining for Domain-Specific Foundation Models},
  author={Li, Yuxuan and Zhang, Yicheng and Tang, Wenhao and Dai, Yimian and Cheng, Ming-Ming and Li, Xiang and Yang, Jian},
  journal={arXiv},
  year={2025}
}

Sources

1 source
Hugging FacePrincipalVersion 10238bb9367e51599484be3c9626f79861eb992e
huggingface.co/BiliSakura/ViTP-Vit-L-300M-General/tree/10238bb9367e51599484be3c9626f79861eb992e

Vérifié 2 nov.

Download files

Repository files

File inventory only; completeness is unverified.

Artefacts du modèle

1 artefact

model.safetensors

safetensors · BF16 (unverified) · 580 MB · SHA-256 1e24cd884edb…2f63 · Hugging Face

Download file

Extraits de sources

3 extraits

--- license: cc-by-nc-4.0 tags: - vision - image-classification - vit - ViTP - domain-adaptation - general language: - en library_name: transformers pipeline_tag: image-feature-extraction base_model: - GreatBird/ViTP --- # ViTP-ViT-L-300M-General ViTP (Visual Instruction Pretraining) vision backbone — **ViT-L 300M** variant pretrained on **general** domain visual instruction data. Compatible with `InternVisionModel` from [InternVL](https://github.com/OpenGVLab/InternVL). ## Model Details - **Architecture**: InternVisionModel (ViT-L, 24 layers, 1024 hidden, 16 heads) - **Image size**: 448×448 - **Patch size**: 14 - **Domain**: General ## Usage The model repo includes the modeling code. Load with `transformers` (no ViTP repo needed): ```python from transformers import AutoModel, AutoImageProcessor import torch device = "cuda" model = AutoModel.from_pretrained( "BiliSakura/ViTP-ViT-L-300M-General", trust_remote_code=True, torch_dtype=torch.bfloat16, device_map=device, ).eval() processor = AutoImageProcessor.from_pretrained("BiliSakura/ViTP-ViT-L-300M-General") pixel_values = processor(images="image.jpg", return_tensors="pt").pixel_values.to(device, model.dtype) with torch.no_grad(): outputs = model(pixel_values=pixel_values) # Pooled CLS token: (1, 1024) features = outputs.pooler_output # Or full sequence: outputs.last_hidden_state ``` ## Citation ```bibtex @article{Li_2025_ViTP, title={Visual Instruction Pretraining for Domain-Specific Foundation Models}, author={Li, Yuxuan and Zhang, Yicheng and Tang, Wenhao and Dai, Yimian and Cheng, Ming-Ming and Li, Xiang and Yang, Jian}, journal={arXiv}, year={2025} } ```

Source context: 6 downloads · 0 likes · Pipeline image-feature-extraction · Library transformers · Repo BiliSakura/ViTP-Vit-L-300M-General

Source context: 7 downloads · 0 likes · Pipeline image-feature-extraction · Library transformers · Repo BiliSakura/ViTP-Vit-L-300M-General