---
title: LensVLM-9B
canonical_url: "https://www.modelscope.cn/models/apple/LensVLM-9B"
md_url: "https://www.modelscope.cn/models/apple/LensVLM-9B.md"
repository: apple/LensVLM-9B
last_updated: 2026-09-23
license: apple-amlr
pipeline_tag: image-text-to-text
tasks:
  - image-text-to-text
model_type:
  - qwen3_5
architectures:
  - Qwen3_5ForConditionalGeneration
base_model:
  - Qwen/Qwen3.5-9B
base_model_relation: finetune
library_name:
  - safetensors
  - pytorch
frameworks:
  - pytorch
downloads: 54
stars: 1
tags:
  - vision-language-model
  - long-context
  - visual-text-compression
---

# LensVLM-9B

> LensVLM-9B - apple 在 ModelScope 开源的模型。LensVLM is a 9B Vision Language Model (VLM) that scans compressed images of text, then selectively expands only the relevant pages to their uncompressed form via learned tools.

apple/LensVLM-9B 是 ModelScope 魔搭社区上的image-text-to-text模型，采用 apple-amlr 许可，基于 Qwen/Qwen3.5-9B 构建。

- **Repository**: apple/LensVLM-9B
- **License**: apple-amlr
- **Tasks**: image-text-to-text
- **Base model**: Qwen/Qwen3.5-9B
- **Tags**: vision-language-model, long-context, visual-text-compression
- **Downloads**: 54
- **Stars**: 1
- **Last updated**: 2026-09-23

Source: https://www.modelscope.cn/models/apple/LensVLM-9B

---

# LensVLM-9B

LensVLM is a 9B Vision Language Model (VLM) that scans compressed images of text,
then selectively expands only the relevant pages to their uncompressed form via
learned tools.

- Paper: [LensVLM: Selective Context Expansion for Compressed Visual Representation of Text](https://arxiv.org/abs/2605.07019)
- Code: https://github.com/apple-aiml-research/ml-lensvlm

## License

All ML model files in this repository, including Apple's modifications to the Qwen
model, are provided under the terms of the
[Apple Machine Learning Research Model License](https://huggingface.co/apple/LensVLM-9B/blob/main/LICENSE).

The source code that accompanies this model is distributed separately and is provided
under the terms of the Apple Sample Code License.

## Usage

Install the LensVLM code and run inference:

```bash
git clone https://github.com/apple-aiml-research/ml-lensvlm
cd ml-lensvlm
pip install -r requirements.txt
python scripts/run_demo.py --model apple/LensVLM-9B
```

For a custom document:

```bash
python demo.py \
    --model apple/LensVLM-9B \
    --text_file document.txt \
    --question "What is the main finding?" \
    --compression 10x
```

Compression options: `5x`, `10x`, `15x`. See the
[repository README](https://github.com/apple-aiml-research/ml-lensvlm) for data preparation
and evaluation.

## Citation

```bibtex
@article{xie2026lensvlm,
  title={LensVLM: Selective Context Expansion for Compressed Visual Representation of Text},
  author={Xie, Roy and Friedman, Dan and Yu, Donghan and Pan, Bowen and Fifty, Christopher and Kim, Jang-Hyun and Du, Xianzhi and Gan, Zhe and Rathod, Vivek and Dhingra, Bhuwan},
  journal={arXiv preprint arXiv:2605.07019},
  year={2026}
}
```
