Apple ships LensVLM-9B, which reads long documents as compressed images

Apple ships LensVLM-9B, which reads long documents as compressed images

Apple has published LensVLM-9B on Hugging Face, a 9-billion-parameter vision-language model built as a modification of the Qwen model. According to the model card, LensVLM scans compressed images of text and then selectively expands only the relevant pages back to their uncompressed form using learned tools, an alternative to feeding an entire long document into a text model's context window. The model card lists three compression settings a user can choose from when running the model on a document: 5x, 10x, and 15x. The release is accompanied by a paper, 'LensVLM: Selective Context Expansion for Compressed Visual Representation of Text,' posted as an arXiv preprint (arXiv:2605.07019) and credited in the citation to Roy Xie, Dan Friedman, Donghan Yu, Bowen Pan, Christopher Fifty, Jang-Hyun Kim, Xianzhi Du, Zhe Gan, Vivek Rathod and Bhuwan Dhingra, dated 2026. Apple also released accompanying code on GitHub, at apple-aiml-research/ml-lensvlm, with a demo script that runs inference on a custom text file and question, letting the user set the compression ratio as a command-line argument. The model card documents usage through Hugging Face's Transformers pipeline, as well as through vLLM, SGLang and Docker Model Runner, with example server and curl commands for each. Licensing is split: the model files, including Apple's modifications to Qwen, are covered by the Apple Machine Learning Research Model License, while the accompanying source code is distributed separately under the Apple Sample Code License. As of the model card's snapshot, the repository shows 233 downloads over the past month. The model card does not include benchmark results, accuracy numbers, or a comparison against standard long-context text models, and it does not explain the internal mechanism by which the 'learned tools' decide which pages to expand.

Key facts

  • Apple published LensVLM-9B on Hugging Face, a 9-billion-parameter vision-language model built on modifications to the Qwen model.
  • The model scans compressed images of text and selectively expands only the relevant pages to uncompressed form via learned tools, instead of processing raw long-context text.
  • Compression can be set to 5x, 10x or 15x when running the model on a document.
  • The release includes a paper (arXiv:2605.07019), authored by Roy Xie and nine co-authors, and a GitHub code repository (apple-aiml-research/ml-lensvlm).
  • Model files are licensed under the Apple Machine Learning Research Model License and the accompanying code under the Apple Sample Code License; the model had 233 downloads on Hugging Face in the past month.

Why it matters

Long-context handling is normally solved by widening a text model's context window or by retrieval. LensVLM takes a different route: it renders text as compressed images and only decompresses the pages it judges relevant to a given question, via learned tools built into the model. That reframes the long-context problem as one of selective visual expansion rather than of processing an ever-longer token sequence.

Who it affects

The release targets developers and researchers building or evaluating vision-language models for document understanding, particularly anyone working with long documents who wants an alternative to standard long-context text pipelines. It is distributed as a research artifact rather than a consumer product.

How to use it

LensVLM-9B is available on Hugging Face as apple/LensVLM-9B and works with the Transformers pipeline, vLLM, SGLang and Docker Model Runner, each with documented server and inference examples. The accompanying GitHub repository (apple-aiml-research/ml-lensvlm) includes a demo script for running the model on a custom text file with a chosen compression ratio of 5x, 10x or 15x. The model weights fall under the Apple Machine Learning Research Model License, while the code is distributed separately under the Apple Sample Code License, so commercial use is subject to those specific terms rather than a standard open-source license.

How solid is it

The account rests on Apple's own Hugging Face model card, which is corroborated by a linked arXiv preprint (arXiv:2605.07019) and a public GitHub code release, giving the claims a paper and working code to check against. The model card itself does not include benchmark numbers, accuracy figures, or head-to-head comparisons with other vision-language or long-context text models, so the practical performance of the approach is not established by the source alone.

Risks and caveats

The model card does not explain the internal mechanism by which text is compressed into images or how the learned tools decide which pages to expand, and it gives no evaluation results, so how well LensVLM performs relative to standard long-context approaches is not shown. No release date is given for the model beyond the paper's 2026 year, and use of both the weights and the code is bound by Apple's research and sample-code licenses rather than a permissive open license.