Zum Inhalt springen
ModelAufgelistetExtern
Herunterladen

ViTP InternVL 1B Med

ViTP (Visual Instruction Pretraining) vision backbone — InternVL 1B variant pretrained on medical imaging domain visual instruction data. Compatible with InternVisionModel from InternVL.

ArtOtherBasismodellGreatBird/ViTPVersionRevision dbe1e5cBBewertung

Modellquelle

Art
Other
Dateigröße
580 MB
Basismodell
GreatBird/ViTP
Version
vRevision dbe1e5c
Aktualisiert
2. Nov. 2026
Downloads
14
Quelle
Hugging Face

Quellenbeschreibung

ViTP-InternVL-1B-Med

ViTP (Visual Instruction Pretraining) vision backbone — InternVL 1B variant pretrained on medical imaging domain visual instruction data. Compatible with InternVisionModel from InternVL.

Model Details

  • Architecture: InternVisionModel (24 layers, 1024 hidden, 16 heads)
  • Image size: 448×448
  • Patch size: 14
  • Domain: Medical imaging

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-InternVL-1B-Med",
    trust_remote_code=True,
    torch_dtype=torch.bfloat16,
    device_map=device,
).eval()

processor = AutoImageProcessor.from_pretrained("BiliSakura/ViTP-InternVL-1B-Med")
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}
}

Quellen

1 Quelle
Hugging FacePrimärVersion dbe1e5cf090f6975d72906cc398ba079e54fb230
huggingface.co/BiliSakura/ViTP-InternVL-1B-Med/tree/dbe1e5cf090f6975d72906cc398ba079e54fb230

Verifiziert 2. Nov.

Download files

Repository files

File inventory only; completeness is unverified.

Modellartefakte

1 Artefakt

model.safetensors

safetensors · BF16 (unverified) · 580 MB · SHA-256 0e33b1711318…660e · Hugging Face

Download file

Quellenauszüge

3 Auszüge

--- license: cc-by-nc-4.0 tags: - vision - image-classification - vit - ViTP - InternVL - domain-adaptation - medical-imaging language: - en library_name: transformers pipeline_tag: image-feature-extraction base_model: - GreatBird/ViTP --- # ViTP-InternVL-1B-Med ViTP (Visual Instruction Pretraining) vision backbone — **InternVL 1B** variant pretrained on **medical imaging** domain visual instruction data. Compatible with `InternVisionModel` from [InternVL](https://github.com/OpenGVLab/InternVL). ## Model Details - **Architecture**: InternVisionModel (24 layers, 1024 hidden, 16 heads) - **Image size**: 448×448 - **Patch size**: 14 - **Domain**: Medical imaging ## 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-InternVL-1B-Med", trust_remote_code=True, torch_dtype=torch.bfloat16, device_map=device, ).eval() processor = AutoImageProcessor.from_pretrained("BiliSakura/ViTP-InternVL-1B-Med") 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: 14 downloads · 0 likes · Pipeline image-feature-extraction · Library transformers · Repo BiliSakura/ViTP-InternVL-1B-Med

Source context: 5 downloads · 0 likes · Pipeline image-feature-extraction · Library transformers · Repo BiliSakura/ViTP-InternVL-1B-Med