Ir para o conteúdo
ModelListadosExterno
Baixar

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.

TipoOtherModelo baseGreatBird/ViTPVersãoRevision 10238bbBnota

Fonte do modelo

Tipo
Other
Tamanho do arquivo
580 MB
Modelo base
GreatBird/ViTP
Versão
vRevision 10238bb
Atualizado
2 de nov. de 2026
Downloads
6
Fonte
Hugging Face

Descrição da fonte

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}
}

Fontes

1 fonte
Hugging FacePrimárioVersão 10238bb9367e51599484be3c9626f79861eb992e
huggingface.co/BiliSakura/ViTP-Vit-L-300M-General/tree/10238bb9367e51599484be3c9626f79861eb992e

Verificado 2 de nov.

Download files

Repository files

File inventory only; completeness is unverified.

Artefatos de modelo

1 artefato

model.safetensors

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

Download file

Trechos de fonte

3 trechos

--- 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