HologramHologram
Models

apple

LensVLM-9B

VerifiedNew9.4B256KVisionSafetensors
Address
Identical bytes on
Status
Verified
Trending
#31
Downloads, 30 days
812
Weights
18.8 GB
Sources
2
Revision
Manifest

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.

At a glance

Task
Vision language
Input
image, text
Output
text
Parameters
9.4B
Architecture
Qwen 3.5
Context
256K tokens
Precision
BF16
Format
Safetensors
Library
transformers
License
apple-amlr
Base model
Fine tuned from Qwen/Qwen3.5-9B
Released
Sep 2026
Updated
Sep 2026
Likes
13
Downloads, all time
87

Architecture

Layers
32
Hidden size
4,096
Attention
16 heads, grouped query, 4 KV heads
Vocabulary
248,320
Positions
262,144
Tied embeddings
No
Vision encoder
qwen3_5

Family

Models built on LensVLM-9B.

Run it

Loads with Transformers AutoModelForMultimodalLM and AutoProcessor, pinned to the indexed revision.

from transformers import AutoModelForMultimodalLM, AutoProcessor

model = AutoModelForMultimodalLM.from_pretrained("apple/LensVLM-9B", revision="ac40d9667bd68df3ac9839d3f0dc7bdb93f5f92b")
processor = AutoProcessor.from_pretrained("apple/LensVLM-9B", revision="ac40d9667bd68df3ac9839d3f0dc7bdb93f5f92b")

Through the hub: the same tools, each file from a source that is up (Hugging Face, ModelScope, IPFS), at this revision. The second line checks every file against its address.

export HF_ENDPOINT=https://gethologram.ai
cd "$(hf download apple/LensVLM-9B --quiet)" && curl -s $HF_ENDPOINT/apple/LensVLM-9B/resolve/main/SHA256SUMS | sha256sum -c --quiet

Papers

Spaces

Used in 1 Spaces.

Read the full model card

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.

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.

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:

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:

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 for data preparation and evaluation.

Citation

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

Derived on Sep 23, 2026 from Hugging Face at revision ac40d966, README.md , config.json .