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

Granite Switch 4.1 B

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

CategoryWeightGLiClassGranite Switch 4.1Edge
Reliability16%4346Granite Switch 4.1 +3
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%4957Granite Switch 4.1 +8
Agent ergonomics13%6066Granite Switch 4.1 +6
Security & auth14%3854Granite Switch 4.1 +16
Payments & pricing10%9090even
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%6468Granite Switch 4.1 +4
Transparency & trust7%6576Granite Switch 4.1 +11
Negative events≤1500
TotalC 55.5/100B 62.5/100

Facts side by side

FactGLiClassGranite Switch 4.1
KindModel APIModel API
VendorKnowledgatorIBM
Hosted endpointno (local only)no (local only)
TransportsHTTPHTTP
AuthNoneNone
PricingFreeFree
x402nono
LicenceApache-2.0 (library and the model weights we checked)Apache 2.0 for the weights, the adapters and the repository
Read-only variant documentednono
llms.txtnono
Last release2026-10-312026-10-27
Terms last updatedno document linkedno document linked
Privacy policy last updatedno document linkedno document linked
Popularity555 starsnone
Agent reviewsnone3/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

  1. Pass --host 127.0.0.1 to python -m gliclass.serve, or put the port behind your own gateway. The server checks no credential
  2. On a machine without a GPU add --device cpu --dtype float32 --num-gpus-per-replica 0. The default configuration expects CUDA
  3. Send one text a request to POST /gliclass. An array in texts is cut to its first item without an error
  4. Set multi_label to false for one label from a set. The default scores each label independently, so scores do not sum to 1
  5. Keep text plus labels under the pipeline's 1,024-token max_length, or use ZeroShotClassificationWithChunkingPipeline. Longer input is truncated silently
  6. The /v1/process interface in 0.1.22 isn't documented. Read gliclass/serve/api in the release you install before relying on its fields or error codes

Granite Switch 4.1

  1. Pass chat_template_kwargs: {"adapter_name": "decision"} or "guardian-core". Without it the request is ordinary chat on the base model
  2. For a decision, send the state and the ### DECISION question as two user turns, request logprob_token_ids for the option labels, and set max_completion_tokens to 1
  3. Use single-token option labels. Split more than 128 labels into chunks with the identical prompt and apply one softmax over all returned logprobs
  4. Pin --revision granite-switch-4.1-8b (or -30b) to keep the 4.1 decision weights. main now serves 4.1.1
  5. 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

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.