EGM-Qwen3-VL-8B is the flagship model of the
EGM (Efficient Visual Grounding Language Models) family. It is built on top of
Qwen3-VL-8B-Thinking and trained with a two-stage pipeline: supervised fine-tuning (SFT) followed by reinforcement learning (RL) using GRPO (Group Relative Policy Optimization).
EGM demonstrates that by increasing test-time computation, small vision-language models can outperform much larger models in visual grounding tasks while being significantly faster at inference.
VLMs of different sizes often share the same visual encoder. Small models fall behind large models primarily due to a gap in text understanding capabilities — 62.8% of small model errors stem from complex prompts with multiple relational descriptions. EGM mitigates this gap by generating many mid-quality tokens (from small models) to match the performance of large VLMs that produce fewer but more expensive tokens.
1pip install -U huggingface_hub
2huggingface-cli download nvidia/EGM-8B --local-dir ./models/EGM-8B
1pip install "sglang[all]>=0.5.5"
2
3python -m sglang.launch_server \
4 --model-path nvidia/EGM-8B \
5 --chat-template=qwen3-vl \
6 --port 30000
1import openai
2import base64
3
4client = openai.Client(base_url="http://127.0.0.1:30000/v1", api_key="EMPTY")
5
6# Load a local image as base64
7with open("example.jpg", "rb") as f:
8 image_base64 = base64.b64encode(f.read()).decode("utf-8")
9
10response = client.chat.completions.create(
11 model="nvidia/EGM-8B",
12 messages=[
13 {
14 "role": "user",
15 "content": [
16 {"type": "image_url", "image_url": {"url": f"data:image/jpeg;base64,{image_base64}"}},
17 {"type": "text", "text": "Please provide the bounding box coordinate of the region this sentence describes: the person on the left."},
18 ],
19 }
20 ],
21 temperature=0.6,
22 top_p=0.95,
23 max_tokens=8192,
24)
25print(response.choices[0].message.content)
1@article{zhan2026EGM,
2 author = {Zhan, Guanqi and Li, Changye and Liu, Zhijian and Lu, Yao and Wu, Yi and Han, Song and Zhu, Ligeng},
3 title = {EGM: Efficient Visual Grounding Language Models},
4 booktitle = {arXiv},
5 year = {2026}
6}
This repository benefits from
Qwen3-VL,
InternVL,
verl and
verl-internvl.