跳到正文
原文
Hugging Face Blog·· 2026-08-10精选AI 评分79

Meta 发布 30B 开源多模态模型 Muse Glimmer,面向本地智能体

Meta is back with Muse Glimmer: local, agentic, multimodal, and open source

AI 导读

Meta 今日发布从 Muse 蒸馏而来的多模态模型 Muse Glimmer,参数规模 30B,采用 Apache 2.0 许可,面向可本地部署的编程、文档分析和个人助理。

推荐理由

分类基准将 Muse Glimmer-30B 与 Gemma4-31B、Qwen3.6-27B 对照,便于按智能体、编程和多模态场景比较。

正文 · AI 翻译

开源 LLM 界的 OG 们带来了好消息!今日发布的 Muse Glimmer 是 Meta 的全新多模态模型,专为本地智能体使用场景设计。它从 Muse 蒸馏至 30B 参数,并以 Apache 2.0 许可证 发布,非常适合在本地部署,以保护隐私、降低成本,或只是随便折腾。它面向注重隐私的应用,例如编程、文档分析、个人助手,以及类似 Claw 或 Hermes 的配置。

为表庆祝,我们与 Meta 同步在 transformers、llama.cpp、vLLM、Inference Endpoints 及其他库中提供 day-0 支持。我们做了一些很酷的东西,并在这篇博客中说明我们的发现。

查看下方演示,获取灵感。

你可以找到 Hugging Face Hub 上的 Muse Glimmer。

基准测试

基准测试结果

分数按已发布结果报告。粗体表示所比较模型中的最佳结果;↓ 表示越低越好。

类别 基准测试 Muse Glimmer-30B
高推理
Gemma4-31B
思考模式
Qwen3.6-27B
思考模式
通用智能体 MCP Atlas 75.5 54.2 62.5
通用智能体 DeepSearch QA 74.6 61.7 71.1
通用智能体 τ³-Banking 23.5 15.1 16.7
通用智能体 WildClawBench 47.6 37.6 43.2
通用智能体 GDPval-AA 953 811 1141
通用智能体 GAIA2 43.3 36.4 40.0
通用智能体 SkillsBench(含技能) 44.3 32.4 46.6
通用智能体 OSWorld-Verified 65.9 58.5 75.6
智能体编程 SWE-Bench Pro 51.2 36.9 50.2
智能体编程 SWE-Bench Verified 76.0 66.6 77.2
智能体编程 TerminalBench 2.1 51.7 43.4 60.7
智能体编程 SciCode 43.6 43.4 39.8
多模态 Charxiv Reasoning 78.8 77.7 78.4
多模态 ScreenSpot Pro 75.4 75.9 76.1
多模态 OmniDocBench v1.5 75.8 72.5 77.8
多模态 MMMU Pro 74 73 75
安全 CI Memories 违规 (↓):26.4
覆盖率:64.8
违规 (↓):12.1
覆盖率:53.0
违规 (↓):53.4
覆盖率:66.9
安全 Siren AgentDojo 攻击成功率 (↓):28.4
效用:94.2
攻击成功率 (↓):25.6
效用:90.8
攻击成功率 (↓):40.3
效用:92.7
通用能力与推理 IFBench 77.0 76.0 70.8
通用能力与推理 AIME 2026 94.7 89.2 94.1
通用能力与推理 GPQA Diamond 83.5 85.7 84.2
通用能力与推理 Humanity’s Last Exam(文本 + 无工具) 22.0 23.6 23.1
通用能力与推理 AA-LCR 80.0 68.3 73.3
通用能力与推理 Beam 128K 65.1 58.2 63.0

架构

Muse Glimmer 是一个稠密的 30B 参数模型,由以下部分组成:

  • 用于视觉的 2B ViT 风格编码器(Perception Encoder)
  • 28B 参数文本解码器

除主 VLM 外,还有一个基于 DFlash 实现的推测解码草稿模型。该模块为可选使用,能以一定内存开销换取快得多的生成速度。我们发现该草稿模型特别适合结构化内容生成,例如编程。

文本解码器

该语言模型采用以下架构组件:

  • 混合注意力:在三个使用旋转位置编码的滑动窗口层(各 2,048 个 token)与第四个使用全注意力和 NoPE(无位置编码)的层之间交替。因此模式为 (SWA, SWA, SWA, Full),重复 13 次,共计 52 层。这使模型能够借助 RoPE 保留相对顺序与距离信息,并借助 NoPE 在全局范围内保留信息。
  • 门控分组查询注意力:每个键值头由 16 个查询头共享,从而将 KV 缓存内存减少 16 倍,并使生成更快、成本更低。
  • 带额外 query 缩放的 Q-K 归一化:在计算注意力之前,Muse Glimmer 会对每个 query head 和 key head 应用 RMS 归一化,以保持注意力 logits 稳定。此后,query 会乘以一个缩放因子,以设定归一化后的目标 logit 尺度。额外的 query 缩放在 softmax 层面的行为类似于逆温度。

Perception Encoder

Muse Glimmer 使用一个图像编码器同时处理图像和视频。与其他 VLM 中使用的相对较小的视觉编码器不同,这是一个规模可观的 2B 类 ViT 模型,依照 Perception Encoder 架构设计。Perception Encoder 此前由 Meta 推出,作为各种下游空间与多模态任务的骨干。
该编码器将图像切分为形状为 2 frames x 3 channels x 14 x 14 的 patch,并通过一个线性层进行投影。随后,会把从学习得到的位置表插值而来的绝对位置嵌入加到这些嵌入上。接着,它们被送入由 50 层和 GELU MLP 组成的视觉塔。与语言模型类似,注意力模式由三个窗口注意力层后接一个全注意力层组成。在注意力层内部,会对 query 和 key 应用 2D RoPE。

经过 transformer 之后,pixel shuffle 会将相邻空间 token 按 2x2 分组拼接,从而在不丢弃其通道的情况下将图像 token 数量减少 4 倍。合并后的特征随后被投影到文本解码器的共享嵌入空间。

视频会逐帧通过同一个编码器,每一帧都被转换为 patch(形状为 [batch, temporal groups, grid height, grid width, 2 frames, 3 channels, 14, 14])。处理器以每秒 2 帧为目标,并将片段上限设为 96 帧,在整段视频中均匀采样。处理器会创建带时间戳的视频占位符,使文本与帧交错,例如 “Time: 0.0s <|video|> x N”,其中最终的视频嵌入会在最终投影层之前被替换。

Transformers

将 transformers 升级到最新版本,以便能够使用 Muse Glimmer。

pip install --upgrade transformers accelerate

Muse Glimmer 在 transformers 中提供首日支持,同时覆盖主模型与推测解码 drafter。你可以使用 AutoModelForMultimodalLM 和 AutoProcessor 类来加载模型与处理器。

from transformers import AutoProcessor, AutoModelForMultimodalLM

MODEL_ID = "meta-models/Muse-Glimmer-30B"

# Load model
processor = AutoProcessor.from_pretrained(MODEL_ID)
model = AutoModelForMultimodalLM.from_pretrained(
    MODEL_ID,
    dtype="auto",
    device_map="auto"
)

同一段代码无需修改即可在 NVIDIA(CUDA)、AMD(ROCm)和 Intel(XPU)GPU 上运行,device_map="auto" 会将模型放到任一可用的加速器上。

纯文本推理

加载模型之后,你可以按如下方式用它进行纯文本推理。

from transformers import AutoProcessor, AutoModelForMultimodalLM

MODEL_ID = "meta-models/Muse-Glimmer-30B"

# Load model
processor = AutoProcessor.from_pretrained(MODEL_ID)
model = AutoModelForMultimodalLM.from_pretrained(
    MODEL_ID,
    dtype="auto",
    device_map="auto"
)

# Prompt
messages = [
    {"role": "user", "content": "Write a short joke about saving RAM."},
]

# Process input
inputs = processor.apply_chat_template(
    messages,
    tokenize=True,
    return_dict=True,
    return_tensors="pt",
    add_generation_prompt=True,
    reasoning_strength="low"
).to(model.device)
input_len = inputs["input_ids"].shape[-1]

# Generate output
outputs = model.generate(**inputs)
response = processor.decode(outputs[0][input_len:], skip_special_tokens=False)
print(response)

用图像和文本提示模型

我们需要 torchvision 才能使用图像和文本。

pip install torchvision

Muse Glimmer 接受图像作为输入,如下所示:

from transformers import AutoProcessor, AutoModelForMultimodalLM

MODEL_ID = "meta-models/Muse-Glimmer-30B"

# Load model
processor = AutoProcessor.from_pretrained(MODEL_ID)
model = AutoModelForMultimodalLM.from_pretrained(
    MODEL_ID,
    dtype="auto",
    device_map="auto"
)

# Images + Text
messages = [
    {
        "role": "user", "content": [
            {"type": "image", "image": "https://huggingface.co/datasets/merve/vl-test-suite/resolve/main/SF.png"},
            {"type": "text", "text": "What is shown in this image?"}
        ]
    }
]

inputs = processor.apply_chat_template(
    messages,
    tokenize=True,
    return_dict=True,
    return_tensors="pt",
    add_generation_prompt=True,
    reasoning_strength="low"
).to(model.device)
input_len = inputs["input_ids"].shape[-1]

# Generate output
outputs = model.generate(**inputs)
response = processor.decode(outputs[0][input_len:], skip_special_tokens=False)
print(response)

视频推理

要处理视频,我们建议在环境中安装 torchcodec。

pip install torchcodec

Muse Glimmer 可以回答关于视频的复杂问题而不使用音频。你可以按如下方式进行视频推理,这里有一个来自 VideoMME2 的示例,它是最流行的视频问答基准。

from transformers import AutoProcessor, AutoModelForMultimodalLM

MODEL_ID = "meta-models/Muse-Glimmer-30B"

# Load model
processor = AutoProcessor.from_pretrained(MODEL_ID)
model = AutoModelForMultimodalLM.from_pretrained(
    MODEL_ID,
    dtype="auto",
    device_map="auto"
)

# Videos + Text
messages = [
    {
        "role": "user",
        "content": [
            {"type": "video", "video": "https://huggingface.co/datasets/merve/vl-test-suite/resolve/main/IMG_8137.mp4"},
            {"type": "text", "text": "Describe what happens in this video."},
        ],
    },
]

inputs = processor.apply_chat_template(
    messages,
    tokenize=True,
    return_dict=True,
    return_tensors="pt",
    add_generation_prompt=True,
    reasoning_strength="low",
    processor_kwargs={"num_frames": 96},
).to(model.device)

input_len = inputs["input_ids"].shape[-1]
outputs = model.generate(**inputs)

response = processor.decode(
    outputs[0, input_len:],
    skip_special_tokens=False,
)
print(response)

多模态工具调用

Muse Glimmer 可以进行多模态工具调用,具体做法如下。在下面的示例中,我们要求模型根据图像中的城市调用天气工具。

import json
import re
from transformers import AutoProcessor, AutoModelForMultimodalLM

MODEL_ID = "meta-models/Muse-Glimmer-30B"

# Load model
processor = AutoProcessor.from_pretrained(MODEL_ID)
model = AutoModelForMultimodalLM.from_pretrained(
    MODEL_ID,
    dtype="auto",
    device_map="auto"
)

tools = [
    {
        "type": "function",
        "function": {
            "name": "weather.get",
            "description": "Get the current weather for a city.",
            "parameters": {
                "type": "object",
                "properties": {
                    "city": {"type": "string"},
                },
                "required": ["city"],
            },
        },
    }
]


messages = [
    {
        "role": "user",
        "content": [
            {"type": "image", "image": "https://huggingface.co/datasets/merve/vl-test-suite/resolve/main/SF.png"},
            {"type": "text", "text": "I'm going to the city in this picture. What clothes should I wear?"},
        ],
    },
]

inputs = processor.apply_chat_template(
    messages,
    tools=tools,
    tokenize=True,
    return_dict=True,
    return_tensors="pt",
    add_generation_prompt=True,
    reasoning_strength="low"
).to(model.device)

input_len = inputs["input_ids"].shape[-1]
outputs = model.generate(**inputs)
response = processor.decode(outputs[0][input_len:], skip_special_tokens=False)
print(response)

目标检测

你可以按如下方式使用 Muse Glimmer 对图像进行开放式目标检测。

from transformers import AutoProcessor, AutoModelForMultimodalLM

MODEL_ID = "meta-models/Muse-Glimmer-30B"

# Load model
processor = AutoProcessor.from_pretrained(MODEL_ID)
model = AutoModelForMultimodalLM.from_pretrained(
    MODEL_ID,
    dtype="auto",
    device_map="auto"
)

messages = [{
    "role": "user",
    "content": [
        {"type": "image", "image": "https://huggingface.co/datasets/merve/vl-test-suite/resolve/main/SF.png"},
        {
            "type": "text",
            "text": (
                "Detect the bridge. Return only the detection in the model's "
                "native object-detection format, with no explanation."
            ),
        },
    ],
}]

inputs = processor.apply_chat_template(
    messages,
    tokenize=True,
    return_dict=True,
    return_tensors="pt",
    add_generation_prompt=True,
    reasoning_strength="low",
).to(model.device)

input_len = inputs["input_ids"].shape[-1]
outputs = model.generate(**inputs, max_new_tokens=128)
response = processor.decode(outputs[0][input_len:], skip_special_tokens=False)

detections = json.loads(response.removesuffix("<|eot|>"))
print(detections)

这是一份用于执行目标检测的端到端脚本 GitHub Gist

Llama.cpp

Muse Glimmer 自发布首日即支持 llama.cpp。Meta 已在 此仓库 中分发经过校准的量化模型,Unsloth 也在发布优化后的量化模型。同时亦支持 DFlash 推测解码。你可以使用预构建的 llama 二进制文件来启动 llama server 或 CLI。要安装 llama.cpp,请运行:

curl -LsSf https://llama.app/install.sh | sh

然后你可以按如下方式启动服务器。

llama serve -hf meta-models/Muse-Glimmer-30B-GGUF

服务器启动后,你可以前往 localhost:8080,使用内置 WebUI 进行对话。

你也可以按如下方式查询服务器。

curl http://localhost:8080/v1/chat/completions \
    -H "Content-Type: application/json" \
    -d '{
        "messages": [
            {"role": "system", "content": "You are a helpful assistant."},
            {"role": "user", "content": "Write a limerick about python exceptions"}
        ]
    }'

你也可以将 llama server 与 Pi 等编程智能体一起使用。

推测解码

DFlash 使用轻量级块扩散草稿模型,在解码阶段提供相同输出并带来额外加速。Transformers 与 llama.cpp 自发布首日即支持 Muse Glimmer 的 DFlash 草稿模型。

下面可以看到推测解码如何在真实场景中加速生成。视频左侧是启用 DFlash 的 llama.cpp webui,右侧是常规生成。

使用 transformers 进行推测解码

你可以按如下方式加载草稿模型与主模型,并像使用基础模型那样进行推理,只需额外传入一个参数(见后续代码片段)。

import torch
from transformers import AutoProcessor, MuseGlimmerAssistantModel, MuseGlimmerForConditionalGeneration

model_id = "meta-models/Muse-Glimmer-30B"
assistant_model_id = "meta-models/Muse-Glimmer-30B-assistant"
target = MuseGlimmerForConditionalGeneration.from_pretrained(model_id, dtype=torch.bfloat16, device_map="auto")
assistant = MuseGlimmerAssistantModel.from_pretrained(assistant_model_id, dtype=torch.bfloat16, device_map="auto")
processor = AutoProcessor.from_pretrained(model_id)

messages = [
    {
        "role": "user", "content": [
            {"type": "image", "url": "https://huggingface.co/datasets/merve/vl-test-suite/resolve/main/SF.png"},
            {"type": "text", "text": "What is shown in this image?"}
        ]
    }
]

inputs = processor.apply_chat_template(
    messages,
    tokenize=True,
    return_dict=True,
    return_tensors="pt",
    add_generation_prompt=True,
    reasoning_strength="low"
).to(target.device)
input_len = inputs["input_ids"].shape[-1]

outputs = target.generate(
    **inputs,
    assistant_model=assistant,
    speculation_type="dflash",
    do_sample=True
)
response = processor.decode(outputs[0][input_len:], skip_special_tokens=False)
print(response)

使用 llama.cpp 进行推测解码

你可以使用以下命令启动 llama server。--spec-draft-n-max 参数控制 DFlash 在每个推测解码步骤中提议多少个未来 token。Muse Glimmer 的 DFlash 模型以块大小 16 进行训练,即 1 个锚点 token 加 15 个提议 token,因此任何高于 15 的值都会被限制为 15。

llama serve -hf meta-models/Muse-Glimmer-30B-GGUF --spec-type draft-dflash --spec-draft-n-max 15

你也可以按如下方式将 llama cli 与推测解码草稿模型一起使用。

llama cli -hf meta-models/Muse-Glimmer-30B-GGUF --spec-type draft-dflash

推理端点

若要进行托管式自动扩缩部署,请打开 Muse Glimmer 30B Inference Endpoints 预设。模型已被预先选定:选择组织、云服务提供商、区域、兼容的 GPU 实例、身份验证和自动扩缩设置,然后查看小时价格并点击 创建端点。一旦其状态为 运行中,你就可以在 Playground 中测试,并从概览中复制端点 URL 和模型名称。

Deploy Muse Glimmer 30B with Hugging Face Inference Endpoints

已部署的模型提供与 OpenAI 兼容的 Chat Completions API。请将 Hugging Face token 保存在环境变量中,将 HF_ENDPOINT_URL 设为概览中所示的、不含 /v1 的 URL,并将 HF_ENDPOINT_MODEL 设为该端点的模型名称。

export HF_TOKEN="hf_..."
export HF_ENDPOINT_URL="https://<endpoint-id>.<region>.<cloud>.endpoints.huggingface.cloud"
export HF_ENDPOINT_MODEL="<endpoint-model-name>"
pip install --upgrade openai
import os
from openai import OpenAI

client = OpenAI(
    base_url=f"{os.environ['HF_ENDPOINT_URL'].rstrip('/')}/v1/",
    api_key=os.environ["HF_TOKEN"],
)

response = client.chat.completions.create(
    model=os.environ["HF_ENDPOINT_MODEL"],
    messages=[
        {"role": "system", "content": "You are a helpful assistant."},
        {"role": "user", "content": "Write a limerick about Python exceptions."},
    ],
    max_tokens=256,
)
print(response.choices[0].message.content)

有关配置、自动扩缩、安全性、日志和监控,请参阅 Inference Endpoints 文档。

对使用 transformers 后端的 Muse Glimmer vLLM 的支持

在本次发布中,我们提供了对使用 transformers 后端的 vLLM 的支持。


# tensor parallel serving across 4 GPUs
vllm serve meta-models/Muse-Glimmer-30B --model-impl transformers --tensor-parallel-size 4

# infer
curl -s http://127.0.0.1:8000/v1/chat/completions \
    -H 'Content-Type: application/json' \
    -d '{
      "model": "meta-models/Muse-Glimmer-30B",
      "messages": [
        {"role": "user", "content": "Explain tensor parallelism briefly."}
      ],
      "temperature": 0.0,
      "max_tokens": 256
    }'

使用 TRL 进行微调

你可以使用 TRL,借助从 SFT 到 Async GRPO 的多种方法来微调 Muse Glimmer。我们已在 bf16 下,使用每张配备 80GB 显存的 Hopper 级 GPU 运行了两项实验。

工作负载 实际最低要求
推理 / 评估,BF16 1×80 GB H100
LoRA SFT,BF16 1×80 GB H100,微批次 1 + 检查点
全量 SFT,BF16 8×80 GB H100,使用 FSDP/ZeRO-3
LoRA GRPO,Transformers rollout 1×80 GB H100,但较慢/较紧张
LoRA GRPO,独立的 vLLM rollout 服务器 8×H100:4 张 rollout + 4 张训练
全量微调 GRPO 8 张 GPU 通常不足

作为本次发布的一部分,我们提供了一个在 MolmoWeb 数据集的小型划分上微调 Muse Glimmer 的示例。它展示了如何让模型生成结构化输出,以及如何基于图像进行微调。

我们还尝试在 OpenCode 与 AsyncGRPO 示例 上运行该模型。模型展现出强大的编程能力,因此我们鼓励你在 OpenEnv 和 TRL 中使用编程环境进行训练。

演示

这里有一些试用 Muse Glimmer 的有趣方式。在我们看来,这个模型最酷的地方在于,它是一个能够编程的本地规模个人助手。这意味着你可以让它做这些事,例如量化自己、在 Hub 上查找量化权重、将自己部署到推理端点,甚至针对特定硬件优化自己!本地团队加油 🚀

将 OpenClaw 连接到 Muse Glimmer

假设 Inference Endpoint 暴露了一个与 OpenAI 兼容的 /v1 API。

在 OpenClaw 网关环境中设置 HF_TOKEN,然后将其添加到 ~/.openclaw/openclaw.json:

OpenClaw 配置

{
  models: {
    mode: "merge",
    providers: {
      muse: {
        baseUrl: "https://YOUR-ENDPOINT.endpoints.huggingface.cloud/v1",
        apiKey: {
          source: "env",
          provider: "default",
          id: "HF_TOKEN"
        },
        api: "openai-completions",
        authHeader: true,
        models: [{
          id: "meta-models/Muse-Glimmer-30B",
          name: "Muse Glimmer",
          reasoning: false,
          input: ["text", "image"],
          contextWindow: 32768,
          maxTokens: 8192
        }]
      }
    }
  },
  agents: {
    defaults: {
      model: { primary: "muse/meta-models/Muse-Glimmer-30B" }
    }
  }
}

重启 OpenClaw:

openclaw gateway restart

从新会话中验证:

openclaw agent --message "Reply with: muse-ready"

如果有所不同,请使用端点的 /v1/models 响应所返回的确切模型 ID。

嘿 Muse Glimmer,量化你自己

如果我们将 Muse Glimmer 连接到 Hugging Face MCP 并更新其 AGENTS.md,就能让它具备在 Hub 上查找自身量化版本并在本地运行的能力。如果你想处理私密内容,或只是想降低成本,这会很方便。

如果你再做一次,Muse Glimmer 会找到缓存的权重并切换过去,因此你可以随意添加一个方便的命令,例如 /spawn。

Muse Glimmer 会检查机器和 Hub,选择或创建 Q4_K_M GGUF,启动 llama-server,并验证模型发现和聊天补全。结果是一个位于与 OpenAI 兼容的 API 之后的更小本地构建。这是我们添加到 AGENTS.md 的提示词。

https://huggingface.co/buckets/huggingface/muse-glimmer-assets/resolve/Muse%20Glimmer%20Quantisation%20Demo%20-%20explained.mp4?download=true

将其添加到 AGENTS.md 后,openclaw 或 hermes 就能解决其余部分。

本地量化提示词

## Local model deployment

When asked to deploy locally, perform the work; do not give instructions.

1. Inspect hardware and the Hugging Face cache.
2. Search the Hub for compatible GGUF weights using `apps=llama.cpp`; confirm exact filenames through the model-tree API.
3. Prefer an existing suitable GGUF, normally `Q4_K_M`. Treat `mmproj-*.gguf` as projector weights.
4. If no GGUF exists, download the source weights, convert with `convert_hf_to_gguf.py`, then quantize with `llama-quantize`.
5. Preserve source weights and record the repository, revision, filenames, and quantization.
6. Start `llama-server` with an `onyx` alias and an OpenAI-compatible endpoint.
7. Validate `/v1/models` and `/v1/chat/completions`, requiring non-empty, correct content.
8. Report concise progress and logs. Claim completion only after validation passes.

嘿 Muse Glimmer,部署你自己

Muse Glimmer 也能处理相反的情况。让我们让 Glimmer 将自己部署到 Hugging Face Inference Endpoints。如果你想在一些前沿硬件上加速,这会很有用。

注意:你也可以直接部署 Muse Glimmer 到 Inference Endpoints 并连接你的智能体。

Muse Glimmer 会锁定模型 revision,将其部署到受保护的 Hugging Face Inference Endpoint,并验证健康状态、模型发现和聊天补全。然后它会在保留密钥和回滚的情况下连接 Claw 智能体。这是我们添加到 AGENTS.md 的提示词。Muse glimmer 还需要 Hugging Face MCP 和/或 Hugging Face CLI 和 Skills。

Inference Endpoint 部署提示词

## Hugging Face Inference Endpoint deployment

When asked to deploy on Hugging Face Inference Endpoints, perform the work; do
not give instructions.

1. Inspect Hugging Face authentication, the current model repository, and any
   existing endpoints.
2. Confirm the exact model repository and immutable revision through the Hub
   API; inspect its architecture, configuration, and chat template.
3. Confirm that the model is supported by vLLM, then deploy or update a
   protected Inference Endpoint using the managed native vLLM engine.
4. Choose an available region and the smallest suitable accelerator. Use one
   replica and enable scale-to-zero when supported.
5. Preserve the previous endpoint configuration for rollback. Do not expose
   tokens, publish private weights, or replace an unrelated endpoint.
6. Wait for the endpoint to become ready. If startup fails, inspect the logs
   and report the actual blocker rather than repeatedly changing settings.
7. Validate `/health`, `/v1/models`, and `/v1/chat/completions`, requiring the
   expected model and non-empty, correct content. When agent use is required,
   also validate a real structured tool call.
8. Configure the Claw agent to use the endpoint's OpenAI-compatible `/v1` URL,
   storing credentials as secrets and retaining the previous provider as
   rollback. Test the connection in a fresh session.
9. Report concise progress and finish with the repository, revision, engine,
   hardware, endpoint URL, scaling state, and validation results. Claim
   completion only after every required check passes.

嘿 Muse Glimmer,优化你自己

最后,让我们让 Muse Glimmer 做一些轻度 RSI。我们可以指示智能体针对特定硬件优化自己的推理引擎,这里是 Nvidia H100。为此,智能体需要使用另一个推理引擎,比如上面的 Inference Endpoints。

Muse Glimmer 会对自己的单 H100 服务栈进行基准测试,在保持工作负载不变的同时,每次测试一项可逆更改。它只保留通过正确性检验的收益,并以最快的可复现配置结束。这是我们添加到 AGENTS.md 的提示词。Muse glimmer 需要 Hugging Face MCP 和 Hugging Face CLI 和 Skills。

自我优化提示词

You are Muse Glimmer acting as an autonomous inference-optimization engineer for your own serving stack.

Goal: maximize valid single-H100 aggregate completion throughput in tokens/second.

Protocol:
1. Establish a correctness-passing baseline.
2. Test one reversible optimization at a time.
3. Keep the prompt, concurrency, sampling, request count, warm-up, and decode length fixed.
4. Reject results that fail correctness or prefix checks.
5. Record every experiment chronologically with its configuration, raw throughput, correctness, and delta.
6. Keep improvements and revert regressions.
7. Stop after six consecutive regressions or when the experiment budget is exhausted.
8. Report the best valid configuration and exact reproduction command.

Create a minimal scientific animation of the results:
- white background;
- raw tokens/second—never normalize;
- one point revealed per experiment;
- connect every point chronologically;
- begin with the lowest valid result;
- stop at the best result;
- export as a GIF.

Never fabricate, interpolate, or count correctness-failing measurements.

https://huggingface.co/buckets/huggingface/muse-glimmer-assets/resolve/onyx-optimization-progress.gif?download=true

嘿 Muse Glimmer,研究一下 Hub

试用 Muse Glimmer 作为 Hugging Face 研究代理。该 Gradio Space 通过其 OpenAI 兼容 API,将每个模型请求发送到私有的 Hugging Face Inference Endpoint。它还会连接到官方 Hugging Face MCP 服务器,为该代理提供只读工具,用于搜索和查看 Hub 仓库、模型、数据集、Spaces、文档和论文。

总结

我们很高兴欢迎 Muse Glimmer 加入 Hugging Face Hub。今天就在你的本地编程环境中试用 Muse Glimmer 吧!

来源:Hugging Face Blog · huggingface.co