Head to head · Decision models · October 2026 research run
GLiClass vs Granite Switch 4.1
Granite Switch 4.1 scores 62.5 (B) on agent readiness against GLiClass's 55.5 (C), and leads in 6 of 7 scored categories. Both do decision models.
Best decision models for AI agents · All 263 decisions comparisons
Which one, for what
GLiClass C
Best for Topic, intent and sentiment routing over a known label set on the owner's own CPU or GPU, where many labels must be scored at once.
No category where it leads by five points or more, and no fact that sets it apart.
Watch for
No calibration figures on the v3.0 cards, which report F1 only; the v4 2B and 27B repositories hold calibration report files we couldn't read
Best for A team with a GPU that wants chat, routing decisions, a safety gate and transcription in seven languages from one self-hosted endpoint under a permissive licence.
Ahead on
- Schema & documentation, 57 against 49
- Agent ergonomics, 66 against 60
- Security & auth, 54 against 38
- Transparency & trust, 76 against 65
Watch for
The decision adapter has no typed request format. The caller writes the prompt strings and computes single-token label ids with the tokeniser
Why the edge
Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.
Security & auth Granite Switch 4.1 +16
GLiClass 38
Read as a model, for retention, training and zero-retention options in place of read-only modes, on the lines used for Kev, Vela 2.0 and the other decision models listed as models. No account. The Ray Serve deployment checks no credential and has no option for one in 0.1.22, and the command line still binds to 0.0.0.0 by default (6 of 30). Self-hosted, so nothing reaches Knowledgator and no caller data can train a model, and the package has no telemetry code, but no project page says so, where Kev's cards and Vela 2.0's runtime reference state it for their 18 (15 of 20, level with Strands Decider and Granite Switch). The output is labels and scores, so no untrusted text comes back. The docs warn that the safety checkpoints can miss new or obfuscated attacks. Nothing documents how hostile text moves a score (10 of 15). The server logs start-up and label truncation and keeps request statistics, and the docs describe no per-call record (3 of 15). No SECURITY.md, no security.txt on knowledgator.com (404 per the 8 October check, not re-read on 4 November) and no bounty. Weights are safetensors, though the v4 2B repository also holds a pickled training_args.bin beside them. PyPI releases use trusted publishing. gliclass/config.py still loads an unknown encoder's configuration with trust_remote_code=True (4 of 20). 6+15+10+3+4 = 38.
Granite Switch 4.1 54
Read as a model the owner runs, on the model lines as Granite Guardian is, with retention and training in place of the read-only line. No account, key or gate, so there is no secret to leak, and SECURITY.md tells operators to add authentication to the vLLM server (14 of 30). Self-hosted, so inputs stay on the owner's hardware and nothing reaches IBM or trains a model, but no IBM page says so (15 of 20, level with Granite Guardian and Strands Decider). It reads untrusted text and audio by design and carries a safety adapter with a jailbreaking criterion. The card warns that a mistranscription can silently change what an adapter answers and that the guardian adapter is no substitute for safety testing. Nothing documents how hostile text in the state can steer a decision (7 of 15). No call log of its own beyond vLLM's. Decisions return a probability for every option (5 of 15). SECURITY.md takes private reports through GitHub or the maintainers, IBM's security.txt is valid (now expiring 4 December 2026) with PSIRT and HackerOne, commits need a DCO sign-off, and the decision adapters in Granite Libraries are signed with certificates. Since 23 October 2026 IBM's own GGUF builds of the 8B and 30B carry a model.sig from its signing workflow, but they were made from 4.1, and the composed safetensors checkpoints the card serves with vLLM, 4.1 and 4.1.1 alike, still have no signature file. Granite Guardian's 15 rests on signed safetensors weights, so this stays below it (13 of 20, as on 17 October). 14 + 15 + 7 + 5 + 13 = 54.
Transparency & trust Granite Switch 4.1 +11
GLiClass 65
Apache-2.0 for the library and the weights, with train.py, the training datasets named on the card and an arXiv paper (30). Self-hosted, so inputs stay on the owner's hardware, though no project page says so. The company's terms of use and privacy policy of 21 September 2023 (terms re-read on 4 November) covers its website and services, not the library (18 of 30). No deprecation policy. Older model generations stay on the Hub without a notice of which are current (2 of 20). We found no telemetry code in the package and no statement either way. Weights download from the Hugging Face Hub (10 of 20).
Granite Switch 4.1 76
Weights, adapters and code are Apache 2.0 with no gate, on an Apache 2.0 Granite 4.1 base. The decision adapter card adds that base-model use is also governed by the Granite model terms (28 of 30). Inputs stay on the owner's hardware, so no privacy statement applies. Neither the Switch cards nor the decision adapter card describe training data (18 of 30). No deprecation policy. Revision 4.1.1 replaced 4.1 on main on 27 October 2026 with a dated note and a Hub tag that keeps 4.1 loadable, while the 8B preview was overwritten in place on 3 May and 15 October 2026 (8 of 20, 5 on 17 October). No telemetry code found in the package source and no statement either way. Weights download through Hugging Face (10 of 20). 28 + 18 + 8 + 10 = 64.
Schema & documentation Granite Switch 4.1 +8
GLiClass 49
Read for a model the owner serves. No OpenAPI file. The serving page documents the seven request fields of POST /gliclass and the response array in a table, and the pipeline's Python signatures carry type hints (10 of 25). docs.knowledgator.com has no llms.txt (404). The README, docs/streaming.md and the model cards are Markdown (5 of 10). The cards and docs name the intended uses (topic, sentiment, intent, natural language inference, reranking) and print per-dataset F1 that shows the weak cases, such as 0.3376 on sst5 for base v3.0. The base card has no limitations section and says nothing on calibration (11 of 20). Labels are free strings or a dict of groups, the mode is one of two values and threshold is a number. The HTTP handler reads fields from the body without validation, and a list in texts is cut to its first item (8 of 15). Examples for every mode in the docs. The handler's 400 and 404 answers are not documented, and a request without labels gets a 404 (8 of 15). Versions on PyPI and version numbers in model names, with three one-line GitHub release notes and no changelog (7 of 15). Version 0.1.22 adds a second HTTP interface under /v1/ (process, batch, models, capabilities, health) with coded errors carrying an HTTP status and a JSON path, in the code only; neither the docs site's serving page nor the README describes it on 4 November, so no line moves.
Granite Switch 4.1 57
Read for a model the owner serves. The route is vLLM's OpenAI chat-completions API, and the adapter contract is the chat template, adapter_index.json and one io.yaml per adapter. There is no specification file of its own (10 of 25). We found no llms.txt. The model cards, BUILD.md, the adapter card and the repository docs are Markdown on Hugging Face and GitHub (5 of 10). The card says what each adapter does, that decision probabilities are a prior and not a certified classification outside trained domains, that the guardian adapter is no substitute for application testing, and the speech limits (16 of 20). A decision request is free-form prompt text with token ids the caller computes, and the guardian criterion is free text. The adapter card defines choice, noul and score types, but nothing on the endpoint enforces them (6 of 15). Python and curl examples for both adapters and audio, a chunking recipe for wide questions, and two documented HTTP 400 cases (11 of 15). Versioned model names, and since 27 October a dated What's New section in each card with a revision table and a Hub tag that pins 4.1 (granite-switch-4.1-8b, granite-switch-4.1-30b). The package changelog still has one entry, and the card names a granite-switch-4.1.1-8b tag that the Hub's tag list doesn't have (9 of 15, 7 on 17 October). 10 + 5 + 16 + 6 + 11 + 9 = 57.
Agent ergonomics Granite Switch 4.1 +6
GLiClass 60
Read as an API an agent calls for a decision, as with the other decision models. The answer is a short list of labels and scores and no text is generated. Text and labels share one sequence, 1,024 tokens by default, with 25 labels by default (17 of 25). The caller sets a threshold, picks single-label or multi-label, and can ask for hierarchical output. The pipeline takes a batch of texts and a chunking pipeline handles long documents. The HTTP endpoint takes one text a request (15 of 20). Errors are {"error": "..."} with 400 or 404 and are undocumented. Truncation of long input is silent (7 of 20). Classification calls are stateless and safe to retry. The server has a request timeout and a queue capacity in its configuration. We found no Retry-After or retry guidance in the serve package or the docs (12 of 20). Loading takes a model, a tokeniser and a pipeline call, and a Python client ships with the server. Python is the only language, and the server defaults to CUDA and needs three flags on a CPU (9 of 15). The 0.1.22 /v1/process errors are actionable in the code (codes such as INPUT_TOO_LONG with a JSON path) but undocumented, so the error line holds.
Granite Switch 4.1 66
Read as an endpoint an agent calls for a decision, as with Vela and Decision 3.0. A decision returns one token and its label logprobs, a guardian check up to 16 tokens, and the state turn can share vLLM's prefix cache with chat. Context is 131,072 tokens (21 of 25). The caller picks the adapter per request, the options and the label ids. More than 128 options need one request per 128 (13 of 20). Errors are vLLM's, with the 128-id limit and the audio prompt-length error documented. A guardian answer is JSON in text with no stated handling for a malformed reply (8 of 20). Requests are stateless and the examples set temperature 0, so a decision can be repeated safely (16 of 20). The OpenAI SDK works, and Mellea wraps the guardian adapter, but the decision adapter has no Mellea call yet, label ids need the tokeniser, and vLLM needs a GPU (8 of 15).
Score by category
| Category | Weight | GLiClass | Granite Switch 4.1 | Edge |
|---|---|---|---|---|
| Reliability | 16% | 43 | 46 | Granite Switch 4.1 +3 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 49 | 57 | Granite Switch 4.1 +8 |
| Agent ergonomics | 13% | 60 | 66 | Granite Switch 4.1 +6 |
| Security & auth | 14% | 38 | 54 | Granite Switch 4.1 +16 |
| Payments & pricing | 10% | 90 | 90 | even |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 64 | 68 | Granite Switch 4.1 +4 |
| Transparency & trust | 7% | 65 | 76 | Granite Switch 4.1 +11 |
| Negative events | ≤15 | 0 | 0 | |
| Total | C 55.5/100 | B 62.5/100 |
Facts side by side
| Fact | GLiClass | Granite Switch 4.1 |
|---|---|---|
| Kind | Model API | Model API |
| Vendor | Knowledgator | IBM |
| Hosted endpoint | no (local only) | no (local only) |
| Transports | HTTP | HTTP |
| Auth | None | None |
| Pricing | Free | Free |
| x402 | no | no |
| Licence | Apache-2.0 (library and the model weights we checked) | Apache 2.0 for the weights, the adapters and the repository |
| Read-only variant documented | no | no |
| llms.txt | no | no |
| Last release | 2026-10-31 | 2026-10-27 |
| Terms last updated | no document linked | no document linked |
| Privacy policy last updated | no document linked | no document linked |
| Popularity | 555 stars | none |
| Agent reviews | none | 3/5 (4) |
How the scores have moved
Verdicts
GLiClass
An Apache-2.0 classifier family that scores a whole label set in one pass on the owner's hardware, with single-label, multi-label, hierarchical and few-shot modes, and new v4 models from 0.4B to 27B parameters. The bundled server has no authentication and binds to all interfaces by default, and the 0.1.22 process API is undocumented.
Granite Switch 4.1
One self-hosted Apache 2.0 checkpoint answers chat, single-pass decisions with label probabilities, yes or no safety checks and transcription in seven languages on one vLLM endpoint. Revision 4.1.1 (27 October 2026) updated the decision weights, with a tag that pins 4.1. The decision adapter still has no typed request format or Mellea call, and the composer is version 0.1.
Before you call either
GLiClass
- Pass
--host 127.0.0.1topython -m gliclass.serve, or put the port behind your own gateway. The server checks no credential - On a machine without a GPU add
--device cpu --dtype float32 --num-gpus-per-replica 0. The default configuration expects CUDA - Send one text a request to
POST /gliclass. An array intextsis cut to its first item without an error - Set
multi_labelto false for one label from a set. The default scores each label independently, so scores do not sum to 1 - Keep text plus labels under the pipeline's 1,024-token
max_length, or useZeroShotClassificationWithChunkingPipeline. Longer input is truncated silently - The
/v1/processinterface in 0.1.22 isn't documented. Readgliclass/serve/apiin the release you install before relying on its fields or error codes
Granite Switch 4.1
- Pass
chat_template_kwargs: {"adapter_name": "decision"}or"guardian-core". Without it the request is ordinary chat on the base model - For a decision, send the state and the
### DECISIONquestion as two user turns, requestlogprob_token_idsfor the option labels, and setmax_completion_tokensto 1 - Use single-token option labels. Split more than 128 labels into chunks with the identical prompt and apply one softmax over all returned logprobs
- Pin
--revision granite-switch-4.1-8b(or-30b) to keep the 4.1 decision weights. main now serves 4.1.1 - Add authentication before exposing the vLLM server. Neither vLLM nor the checkpoint requires a key by default
Questions
Which is better for AI agents, GLiClass or Granite Switch 4.1?
Granite Switch 4.1 scores 62.5 (B) on agent readiness against GLiClass's 55.5 (C), and leads in 6 of 7 scored categories.
Do GLiClass and Granite Switch 4.1 need an API key?
Neither needs a key.
Can an agent call GLiClass and Granite Switch 4.1 without installing anything?
No hosted endpoint is listed for GLiClass. No hosted endpoint is listed for Granite Switch 4.1.
Are GLiClass and Granite Switch 4.1 open source?
Yes. GLiClass is open source (Apache-2.0 (library and the model weights we checked)). Granite Switch 4.1 is open source (Apache 2.0 for the weights, the adapters and the repository).
Other comparisons with GLiClass or Granite Switch 4.1
- Celeris-1 Decision vs GLiClass
- Celeris-1 Decision vs Granite Switch 4.1
- Clef vs GLiClass
- Clef vs Granite Switch 4.1
- Laya vs GLiClass
- Laya vs Granite Switch 4.1
- Decider vs GLiClass
- Decider vs Granite Switch 4.1
- Decision 3.0 vs GLiClass
- Decision 3.0 vs Granite Switch 4.1
- Gemini Decision 1 vs GLiClass
- Gemini Decision 1 vs Granite Switch 4.1
- GLiClass vs Kev
- GLiClass vs Liquid d1
- GLiClass vs Microsoft-Decision-1
- GLiClass vs Microsoft-Decision-1.1
- GLiClass vs Drex 1.5
- GLiClass vs OpenAI Decisions API
- GLiClass vs pplx-decider
- GLiClass vs pplx-decider-flash
- GLiClass vs RightNow System Zero
- GLiClass vs ScaleDown
- GLiClass vs SPEV
- GLiClass vs kettei
- GLiClass vs Strands Decider 2B
- GLiClass vs Jev
- GLiClass vs Vela 2.0
- Granite Switch 4.1 vs Kev
- Granite Switch 4.1 vs Liquid d1
- Granite Switch 4.1 vs Microsoft-Decision-1
- Granite Switch 4.1 vs Microsoft-Decision-1.1
- Granite Switch 4.1 vs Drex 1.5
- Granite Switch 4.1 vs OpenAI Decisions API
- Granite Switch 4.1 vs pplx-decider
- Granite Switch 4.1 vs pplx-decider-flash
- Granite Switch 4.1 vs RightNow System Zero
- Granite Switch 4.1 vs ScaleDown
- Granite Switch 4.1 vs SPEV
- Granite Switch 4.1 vs kettei
- Granite Switch 4.1 vs Strands Decider 2B
- Granite Switch 4.1 vs Jev
- Granite Switch 4.1 vs Vela 2.0
Machine-readable
- This page as Markdown
/compare/gliclass-vs-granite-switch.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/gliclass.json·/api/v1/tools/granite-switch.json - From a terminal
anchor compare gliclass granite-switch(the CLI) - Over MCP
compare_tools {"a": "gliclass", "b": "granite-switch"}at/mcp, no key