IronViT-Softmax-400M

A 421M-parameter vision encoder, distilled from multiple teachers (classification, segmentation, depth, and VLM backbones) into a single Qwen3-VL-tower backbone with softmax attention in all 27 blocks. Designed as a general-purpose vision backbone for multi-task perception and as the vision tower of a VLM.

Part of the IronViT family.

[ :scroll: Paper] [ :globe_with_meridians: Project page] [ πŸ€— Hybrid-400M]

Usage

import torch
from PIL import Image
from transformers import AutoImageProcessor, AutoModel

model_id = "IRONVIT/IronViT-Softmax-400M"
model = AutoModel.from_pretrained(model_id, trust_remote_code=True, dtype=torch.bfloat16).cuda().eval()
processor = AutoImageProcessor.from_pretrained(model_id, trust_remote_code=True)

inputs = processor(Image.open("example.jpg").convert("RGB"), return_tensors="pt").to(model.device)
with torch.inference_mode():
    out = model(**inputs)

out.patch_features   # [num_patches, 1152], blocked order (block_h, block_w, intra_h, intra_w)
out.global_features  # [1, 1152], MAP-pooled image summary

For dense tasks, reorder the patch tokens to a raster grid with model.to_raster_order(out.patch_features, inputs["image_grid_thw"]).

Resolution is set by the processor: a fixed square (size={"height": 384, "width": 384}, the default) or, with size=None, an aspect-preserving resize capped at max_patches (576). Longer sequences are supported and cost O(LΒ²) in softmax attention.

Architecture

hidden / depth / heads 1152 / 27 / 16
MLP 4304, gelu_pytorch_tanh
patch / temporal / merge 16 / 2 / 2
positions learned 48Γ—48 grid + 2-D RoPE
attention softmax, QK-RMSNorm, non-causal
read-out 8 registers + learned-query attention pooling (MAP)
parameters 421M

Results

Benchmark IronViT-Softmax-400M SigLIP2 NaFlex SO400M DINOv3-L Qwen3-ViT 400M
IN-1k linear probe 87.35 87.45 87.07 78.28
IN-1k kNN 85.82 85.28 85.42 80.22
IN-1k zero-shot 83.27 β€” β€” β€”
ADE20K mIoU 52.97 44.48 52.86 33.81
NYUv2 RMSE ↓ 0.339 0.459 0.320 0.503

Zero-shot reads the pooled feature out through a small adapter into PE-Core-G14-448's text space; the adapter and the fixed text classifier ship as pe_zeroshot_head.pt next to this checkpoint, so evals/zeroshot.py needs no text tower.

Probe scripts are in evals/ of the GitHub repo.

Citation

@misc{huang2026ironvit,
  title         = {IronViT: Toward Efficient Generalist Visual Representation Learning},
  author        = {Jiaxi Huang and Yueqi Hu and Xin Zhu and Xiaopeng Zhang and Huiting Qiao and
                   Yanglin Zhang and Zefeng Ji and Rongxue Li and Yifei Xu and Huiying Yu and
                   Wei Liu and Jiayin Zheng and Yinggan Xu and Peipeng Chen and Yin Zhang and
                   Jian Yao},
  year          = {2026},
  eprint        = {2609.29252},
  archivePrefix = {arXiv},
  primaryClass  = {cs.CV},
  url           = {https://arxiv.org/abs/2609.29252}
}

License

Apache 2.0.

Downloads last month
32
Safetensors
Model size
0.4B params
Tensor type
BF16
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Paper for IRONVIT/IronViT-Softmax-400M