闲社服务运行正常AI智能体自动化平台
中文
语言 / Language简体中文SelectedEnglish

选择显示语言

GroundAnything

isLinXu/GroundAnything

发布机构isLinXu

下载访问条件魔搭来源

GroundAnything: Reconciling Parallel Decoding with Precise Visual Grounding at Flash Speed Model family: GroundAnything — DLM / parallel decoding · GroundAnything-VLM — autoregressive. This repository contains the GroundAnything DLM checkpo

图文理解图像分析
模型详情

模型介绍

中文整理

English

GroundAnything: Reconciling Parallel Decoding with Precise Visual Grounding at Flash Speed

English** 简体中文

Model family:** GroundAnything — DLM / parallel decoding · GroundAnything-VLM — autoregressive.

This repository contains the GroundAnything DLM checkpoint.** Use entropy-guided decoding for the main benchmark setting, or select optional self-speculative decoding.

🔗 Quick Links

🤗 **Hugging Face:** GroundAnything.

🌐 **Project Page:** GroundAnything.

💻 **GitHub Code:** groundingpi/GroundAnything.

📄 **Paper:** arXiv:2609.39600.

🤗 **HF paper:** GroundAnything · [](https://huggingface.co/papers/2609.39600).

Model Overview

Description:

Autoregressive (AR) grounding models serialize spatial predictions, introducing sequential latency and imposing a causal order on output tokens. We view grounding as visual evidence extraction: objects, locations, and spatial relations are jointly constrained by the image and query, yet their dependencies do not imply an intrinsic left-to-right generation order. This distinction makes bidirectional diffusion a natural fit, allowing spatial hypotheses to emerge in parallel and be jointly refined through iterative denoising.

We introduce **GroundAnything**, a 4B-parameter grounding foundation model that reconciles fast parallel decoding with precise localization through blockwise denoising. Across 30 grounding benchmarks, the autoregressive variant, **GroundAnything-VLM**, establishes a new overall state of the art among similarly sized models at **72.42%**, remaining competitive with GPT-6 Astra (**71.35%**). With **entropy-guided decoding**, GroundAnything also surpasses the prior state of the art at this scale, averaging **61.75%** versus **53.32%** for the fast MTP-based LocateAnything model.

An optional **self-speculative mode** achieves a **4.51× speedup** over the AR counterpart with a **0.74 percentage-point drop in COCO F1mIoU** at the paper's reported operating point. Infrastructure experiments show that progressive inference optimizations translate parallel decoding into practical speedups. These support efficient visual grounding in latency-sensitive real-world systems.

License/Terms of Use:

Our original contributions are available under **Apache 2.0**, with no additional restrictions imposed by this project. Third-party material retains its applicable licenses, including the **Kimi K3 License** for Kimi-derived material and applicable derivative works. Its conditions continue to apply when using or redistributing the combined model package. See LICENSE for the scope and full license texts.

Deployment Geography:

Global.

Use Case:

Open-vocabulary object localization and dense-scene grounding.

Referring-expression comprehension and visual-prompt-based localization.

Point-based localization, spatial reasoning, and GUI element grounding.

OCR with text localization and document layout understanding.

Perception research for robotics, embodied agents, and autonomous systems.

News

  • *HF paper [10/14/2026]:** GroundAnything received tremendous recognition from the Hugging Face community, reaching **74 Upvotes**. HF paper.
  • *ModelScope [10/14/2026]:** Model weights and the bilingual model card are now available on ModelScope.
  • *Webpage [10/04/2026]:** Project webpage released: GroundAnything.
  • *Code [10/03/2026]:** GitHub code released: GroundAnything.
  • *Paper [09/30/2026]:** GroundAnything.

Citation

Model Architecture:

Architecture type:** a shared vision-language backbone supporting an autoregressive checkpoint and a blockwise diffusion checkpoint.

  • *Vision encoder:** MoonViT-V2 / Kimi-K3 vision backbone.
  • *Language backbone:** Qwen3-4B-Instruct-2507.
  • *Multimodal projector:** 2 × 2 spatial aggregation and a two-layer MLP.
  • *Spatial vocabulary:** 1,000 coordinate tokens shared with semantic labels and protocol markers.
  • *DLM conversion:** the shared decoder and vocabulary head support both causal prediction and bidirectional response-block denoising. A mask token is added for diffusion generation.

Input(s):

Input types:** image and text.

  • *Image:** one RGB image per request. The Python client accepts JPEG, PNG, and WebP files; the supplied processor handles image preparation.
  • *Text:** a natural-language instruction, category list, referring expression, OCR/layout query, or a prompt containing example boxes.
  • *Image encoding for the HTTP API:** an image url content part containing a base64 data URI, alongside a text content part.

Use the checkpoint's own tokenizer, processor, and chat template. Multiple categories are separated by . Reference boxes use the same 0–999 spatial-token vocabulary as outputs.

Output(s):

Output type:** text containing semantic labels and quantized spatial coordinates.

All three released models use the **GAM protocol**: integer coordinate tokens through , object-reference delimiters, and box delimiters. A bounding box contains (x1, y1, x2, y2) ; a point contains (x, y) . Adjacent coordinate tokens have no intervening spaces. Multiple instances of the same label are comma-separated inside one box wrapper. A missing target is represented by None .

Illustrative syntax:

The client returns parsed predictions together with raw output , finish reason , usage , parse error , and valid . It maps coordinates back to image pixels for visualization. A truncated or malformed response is marked invalid. For custom API clients, preserve spatial tokens with skip special tokens=false and avoid inserting spaces between them.

Software Integration:

Runtime engines:** the repository's custom **SGLang** integration for the DLM and VLM services, plus a native Transformers reference route for the DLM.

Default serving environment:** Linux and Python 3.12 with the source package's serving profile. Use python3 run.py setup serve to install the bundled custom engine and its pinned dependencies; installing upstream SGLang alone does not provide the same model and decoding integration.

The serving profile pins Torch **2.9.1**, Transformers **5.5.4**, Triton **3.5.1**, sgl-kernel **0.3.20**, and FlashInfer **0.5.3**. Serving and evaluation use separate environments.

Tested hardware:** NVIDIA **B300, B200, H200, H800**, and **PPU**. The provided SGLang serving installer is a CUDA/GPU recipe; PPU requires its matching platform runtime and is not selected by this GPU installer.

The default DLM service uses **BF16, Triton attention, eager execution, one GPU, one active request, and two queued requests**. Client concurrency queues requests; it does not imply a multi-request model batch. CUDA Graph and selective FP8 are discussed below as separate infrastructure experiments.

Model Version(s):

Checkpoint Generation Evaluation mode

:--- :--- :---

GroundAnything Entropy-guided blockwise diffusion; optional self-speculation **GAM**

GroundAnything-VLM Autoregressive generation **GAM**

GroundAnything's main results use **entropy-guided decoding**; GroundAnything-VLM uses **autoregressive decoding**. Self-speculative decoding is an optional acceleration mode.

Evaluation

The evaluation toolkit supports **7 modes**:

Mode Supported models

:--- :---

  • * GAM ** **GroundingPI, GroundAnything, GroundAnything-VLM**

VLM Generic vision-language baselines

REXOMNI Rex-Omni

LOCATEANYTHING LocateAnything

GROUNDINGDINO GroundingDINO through a compatible service

DLM Legacy diffusion checkpoints using the GAM protocol

RLV2 Legacy RL checkpoints using the GAM protocol

All three released checkpoints use GAM mode.**

Evaluation code and instructions: GitHub.

Quantitative Evaluation Benchmarks

Inference:

Installation

Run the commands from the **GroundAnything source repository root** after obtaining the code package, using **Linux x86 64 and Python 3.12**. Use the serving profile in the supplied source bundle so that the custom model adapter, decoding implementation, and dependencies remain aligned.

The installer verifies and extracts its bundled frameworks, creates .venv-serve , and records resolved packages. It prepares the custom SGLang implementation and applies the serving profile's dependency order. The profile includes the required cuDNN compatibility selection; its dependency-check report records the known Torch/cuDNN metadata exception.

Choose the checkpoint-specific recipe below.** GroundAnything-VLM users need only the VLM download and launch commands; the DLM commands require the separate GroundAnything weights.

GroundAnything: Entropy-guided Service

Download the **complete DLM model bundle**, including its custom code and tokenizer, then launch:

The published model package is already a DLM bundle, so prepare-model is unnecessary for this download. The endpoint is http://127.0.0.1:8101/v1 , with model ID groundinganything .

GroundAnything: Self-speculative Service

Stop the existing DLM service before switching its decoder:

This reuses the same DLM weights and endpoint, with diffusion proposals and greedy causal verification.

GroundAnything-VLM: Autoregressive Service

Use the separate autoregressive checkpoint and its service recipe:

This service uses http://127.0.0.1:8102/v1 , with model ID groundinganything-vlm . The two repositories share the spatial interface but have different loading and generation paths.

Worker (recommended)

Start the appropriate service once, then reuse the client:

The HTTP client retains no model weights.

Supported Tasks & Prompt Templates

Task Prompt example

:--- :---

Category / dense grounding Locate all the instances that match the following categories: carperson.

Referring boxes Locate the target referred to by the following description: the red car.

Category points Point to: carperson.

Referring points Point to the target referred to by the following description: the red car.

OCR OCR task detect all the text in box format.

Layout Detect all document layout elements that match the following categories: titletext.

GUI Point to the UI element to click for the following instruction: open the settings menu.

Visual prompting Provide reference boxes in the native spatial-token format, then request similar objects.

The convenience client's predict() method wraps referring-box and referring-point prompts. Use an OpenAI-compatible request to /chat/completions for the other task templates; keep the image and prompt in the same user message.

Generation Modes

Entropy-guided decoding

Image/query prefill creates a causal prefix cache and a known anchor. The release recipe uses **block size 32, sub-block size 4, and entropy threshold 0.8**. A physical block contains the known anchor and 31 masked positions; sub-blocks are completed from left to right while the forward pass evaluates the physical block.

For each still-masked position in the active sub-block, the decoder measures entropy from the unmodified token distribution over the generatable vocabulary, excluding the mask token. Positions at or below the threshold are committed together. If no position qualifies, the lowest-entropy position is committed so decoding makes progress. Committed tokens remain fixed.

After a block is complete, a causal forward reconstructs its authoritative KV cache and supplies the next anchor. This cache-building pass **does not verify or reject the generated block**. A block requiring D denoising passes therefore uses D + 1 model forwards, excluding the initial prefill.

Self-speculative decoding

The model uses its own shared weights to draft tokens with bidirectional attention and verify them with causal attention. Verification accepts the **longest consecutive matching prefix**, stops at the first mismatch, applies the causal correction, and discards the rejected suffix cache states. The shipped speculative route uses greedy verification; it is not a general stochastic speculative sampler.

The documented --decoder speculative service is the linear shared-weight route. Exact greedy verification is relative to the converted model's causal branch; it does not imply identical outputs to the separately trained GroundAnything-VLM checkpoint.

Inference Infrastructure

SGLang Execution

The custom SGLang integration coordinates model loading, request scheduling, attention kernels, and KV-cache ownership for blockwise generation. Denoising uses bidirectional attention inside the active block; completed history is retained as causal KV. Self-speculation additionally verifies proposals and removes rejected suffix states. These cache semantics must be preserved when optimizing execution.

The supplied recipe selects **BF16 + Triton attention + eager execution**. DLM recipes record the engine source, decoder, effective settings, and package versions in outputs/sglang//engine runtime.json . The VLM service records its causal model/runtime configuration separately in outputs/sglang/vlm/engine runtime.json . For higher service concurrency, use independent replicas with distinct devices, ports, and output directories; the default queue is not continuous multi-request batching.

CUDA Graph and Selective FP8

The paper evaluates a progressive infrastructure sequence:

Layer Purpose Status in the supplied default recipe

:--- :--- :---

Native PyTorch eager Reference model execution Reference implementation

SGLang eager Integrated scheduling, attention, and cache execution **Default serving path**

CUDA Graph replay Replay compatible captured GPU work to reduce repeated launch overhead Evaluated in the paper; **disabled by the default launcher**

Selective FP8 Reduce arithmetic cost in eligible language-model linear operations while retaining other components in BF16 Evaluated in the paper; **default serving remains BF16**

CUDA Graph changes how compatible GPU work is submitted; it does not define a new token-commitment or verification rule. Captured shapes and state updates must remain compatible with the active decoding path. Selective FP8 can change logits and subsequent decoding decisions, so it is a distinct numerical configuration.

The optional graph implementation captures fixed-shape block work. Its FlashInfer path uses persistent attention masks and device-resident buffer updates for bidirectional drafting and causal verification. The Triton verifier path separates draft/verification metadata and input buffers while sharing parameters and the real KV pool. Its supported capture case is B32 with one request and no tensor/pipeline/data parallel expansion; prefill and unsupported shapes use eager execution. Optional shadow checks compare cache states, logits, and token choices against eager execution. These implementation paths are not exposed as a public run.py serve --cuda-graph switch in this release.

The paper's cumulative infrastructure speedups compare execution implementations **within the same decoding mode**. They are separate from the headline comparison of self-speculation against the autoregressive checkpoint. The default release commands above do not enable Graph replay or FP8, and no unsupported activation flags are implied.

Ethical Considerations:

Grounding predictions can miss small or occluded objects, repeat instances, or produce inaccurate text and coordinates. Validate localization quality on the intended task and inspect incomplete responses. GUI points describe image locations; the model does not execute interface actions. Perception outputs require task-specific validation before integration into physical systems.

简体中文

GroundAnything:以极速并行解码实现精准视觉定位

English **简体中文**

模型系列:** GroundAnything — DLM / 并行解码 · GroundAnything-VLM — 自回归。

本仓库提供 GroundAnything DLM 模型。** 主要基准评测采用熵引导解码,也可选择自推测解码。

🔗 快速链接

🤗 **Hugging Face:** GroundAnything。

🌐 **项目主页:** GroundAnything。

💻 **GitHub 代码:** groundingpi/GroundAnything。

📄 **论文:** arXiv:2609.39600。

🤗 **HF paper:** GroundAnything · [](https://huggingface.co/papers/2609.39600).

模型概述

简介:

自回归(AR)视觉定位模型将空间预测串行化,带来顺序生成的延迟,并为输出 token 施加因果顺序。我们将视觉定位视为视觉证据提取:物体、位置和空间关系共同受到图像与查询的约束,但它们之间的依赖关系并不意味着生成过程必须从左到右进行。这一区别使双向扩散成为自然的选择,让空间假设能够并行产生,并通过迭代去噪共同细化。

我们提出 **GroundAnything**,一个拥有 4B 参数的视觉定位基础模型,通过分块去噪兼顾快速并行解码与精确定位。在 30 个视觉定位基准上,自回归版本 **GroundAnything-VLM** 以 **72.42%** 的综合表现刷新了同等规模模型的最佳水平,并与 GPT-6 Astra(**71.35%**)保持竞争力。采用**熵引导解码**的 GroundAnything 同样超越了这一规模下此前的最佳水平,平均达到 **61.75%**,高于基于 MTP 的快速模型 LocateAnything 的 **53.32%**。

在论文报告的运行配置下,可选的**自推测模式**相较自回归版本实现了 **4.51× 加速**,同时 **COCO F1mIoU 下降 0.74 个百分点**。基础设施实验表明,逐步优化推理实现能够将并行解码转化为实际加速,为对延迟敏感的实际系统提供高效的视觉定位能力。

许可证与使用条款:

我们的原创贡献采用 **Apache 2.0** 许可证,本项目不额外施加限制。第三方材料保留其适用的许可证,其中源自 Kimi 的材料及适用的衍生作品遵循 **Kimi K3 License**。使用或再分发组合后的模型包时,这些条款仍然适用。许可范围与完整许可文本请参阅 LICENSE。

部署地域:

全球。

应用场景:

开放词汇目标定位与密集场景视觉定位。

指代表达理解与基于视觉提示的定位。

点定位、空间推理和 GUI 元素定位。

文本定位与 OCR,以及文档版面理解。

面向机器人、具身智能体和自主系统的感知研究。

新闻

  • *HF paper [10/14/2026]:** GroundAnything 获得 Hugging Face 社区的巨大认可,收获 **74 个 Upvote**。查看论文。
  • *ModelScope [10/14/2026]:** 模型权重和中英文模型卡已在 ModelScope 发布。
  • *网页 [10/04/2026]:** 项目网页发布:GroundAnything。
  • *代码 [10/03/2026]:** GitHub 代码发布:GroundAnything。
  • *论文 [09/30/2026]:** GroundAnything。

引用

模型架构:

架构类型:** 共享视觉语言主干,支持自回归模型和分块扩散模型。

  • *视觉编码器:** MoonViT-V2 / Kimi-K3 视觉主干。
  • *语言主干:** Qwen3-4B-Instruct-2507。
  • *多模态投影器:** 2 × 2 空间聚合与两层 MLP。
  • *空间词表:** 1,000 个坐标 token,与语义标签和协议标记共用词表。
  • *DLM 转换:** 共享解码器与词表输出头同时支持因果预测和双向响应块去噪,并为扩散生成加入掩码 token。

输入:

输入类型:** 图像与文本。

  • *图像:** 每个请求包含一张 RGB 图像。Python 客户端支持 JPEG、PNG 和 WebP 文件;随模型提供的处理器负责图像预处理。
  • *文本:** 自然语言指令、类别列表、指代表达、OCR/版面查询,或包含示例框的提示词。
  • *HTTP API 的图像编码:** 在 image url 内容项中提供 base64 data URI,并配合一个 text 内容项。

请使用模型自带的分词器、处理器和对话模板。多个类别使用 分隔。参考框与输出使用相同的 0–999 空间 token 词表。

输出:

输出类型:** 包含语义标签和量化空间坐标的文本。

三个已发布模型均采用 **GAM 协议**:使用 至 的整数坐标 token、目标引用分隔符和框分隔符。边界框包含 (x1, y1, x2, y2) ,点包含 (x, y) 。相邻坐标 token 之间没有空格。同一标签下的多个实例在同一组框分隔符内以逗号分隔。未找到的目标用 None 表示。

语法示例:

客户端返回解析后的预测结果,以及 raw output 、 finish reason 、 usage 、 parse error 和 valid 字段,并将坐标映射回图像像素以便可视化。被截断或格式不正确的响应会标记为无效。自定义 API 客户端应使用 skip special tokens=false 保留空间 token,并避免在这些 token 之间插入空格。

软件集成:

运行引擎:** 仓库定制的 **SGLang** 集成支持 DLM 和 VLM 服务;此外还提供 DLM 的原生 Transformers

优先采用原作者提供的中文模型卡片;仅有英文说明时由闲社AI翻译整理。重要参数、许可证和商用范围请以原文为准。

你将获得什么

完整仓库方式包含该固定版本中的权重、配置、分词器及说明文件;指定版本方式只下载所选文件或整组分片。多模态模型的投影文件、配置等依赖,请按作者说明配齐。

完整仓库可能包含多个权重格式,因此需要的磁盘空间可能大于单一格式的模型大小。下载文件不等于完成模型部署。

使用前须知

运行环境

运行模型需要的设备、工具与依赖,以原作者说明为准。

授权范围

是否允许商用、修改和分发,请查看模型许可证。

闲社提供资料与镜像下载方法,不代表已运行模型或完成安全审计。下载的代码应先检查,再执行。

返回顶部