
Router
Ramp推出了自己的 AI 模型路由服务,名为 Router,允许用户和公司通过 API 使用和切换各种大语言模型。该公司表示,过去三年来,它一直在使用自己构建的路由器来满足自身的 AI 使用需求。
Glance Engine 是一款专为 AI 智能体决策和视觉扫描任务设计的开源推理引擎。它摒弃了传统大语言模型(LLM)的文本生成模式,转而采用“读出头(Readout Heads)”直接输出类型化答案(如边界框、是非判断、多项选择概率)。
Glance Engine 是一款专为 AI 智能体决策和视觉扫描任务设计的开源推理引擎。它摒弃了传统大语言模型(LLM)的文本生成模式,转而采用“读出头(Readout Heads)”直接输出类型化答案(如边界框、是非判断、多项选择概率)。这种架构使得 Glance Engine 能够在一次前向传递中并行回答多个问题,实现了极致的低延迟和高吞吐量。在 NVIDIA RTX PRO 6000 (Blackwell) 上,它对单张图像的 32 个问题仅需 48.9 毫秒,比同等精度的 vLLM 快 6.8 倍;在缓存图像库中扫描单个问题则快 32.6 倍。

BoxAnswer(坐标与置信度)、YesNoAnswer(是/否概率)、ChoiceAnswer(选项概率分布)。Glance.tiny() 进行代码测试)和 GPU 模式(BF16/FP8)。
git clone https://github.com/Vision-Decision/glance-engine.git && cd glance-engine
# GPU 版本
pip install -e '.[gpu,serve]'
# 仅 CPU 版本(需先安装 CPU torch)
pip install -e '.[serve]'
单图多问:
from glance_engine import Box, Choice, Glance, YesNo
# 加载模型 (CUDA BF16)
glance = Glance.from_pretrained("Vision-Decision/Glance-4B-preview")
# 添加图像(自动编码并缓存)
image_id = glance.add_image("demo/data/search_large/211069.jpg")
# 并行提问
answers = glance.ask(image_id, [
Box("the giraffe on the right"),
YesNo("Is this photo taken outdoors?"),
Choice("How many giraffes are there?", ["one", "two", "three or more"]),
])
for answer in answers:
print(answer)
# 输出示例: BoxAnswer(question=..., p_present=..., box=[x1, y1, x2, y2], ...)
批量图像扫描:
import glob
from PIL import Image
images = [Image.open(p).convert("RGB") for p in sorted(glob.glob("demo/data/search_large/*.jpg"))]
scanner = glance.scanner(max_vis=640)
# 扫描所有图像中是否存在“长颈鹿”
result = scanner.scan("a giraffe", images)
print(result["set"]["any"], result["latency_ms"])
glance-serve --port 8002
# 发送请求
curl -s localhost:8002/v1/decisions -H 'content-type: application/json' -d '{
"image": "<base64_string>",
"cache": true,
"questions": [{"type": "box", "text": "the giraffe on the right"}]
}'
Glance Engine 的高效性源于其独特的架构设计:
| 工作负载 | Glance (ms) | vLLM BF16 (ms) | SGLang BF16 (ms) | 最佳 vLLM FP8+MTP (ms) |
|---|---|---|---|---|
| 单图 32 框问 | 48.9 | 334.0 | 658.0 | 229.2 |
| 缓存图 32 框问 | 19.6 | 316.9 | 606.5 | 211.8 |
| GUI 截图 (4K token) | 277.9 | 353.7 | 489.0 | 262.4 |
| 视频 (64帧 x 1问) | 587.7 | 928.1 | 1,052.0 | 695.7 |
| 扫描 256 图 x 1问 | 96.7 | 3,151.6 | 7,732.9 | 2,672.2 |
Glance Engine 为需要实时视觉感知和快速决策的 AI 智能体提供了一个强大的底层引擎,特别是在机器人导航、自动化测试、内容审核及交互式视觉助手等领域具有广阔的应用前景。







