
Xiaomi-Lens-0 Wants Into Stock Transformers — and Its Mask Decoder Is the Catch
- OrcaNEWOrcaCyber: GLM 5.3 Flash Abliterated2026-10-27169 tok/s
- OrcaNEWOrcaCyber: Qwen3.8 Flash Next Abliterated2026-10-26$0.80 / $1.60 per 1M tokens · 601 tok/s
- OrcaNEWOrcaCyber: MiMo V2.6 Flash Abliterated2026-10-26$0.80 / $1.60 per 1M tokens · 101 tok/s
- MoonshotNEWMoonshotAI: Kimi K3.1 Pro2026-10-2455Intelligence
- OrcaNEWOrcaCyber: DeepSeek V4.1 Flash Abliterated2026-10-23$0.80 / $1.60 per 1M tokens · 136 tok/s
- minimaxNEWMiniMax: M3.1 Flash2026-10-1943Intelligence
- OrcaNEWOrca: OrcaCyber Ultra 1.02026-10-17$5.00 / $10.00 per 1M tokens · 44 tok/s
- deepseekNEWDeepSeek: DeepSeek V4.1 Flash 10172026-10-1745Intelligence
- DeepSeekNEWDeepSeek: DeepSeek V4.1 Flash2026-10-1740Intelligence
- OrcaOrca: OrcaCyber Zero 1.52026-10-10$3.00 / $7.50 per 1M tokens · 112 tok/s
- openaiOpenAI: GPT-6.1 Sol2026-09-2952Intelligence
- anthropicAnthropic: Claude Sonnet 5.52026-09-2856Intelligence
- typesafeTypeSafe: Jev 1.132026-09-24$0.04 / $0.00 per 1M tokens · 704 tok/s
- OpenAIOpenAI: GPT-6 Luna2026-09-2238Intelligence
- OpenAIOpenAI: GPT-6 Sol2026-09-2248Intelligence
- AnthropicAnthropic: Claude Opus 5.52026-09-2258Intelligence
- xiaomiXiaomi: MiMo-V2.6-Flash2026-09-2138Intelligence
- xiaomiXiaomi: MiMo-V2.6-Pro2026-09-2146Intelligence
- xAIGrok 4.72026-09-2146Intelligence
- OrcaOrca: OrcaCyber Zero 1.02026-09-17$3.00 / $7.50 per 1M tokens · 160 tok/s
At 12:01 UTC today, a pull request numbered 50028 opened against huggingface/transformers with the least dramatic title in the repository: "Add Xiaomi-Lens-0". It is not a stub. The diff runs to 19 files and 4,251 added lines, 2,199 of them a single modeling file, plus 552 lines of tests and a 143-line documentation page. Its status is the unremarkable part — open, unreviewed, unmerged. The model behind it is the interesting part, and it has been sitting on Hugging Face for six days with no launch post attached. Xiaomi-Lens-0 is a 4B multimodal model built on Qwen3.5-4B that writes region masks as tokens, and the practical consequence is narrow but real: until a change like this one ships, you cannot load it with a stock Transformers class at all.
That gap — between a model being downloadable and a model being ordinary — is what the next few weeks will decide. Everything below separates what Xiaomi published from what a framework PR proposes, because those are two different levels of certainty and the coverage so far has run them together.
What Xiaomi actually shipped, and when
The release happened in pieces over five days, which is part of why it read as a research drop rather than a product launch.
• Paper — "Xiaomi-Lens-0 Technical Report", arXiv:2610.23279, submitted October 16 2026, revised October 19.
• Weights and code — public on October 21 at SeerRay-Lab/Xiaomi-Lens-0 on Hugging Face, with a matching inference repository on GitHub.
• Licence — Apache 2.0 on the weights, with the base Qwen3.5-4B weights also Apache 2.0. The card attributes the base to Alibaba Cloud and the modifications to Xiaomi.
• Team — credited as Xiaoai Plus and the SeerRay team, which is Xiaomi's visual understanding group.
• Size — 4B everywhere in the title, paper and card prose; the Hugging Face metadata reports 5B parameters in BF16. Xiaomi does not explain the discrepancy, and the honest reading is that "4B" describes the language backbone while the full checkpoint with the vision tower comes in higher.
• Hosting — the card sidebar reads that the model is not deployed by any inference provider. There is no first-party API and no hosted endpoint to call.
• Traction — 723 downloads in the trailing month and 25 likes on the Hugging Face repository, six days after the weights went up.
What I could not find was a launch: no Xiaomi blog post, no thread from the team, no product page. Coverage traces back to the technical report and to trade write-ups after the weights appeared. That matters for anyone trying to date the model — October 16 is the paper, October 21 is the artifact, and neither is an announcement.

A mask is a token, not a second model
The usual way to get pixel masks out of a vision-language model is to bolt a segmenter onto it. You get boxes or points from the language side, hand them to something like a SAM-style decoder, and pay for a second network, a second set of weights and a second forward pass.
Xiaomi-Lens-0 skips that. The model generates a special <|mask|> token, and the token's hidden state — what the paper calls a visual latent — is used as a query against the vision encoder's patch grid. A single Transformer refinement layer, a linear projection, a dot product against each patch, then two transposed-convolution upsampling steps and a sigmoid. The patch features are taken before the spatial merger, so the grid is still fine-grained, and they are computed once per image and reused by every mask token in the response.
Training is two-stage and unsurprising once the architecture is clear. Stage one freezes the backbone and trains only the mask decoder on in-house data plus Objects365, LVIS, PACO, PhraseCut and the RefCOCO family. Stage two jointly fine-tunes backbone and decoder with the standard next-token objective plus a mask loss combining pixel BCE and Dice.
The consequence worth caring about is not the parameter saving. It is that masks can appear inside the reasoning, not just in the final answer. Xiaomi trains on grounded reasoning traces where a chain of thought refers to regions and emits masks as it goes, which is why a 4B model can answer "which of these two is the one I should pick up" with a mask attached to the intermediate step rather than only to the last sentence.
The benchmark table, read properly
The headline numbers are strong and they are all Xiaomi's. There is no Artificial Analysis entry, no arena placement and no third-party reproduction as of today. Treat the following as a vendor claim with an unusually detailed appendix, not as measured fact.
• Referring segmentation — 81.4 mean cIoU across the eight RefCOCO / RefCOCO+ / RefCOCOg splits, against 78.6 for Qwen3-VL-Seg 4B. SAM 3, averaged over the same eight splits in Xiaomi's own table, comes to about 71.7.
• Referring comprehension — a 5.6-point average gain in Prec@0.5 over the Qwen3.5-4B backbone, with RefCOCO+ up 7.6 points.
• Multi-instance grounding on COCO 2017 — 63.9 mean F1, ahead of GroundingPI's 63.0 and Qwen3-VL 4B's 46.5.
• Reasoning segmentation — 68.0 gIoU on ReasonSeg Test, best of the compared models.
• Embodied referring — 87.0 gIoU on RoboRefIt TestA.
• Counting — 50.6 on CountQA, up 6.8 from the backbone's 43.8.
Two of those deserve a second look, because the summaries floating around flatten them.
The first is COCO multi-instance grounding. Xiaomi-Lens-0 beats GroundingPI on mean F1, but at the loose IoU 0.50 threshold it actually loses — 80.4 F1 against 81.2. The win comes from the strict end: 27.4 F1 at IoU 0.95 against 22.8. That is a meaningful difference in kind. The model is producing tighter masks, not more of them, and a pipeline that only checks loose overlap will not see the improvement.
The second is LensBench, the 1,200-unit, 4,800-instruction benchmark Xiaomi built and released alongside the model. It covers general, aerial, driving and panoramic imagery with human review, and it is the most useful thing in the release for anyone working outside RefCOCO. It is also the test where the model looks least exceptional. On general imagery, Qwen3.8-Max leads with 74.2 cIoU against Xiaomi-Lens-0's 63.9. On implicit instructions the model ranks fifth, behind Qwen3.8-Max, GPT-5.6-Sol, Gemini-3.6-Flash and Seed-2.1-Pro. Xiaomi published a benchmark that its own model does not sweep, which is worth more than a clean sheet would have been.

Where the 4B model actually fails
The failure mode is not random. It is the gap between a description that names the thing and a description that implies it.
• Explicit to implicit — mask cIoU falls from 71.4 to 54.7, and box Prec@0.5 from 85.0 to 70.0 on LensBench.
• Multiple targets in panoramic scenes — the worst slice in the paper, where box Prec@0.5 drops from 81.3 to 48.7 and cIoU from 71.8 to 48.9.
• Small, occluded and ambiguous regions — the card is explicit that predictions can miss objects or produce inaccurate boxes and masks in these cases.
• Counting — 50.6 on CountQA is a 6.8-point improvement and still roughly a coin flip with better manners.
There is also a mechanical caveat that will bite anyone wiring this into a product. Masks are decoded on the processor's image canvas, not on your original file. If you resize before inference and forget to invert the mapping, the mask comes back correctly shaped and in the wrong place. The card says to preserve the resizing and coordinate mapping; it does not say what happens when you don't, and the answer is a silent, plausible-looking error.
What the pull request changes, and what it doesn't
PR 50028 has been in progress since October 23 — four commits, the last one landing about a minute before the pull request was opened. It adds a configuration file, a modular file, a 2,199-line modeling file, a processor, a weight-conversion script, auto-mappings for model, image processor and tokenizer, a documentation page, and 552 lines of tests. A CI bot has already requested the slow test suite for xiaomi_lens0. There are zero reviews.
If it merges, three things change. Loading becomes AutoModel and AutoProcessor instead of a pip install -e . against Xiaomi's repository. The model lands in the documentation that people actually read. And it becomes eligible for the ecosystem tooling — quantisation, adapters, training frameworks — that assumes a Transformers class exists before it will touch a checkpoint.
If it merges, four things do not change. It still needs a CUDA GPU with bfloat16 and FlashAttention-2. It still has no hosted endpoint. Mask decoding still runs through the processor rather than a plain generation call. And the numbers stay exactly as vendor-reported as they are today, because a framework port is a packaging event, not an evaluation.
It is also worth being blunt about status. An open PR is not a feature. Transformers merges on its own cadence, maintainers have not weighed in, and ports of this size routinely go through several rounds before landing. Anyone writing "Xiaomi-Lens-0 now works in Transformers" today would be wrong by one merge.
What it takes to run it this week
The official path is Xiaomi's own package, and it assumes a real GPU box.
• Setup — Python 3.10 or newer, CUDA with bfloat16 and FlashAttention-2, then pip install -r requirements.txt and pip install -e . inside the inference repository.
• Single image — infer.py takes a checkpoint, an image, a text query and an output path, and writes an annotated image plus the generated text.
• Output format — boxes are normalised to a 0–1000 range inside <bbox> tags, masks are emitted as <|mask|> tokens inside <mask> tags, and anything inside a thinking block is excluded from the final overlay.
• Serving — vLLM support exists but runs as two co-located services, text generation on port 8000 and mask decoding on 8001, with the client on the same machine because it passes an image path rather than bytes. If you override MAX_PIXELS, both services need the same value.
Two community routes exist and neither is Xiaomi's. A PyPI package called xiaomi-lens-mnn reimplements inference on MNN for CPU at fp16 or int8, with no torch dependency, and an unofficial ComfyUI node pack reports bit-identical output against the official code. Both are useful signals — the MNN port in particular, because it suggests the architecture is simple enough to reimplement rather than only wrap.
Xiaomi publishes no VRAM figure, no latency measurement and no throughput number. For a 4B model the weights are not the problem; the vision tower at high resolution and the mask-decoding pass are, and neither has a published cost. Measure before you size a fleet around it.
Who should download it this week
If you need pixel-accurate masks from a natural-language description and you control the hardware, this is one of the better 4B options available under a permissive licence, and the weights are ungated. The explicit-instruction numbers are competitive with models several times the size, the architecture removes a whole second network from your pipeline, and Apache 2.0 means the legal review is short.
If you need a hosted segmentation endpoint today, this is not that. Xiaomi-Lens-0 is not in the OrcaRouter catalogue — we do not serve it, and nothing here should be read as claiming otherwise. What we do serve is the comparison set. If the real question is whether a 4B open model beats a hosted vision model on your images, the honest method is to run Lens-0 locally and call the hosted side through one key. Qwen3-VL-8B-Instruct, for instance, is available at $0.18 per million input tokens and $0.70 per million output, passed through at provider list price with no markup, and the same key reaches the rest of the catalogue if you want a second opinion or automatic failover when one provider degrades. That comparison on your data is worth more than any table in the paper.

What would change this assessment
Four things, in rough order of how much they would matter.
A merge of PR 50028, because it turns a research artifact into something a normal Python environment can load. An independent evaluation on LensBench or RefCOCO run by someone who is not Xiaomi, because the current numbers have one author and the paper's own weak slices suggest the average hides real variance. A native mask path in vLLM or SGLang that collapses the two-service setup into one endpoint, which is the difference between a demo and a deployment. And a hosted offering from anyone, which would make the model a line item rather than a project.
Until then the correct description is precise: Xiaomi-Lens-0 is a real, downloadable, Apache-2.0 4B model with an unusual and well-documented approach to segmentation, six days old, with strong vendor numbers, a published benchmark that does not flatter it, and a framework port that is proposed rather than shipped. That is a more useful thing to know than either "Xiaomi just dropped a Segment Anything killer" or "nothing to see until it merges".
