bart large mnli
An open zero-shot classifier that labels text with the categories you name. facebook/bart-large-mnli
- Accuracy
67.1%
AG News, labelled correctly
- Time per request
Not timed one request at a time
- Serverless price
Call it
from sie_sdk import SIEClientclient = SIEClient("http://localhost:8080")result = client.extract( "modelfacebook/bart-large-mnli", {"text": "textThe renewal charged me twice but the receipt link is broken."}, labels=[ "labelbilling", "labelbug report", "labelfeature request", "labelaccount access", ],)print(result["classifications"])import { SIEClient } from '@superlinked/sie-sdk';
const client = new SIEClient('http://localhost:8080');
const result = await client.extract(
'facebook/bart-large-mnli',
{ text: "The renewal charged me twice but the receipt link is broken." },
{ labels: ["billing","bug report","feature request","account access"] },
);
console.log(result.classifications);curl http://localhost:8080/v1/extract/facebook%2Fbart-large-mnli \
-H "Content-Type: application/json" \
-d "{\"items\":[{\"text\":\"The renewal charged me twice but the receipt link is broken.\"}],\"params\":{\"labels\":[\"billing\",\"bug report\",\"feature request\",\"account access\"]}}"Build the "Classify" capability into my app using the Superlinked Inference Engine (SIE).
Context
- SIE is an OpenAI-style inference API. Python SDK: `from sie_sdk import SIEClient`; TypeScript: `@superlinked/sie-sdk`.
- Base URL: http://localhost:8080, my own SIE server, which takes no API key.
- Model: facebook/bart-large-mnli (SIE primitive: /extract). Keep the model id configurable.
Task
- Input: a block of text plus a set of candidate labels.
- Behaviour: return the best-matching label(s) with native scores
- Call the selected SIE primitive once per request and map the response into your domain type.
Deliverables
- A typed client wrapper, an application-level function for this task, error handling for timeouts/empty input, and unit tests with a stubbed client.
- Wire it into my existing stack (ask me which framework if unclear) and add a short usage example. Edit the code and run it live Sign up to run this example.
Get started no credit card required
Next to the other zero-shot classifiers
| Model | AG News, labelled correctly | Time per request | Serverless price | Size |
|---|---|---|---|---|
| bart large mnli facebook | 67.1% | Not timed | Run in your cloud | 407M |
| GLiNER2.5 Decide fastino | Not measured | 13.1 ms per message | $0.28 per 1M tokens | 486M |
| DeBERTa v3 large zero-shot MoritzLaurer | 88.6% | Not timed | $0.129 per 1M tokens | 435M |
| deberta v3 base zeroshot v2.0 MoritzLaurer | 88.1% | Not timed | Run in your cloud | 184M |
| ModernBERT base zeroshot v2.0 MoritzLaurer | 84.3% | Not timed | Run in your cloud | 150M |
Measured on public datasets
| Dataset | Accuracy |
|---|---|
| AG News (decision) Measured internally | 77.5% |
| AG News Measured internally | 67.1% |
| emotion Measured internally | 48.3% |
| Banking77 Measured internally | 46.8% |
Facts
- Size
- 407M parameters
- License
- MIT
- Reads
- Text, up to 512 tokens
- Endpoint
-
extract
Evaluation
- Accuracy
- Run on SIE against the public dataset named in each figure
- Time
- SIE timed on a GPU server with the client alongside, one request at a time
- Prices
- Serverless list prices, effective 10 Nov 2026
Run bart large mnli in your own cloud, or start on Serverless
SIE Serverless
We host the models; you call one API.
- No idle GPUs, pay for what you use
- Fits your stack: SDK, API, CLI, MCP
- Self-host the same open-source engine
- SOC 2 Type 2, US or EU data residency
- Create an account to try Serverless
SIE Cluster
Kubernetes in your own cloud, backed by our engineers.
- Terraform modules for your cloud
- Apache-2.0, same engine as Serverless
- GPU workers scale to zero between jobs
- Separate worker pools for each tenant
Agent prompt
Deploy SIE to our AWS account with the superlinked/sie/aws Terraform module. Docs: superlinked.com/docs/deployment.Deploy SIE to our Google Cloud project with the superlinked/sie/google Terraform module. Docs: superlinked.com/docs/deployment.Deploy SIE to our Azure subscription with the superlinked/sie/azure Terraform module. Docs: superlinked.com/docs/deployment.Deploy SIE to our Alibaba Cloud account with the superlinked/sie/alicloud Terraform module. Docs: superlinked.com/docs/deployment. SIE Local
The open-source server on your own machine.
- Runs on your NVIDIA GPU
- One container, no cluster
- Process your data fully offline
- Same SDK and model IDs as Serverless
docker run --gpus all -p 8080:8080 ghcr.io/superlinked/sie-server:latest-cuda12-default