---
title: MoonViT-SO-400M
canonical_url: "https://www.modelscope.cn/models/moonshotai/MoonViT-SO-400M"
md_url: "https://www.modelscope.cn/models/moonshotai/MoonViT-SO-400M.md"
repository: moonshotai/MoonViT-SO-400M
last_updated: 2025-04-17
license: mit
model_type:
  - moonvit
parameters: 416.9M
tensor_type:
  - BF16
library_name:
  - transformer
  - safetensors
  - pytorch
frameworks:
  - pytorch
downloads: 616
stars: 4
---

# MoonViT-SO-400M

> MoonViT-SO-400M - moonshotai 在 ModelScope 开源的模型。MoonViT is a Native-resolution Vision Encoder, which is initialized from and continually pre-trained on SigLIP-SO-400M. To facilitate the standalone use of MoonViT, we have separated the implementation and…

moonshotai/MoonViT-SO-400M 是 ModelScope 魔搭社区上的 416.9M 参数机器学习模型，采用 mit 许可。

- **Repository**: moonshotai/MoonViT-SO-400M
- **License**: mit
- **Parameters**: 416.9M
- **Downloads**: 616
- **Stars**: 4
- **Last updated**: 2025-04-17

Source: https://www.modelscope.cn/models/moonshotai/MoonViT-SO-400M

---

<div align="center">
  <img width="30%" src="figures/logo.png">
</div>


## Introduction

**MoonViT** is a Native-resolution Vision Encoder, which is initialized from and continually pre-trained on **SigLIP-SO-400M**.
To facilitate the standalone use of MoonViT, we have separated the implementation and weights of MoonViT from [moonshotai/Kimi-VL-A3B-Instruct](https://huggingface.co/moonshotai/Kimi-VL-A3B-Instruct).

If you are interested in the training process of MoonViT, you are welcome to read Paper [Kimi-VL Technical Report](https://huggingface.co/papers/2504.07491).

## Example usage

```python
from PIL import Image
from transformers import AutoModel, AutoImageProcessor

model_path = "moonshotai/MoonViT-SO-400M"
model = AutoModel.from_pretrained(
    model_path,
    torch_dtype="auto",
    device_map="auto",
    trust_remote_code=True,
)
processor = AutoImageProcessor.from_pretrained(model_path, trust_remote_code=True)

image_path = "./figures/demo.png"
image = Image.open(image_path)

images_processed = processor(image, return_tensors="pt").to(dtype=model.dtype, device=model.device)
image_features: list = model(images_processed.pixel_values, images_processed.image_grid_hws)

print(f"dtype: {image_features[0].dtype}, shape: {image_features[0].shape}")
# dtype: torch.bfloat16, shape: torch.Size([1092, 4, 1152])
```
