Granite Switch 4.1 30B
π Read the launch blog: Granite Switch 4.1: Chat, Decisions, and Speech from One Endpoint
Model Summary: Granite Switch 4.1 30B is a modular LLM that composes a base model, multiple adapters and an encoder together so that a single hosted endpoint can move between natural-language responses, general and specialized decisions, and speech-to-text.
Adapters are activated on demand via control tokens in the chat template. For full details on model composition and adapter configuration, see BUILD.md [blocked].
- Base Model:
ibm-granite/granite-4.1-30b (30B params, 128K context)
- Adapters: 2 β
decision (aLoRA, general-purpose Decisions) and guardian-core (aLoRA, from granitelib-guardian-r1.0)
- Audio: embedded speech-to-text via
ibm-granite/granite-speech-5.0-470m-turboctc (470M params, English)
- License: Apache 2.0
- Release Date: October 14, 2026
- Backends: HuggingFace Transformers, vLLM
- Automatically Composed with: granite-switch
Granite Switch is also available in granite-switch-4.1-8b (same Chat + Decisions + Guardian + speech configuration, 8B base), and with the complete Granite Libraries bundle (no audio) in granite-switch-4.1-30b-preview, -8b-preview, and -3b-preview.
Included Adapters & Encoders
Speech-to-Text (Audio Input)
Transcription runs on the same endpoint as chat and decisions, so you don't need a separate speech server and how the model is called doesn't change. Incoming audio is transcribed by the embedded Granite Speech 5.0 TurboCTC model (470M params, English, non-autoregressive conformer CTC encoder), the fastest ASR model on the OpenASR Leaderboard . The transcript is spliced into the chat context in place of the audio content part. The speech encoder and the LLM are not yet jointly trained β there is no trained projection coupling them together yet; see docs/AUDIO.md in the granite-switch repo for the full design and limitations (English only, lowercase/unpunctuated output, no decode-time steering).
Decision Index (JEV) β decision aLoRA
The decision activated-LoRA adapter was evaluated on the public Decision Index fast subset (1,068
rows) in the edition-v0.3 scoring, using the adapter's documented invocation recipe: a fixed
decision-engine system prompt, a State: turn (run on the frozen base), and a ### DECISION turn
presenting the question and single-token-labelled options, with the first assistant token read as a
softmax over the option-label logits. Each configuration was measured two ways β the adapter served
locally and the same adapter served behind a hosted vLLM endpoint β which agree to within ~0.6 points,
confirming the serving path is faithful; hosted-serving numbers are shown below.
Scores are the Decision Index v0.3 public component (0β100); per-area skills are shown Γ100.
Generation
Recreating this checkpoint
This checkpoint is produced by composing the base model with guardian-core from the Guardian
library and decision from the Core library β --include-adapters drops every other adapter each
library ships β plus the ASR cascade (--enable-audio, default Granite Speech 5.0 TurboCTC):
See BUILD.md [blocked] for the exact adapter ranks/targets this checkpoint ships with, and the
adapter catalog for
every other adapter available to compose into your own checkpoint.
Using with Mellea
Mellea is the preferred way to run Granite Switch adapters in applications. It wraps every adapter in the Granite Libraries family (guardian, rag, core) as a direct operation instead of raw prompt engineering β see the full Mellea + Granite Switch guide for the complete set of intrinsics (e.g. policy_guardrails, factuality_detection, if composed into a checkpoint). Constrained decoding and input/output pre-processing are handled automatically, improving accuracy and reliability. The guardian_check call below works unchanged for guardian-core in this checkpoint.
decision is now part of Granite Libraries β it ships in granitelib-core-r1.0 β but has no Mellea intrinsic yet: use the low-level section below for it meanwhile. Mellea support for decision is planned and will later collapse it to a single call too. An Adapter SDK for training your own custom and third-party adapters in Mellea is planned.
Guardian core (safety detection)
See the mellea examples/ directory for more examples, including manual adapter loading.
Guardian and Decision, Side by Side
Both adapters live in one checkpoint, served by one running vLLM server. Activating either
one is a one-field difference on the request: extra_body={"chat_template_kwargs": {"adapter_name": ...}}. Start the server once:
Each adapter is read back the way its own training actually documents, not a one-size-fits-all trick:
decision β read its calibrated probability over the option labels
decision is trained to answer by gathering the logits of the single-token option labels and taking
their softmax β so ask the server for exactly those tokens' logprobs with logprob_token_ids (a vLLM
extension, passed via extra_body; it returns the logprob of exactly the ids you name, so a
low-probability option can't be missed the way asking for "top-K by probability" could β see vLLM's
SamplingParams.logprob_token_ids). The request itself is just two user turns β a state turn and a
question turn β with no system prompt: that keeps the state turn's tokens identical to a plain chat
request about the same state, so vLLM's prefix cache can share them instead of every decision request
paying for its own separate prefix:
Decisions with more than 128 options
decision reads its calibrated distribution by requesting per-token logprobs for the option labels
via the logprob_token_ids field above. vLLM caps that field at 128 token ids per request, so a single
decision question with more than 128 options returns HTTP 400: Requested logprob_token_ids of length N, which is greater than max allowed: 128.
To handle such questions, split the label ids into chunks of β€128 and issue one request per chunk with
the identical prompt. Because the returned logprobs are over the full vocabulary, each label's logprob
is independent of which chunk requested it, so the per-chunk results can be concatenated and a single
softmax applied over the complete label set β mathematically identical to an uncapped call, at the cost
of one extra request per 128 options:
guardian-core β read its yes/no verdict out of its JSON envelope
guardian-core always answers inside a fixed JSON shape, {"score": "yes"} or {"score": "no"} β
so decode normally and parse the JSON:
Or with curl (same JSON envelope on the way out; the same chat_template_kwargs field activates
decision instead):
Check Granite Switch for additional tutorials.
Model Artifacts:
Requirements:
How It Works
Granite Switch uses coarse-grained expert switching β one adapter is active across all layers for a contiguous span of tokens. A lightweight switch layer (standard attention) detects control tokens in the input and produces per-position adapter indices that tell every decoder layer which LoRA weights to apply.
Key properties:
- KV cache normalization β each adapter sees only the base model's KV cache, never another adapter's internal state
- No joint training β adapters are developed, tested, and published independently
- Single checkpoint β one file works with both HuggingFace and vLLM, no conversion needed
- Zero code changes β adapter selection happens entirely through the chat template
Model Architecture
Base Model
Adapter Activation
Each adapter is activated by passing its name to the chat template using an argument. The template inserts the appropriate control token automatically β callers just pass adapter_name.
Audio Input
asr_enabled: true in config.json (already set in this checkpoint) gates the speech-to-text cascade; see docs/AUDIO.md for the asr_* config fields that tune it.
Resources
Ethical Considerations and Limitations
This model inherits the safety profile of the base Granite 4.1 model. The embedded guardian-core adapter provides an additional safety layer but is not a substitute for application-level safety testing, and this checkpoint does not include the Guardian Library's factuality-detection, factuality-correction, or policy-guardrails adapters. Deployers should:
- Test adapter behavior on their specific use cases before production deployment
- Apply appropriate content filtering for their domain
- Monitor adapter outputs, especially for safety-critical applications
- Treat the
decision adapter's option probabilities as a prior to inform a decision, not a certified classification, on domains it wasn't trained for
The speech-to-text cascade has known limitations: it is English-only, produces lowercase/unpunctuated transcripts, and the ASR model is not fine-tuned jointly with the LLM or adapters β a mistranscription can silently change what the model (or an adapter) responds to.
License
Granite Switch has an Apache-2.0 license, as found in the LICENSE file.
Citation
See also: Activated LoRA: Fine-tuned LLMs for Intrinsics (NeurIPS 2025).