去年春季推出的Granite Switch项目,为模型开发提供了一种模块化方法。如今,配备Decision适配器和OpenASR排行榜上最快ASR模型的Granite Switch 4.1系列模型,能够在一个托管端点内高效地在自然语言响应、通用及专用决策以及语音转文本任务之间切换。
具体而言,Granite-Switch-4.1-8B和-30B模型配置了以下内容:
用于通用决策(例如 v1/systemone)的新款Decision aLoRA;
一款专用的Guardian aLoRA,在安全相关的决策任务中,其平均表现优于Jev 1.13、Microsoft-Decision-1、GPT-Luna-Decisions和Clef-Flash;
以及Granite-Speech-5.0-Turbo-CTC,这是嵌入用于转录任务的OpenASR排行榜上最快的ASR模型。
这三种技术(连同底层基础模型)被组合成一个模型,在GPU上占用的VRAM量与单独的基础模型大致相同。这意味着用更少的GPU实现更多的功能。
由于Switch适配器是作为缓存高效的激活LoRA构建的,因此从基础模型生成中创建的KV缓存可以重复用于任何后续的基于适配器的决策。结合我们团队最近为加速低秩适配器推理所做的vLLM贡献,以及共置的ASR编码器,Granite Switch 4.1系列模型能够在聊天请求、决策请求和语音请求之间以惊人的速度进行切换。
查看我们的Speech-to-Decisions HF空间,其中granite-switch-4.1-8b转录音频、生成摘要、筛查有害内容并测试其他15个用户定义的标志——所有这些都实时运行在单个端点上。
Granite库:原始的决策模型
决策模型并非新鲜事物。我们之前发布的Granite Libraries包含一个专门的“决策模型”适配器仓库以及其他专门的任务适配器,这些适配器可以组合成定制的Granite Switch模型。虽然Jev和其他闭源决策模型侧重于通用性,但我们发现许多我们的专用granitelib适配器在专用分类任务上能超越通用模型。
在评估专用分类任务时,比较granitelib适配器与通用决策模型的表现。
由于适配器共享基础模型的KV缓存,在通用决策适配器旁添加专家适配器的成本几乎为零。你可以从通用模型获得广泛的覆盖范围,并从专家模型在你关注的任务中获得更高的准确率。
在Granite-Switch-4.1-30B(冻结的基础Granite + 4个专用aLoRA)与Jev-27B(冻结的基础Qwen模型 + 1个通用决策LoRA)之间的“竞赛”中,Granite-Switch-4.1-30B能够比竞争对手更快地完成一个真实的5步RAG工作流。
组合并扩展你自己的Granite Switch模型
Granite-Switch-4.1-8B和-30B以“自带电池”的形式发布。它们是我们使用预定义的一组有用适配器编译而成的Granite Switch模型。但你不需要使用我们的版本。任何人都可以组合自己的Granite Switch模型,通过混合搭配Granite Libraries中的适配器来最好地满足其需求。
展望未来,我们看到了社区利用自定义和第三方适配器组合和扩展Granite Switch模型的巨大机遇。我们计划发布一个用于在Mellea中训练适配器的Adapter SDK,以及其他教程和Granite Switch支持。这些适配器可以是用于增强基于决策的工作流的专用分类适配器,也可以是用于专门语言任务的适配器。你甚至可以使用自定义适配器来教30亿参数的Granite版本玩经典游戏《毁灭战士》(Doom)。
与Jev类似,我们定制的30亿参数Granite Switch模型也能在瞬间做出决策以驾驭《毁灭战士》游戏,但其决策速度可达每秒60至100次,而Jev的报告数据仅为每秒10次。¹ 与Jev不同的是,该Granite Switch模型在游戏过程中还能进行旁白解说并回答你的问题。
我们期待在未来几周内发布更多关于Granite Switch的详细信息和数据,但在此之前,我们鼓励你尝试我们最新的Switch模型以及以下其他入门帮助资源。
入门资源
脚注
1 https://typesafe.ai/blog/introducing-system-one-models-and-jve
Introduced last spring, the
Granite Switch project enables a modular approach to model development. Now
Granite Switch 4.1 models, armed with a Decision adapter and the fastest ASR model on the OpenASR leaderboard, can move efficiently between natural-language responses, general and specialized decisions, and speech-to-text tasks—all from one hosted endpoint.
Specifically, Granite-Switch-4.1-8B and -30B models are configured to include:
A new Decision aLoRA for general-purpose decision-making (e.g. v1/systemone),
A specialized Guardian aLoRA that, on average, outperforms Jev 1.13, Microsoft-Decision-1, GPT-Luna-Decisions, and Clef-Flash on safety-related decision tasks, and
Granite-Speech-5.0-Turbo-CTC , the fastest ASR model on the OpenASR Leaderboard , embedded for use in transcription tasks.
All three of these technologies (along with the underlying base model) are composed into one model, taking up approximately the same amount of VRAM on a GPU as the base model would by itself. That means more capabilities with fewer GPUs.
And because the Switch adapters were built as cache-efficient Activated LoRAs , the KV cache created from a base model generation can be reused for any subsequent adapter-based decisions. Combined with our team's recent vLLM contributions to speed up low rank adapter inferencing, as well as a co-located ASR encoder, Granite Switch 4.1 models can switch between a chat request and a decision request and a spoken request, with blazing fast speeds.
Check out our Speech-to-Decisions HF space where granite-switch-4.1-8b transcribes audio, generates summaries, screens for harmful content, and tests 15 other user-defined flags—all running on a single endpoint in real time.
Granite Libraries: The OG Decision Models
Decision models aren’t new. Our previous release of Granite Libraries features a repository of specialized “decision model” adapters and other specialized task adapters that can be composed into custom Granite Switch models. And while Jev and other closed decision models focus on generality, we’ve found that many of our specialized granitelib adapters can outperform generalists on specialized classification tasks.
Compare granitelib adapters with generalist decision models when evaluated on specialized classification tasks.
Because adapters share the base model's KV cache, adding specialists alongside a generalist decision adapter costs almost nothing. You get broad coverage from the generalist and higher accuracy from specialists on the tasks you care about.
In a “Race” between Granite-Switch-4.1-30B (frozen base Granite + 4 specialized aLoRAs) and Jev-27B (frozen base Qwen model + 1 generic decision LoRA), Granite-Switch-4.1-30B was able to complete a real world, 5-step RAG workflow much faster than its competitor.
Compose and Extend Your Own Granite Switch Model
Granite-Switch-4.1-8B and -30B are released with “batteries included”. They are Granite Switch models that we compiled with a predefined set of helpful adapters. But you don’t need to use our version. Anyone can compose their own Granite Switch model , mixing and matching adapters from Granite Libraries to best meet their needs.
Moving forward, we see tremendous opportunity for the community to compose and extend Granite Switch models with custom and third party adapters. We plan to release an Adapter SDK for training adapters in Mellea , along side other tutorials and Granite Switch support. These adapters could be specialized classification adapters to augment decision-based workflows or adapters for specialized language tasks. You could even use custom adapters to teach a 3B parameter version of Granite to play the classic game Doom.
Similarly to Jev, our custom 3B parameter Granite Switch model made split second decisions to navigate the Doom game, but was able to do so at 60 - 100 decisions / second, compared to Jev’s reported 10 decisions / second. 1 Unlike Jev, this Granite Switch model can also narrate and respond to your questions while it is playing.
We look forward to releasing more details and data on Granite Switch in the upcoming weeks, but until then, we encourage you to try out our latest Switch models and these other helpful resources for getting started.
Resources for Getting Started
Footnotes
1 https://typesafe.ai/blog/introducing-system-one-models-and-jev
首次收录 · 2026-10-16 · 10.89 分