Skip to main content

Model reference — Documents

AI models for Text classification / tagging

Text classification sorts each piece of text into one of your own categories — a support ticket into a queue, an email into a risk band, a product review into a theme — and tagging attaches several labels to the same text where more than one applies.

There are two routes. A small purpose-built classifier is fitted to your categories using examples you already have; it is cheap to run, fast, and the most accurate option once a few hundred examples per category exist. A large language model classifies from a written description of each category with no examples at all, which is the practical answer when the categories are new or change often. Many deployments start on the second route and move to the first once labelled data has accumulated.

Text classification / tagging service AI models for documents

Input type — Documents

Models in this group take text or whole documents as input: plain text, PDFs, scanned pages and office files. Each specification table gives three hardware tiers — Minimum, the smallest setup on which the model runs correctly; Medium, the usual production configuration; and High, a configuration sized for peak volume. The rate is the number of sample inputs processed per hour on that hardware. Use these rates for initial sizing. Before production, benchmark your own data to validate accuracy, latency, throughput and cost. The sample input here is one document of about 500 words assigned to one or more categories.

DeBERTa v3

Vendor: Microsoft

What it does: a small classifier fitted to your categories from labelled examples. Among the most accurate models of its size on English text, and cheap enough to classify millions of documents a day.

RequirementMinimumMediumHigh
GPU typeRTX 3060RTX 40901× A100 80 GB
VRAM6 GB24 GB80 GB
vCPUs4824
RAM16 GB32 GB64 GB
Server1× RTX 3060 12 GB1× RTX 4090 24 GB1× A100 SXM 80 GB
Rate (documents/hour)≈ 20,000≈ 90,000≈ 260,000

RoBERTa

Vendor: Meta

What it does: a well-proven classifier of the same family, widely used and easy to fit. A dependable baseline against which any newer model should be measured.

RequirementMinimumMediumHigh
GPU typeRTX 3060RTX 40901× A100 80 GB
VRAM6 GB24 GB80 GB
vCPUs4824
RAM16 GB32 GB64 GB
Server1× RTX 3060 12 GB1× RTX 4090 24 GB1× A100 SXM 80 GB
Rate (documents/hour)≈ 24,000≈ 100,000≈ 300,000

XLM-RoBERTa

Vendor: Meta

What it does: the same approach trained across a hundred languages, so one fitted classifier handles text arriving in many languages without a separate model for each.

RequirementMinimumMediumHigh
GPU typeRTX 3060RTX 40901× A100 80 GB
VRAM8 GB24 GB80 GB
vCPUs6824
RAM16 GB32 GB64 GB
Server1× RTX 3060 12 GB1× RTX 4090 24 GB1× A100 SXM 80 GB
Rate (documents/hour)≈ 18,000≈ 80,000≈ 230,000

SetFit

Vendor: Hugging Face

What it does: fits a working classifier from as few as eight examples per category, which makes it the fastest way to get a new category live. Accuracy then improves as more labelled examples arrive.

RequirementMinimumMediumHigh
GPU typeRTX 3060RTX 40901× A100 80 GB
VRAM6 GB24 GB80 GB
vCPUs4824
RAM16 GB32 GB64 GB
Server1× RTX 3060 12 GB1× RTX 4090 24 GB1× A100 SXM 80 GB
Rate (documents/hour)≈ 22,000≈ 95,000≈ 280,000

BGE-M3

Vendor: Beijing Academy of Artificial Intelligence

What it does: turns each text into a numeric fingerprint that a simple classifier sits on top of. The advantage is that one fingerprinting pass serves classification, search and duplicate detection at the same time.

RequirementMinimumMediumHigh
GPU typeRTX 3060RTX 40901× A100 80 GB
VRAM8 GB24 GB80 GB
vCPUs61224
RAM16 GB32 GB64 GB
Server1× RTX 3060 12 GB1× RTX 4090 24 GB1× A100 SXM 80 GB
Rate (documents/hour)≈ 6,000≈ 30,000≈ 90,000

Llama 3.1 8B

Vendor: Meta

What it does: classifies from a written description of each category, with no labelled examples needed, and explains its choice. The practical route for categories that are new, numerous or still being argued about.

RequirementMinimumMediumHigh
GPU typeRTX 3090RTX 40901× H100 80 GB
VRAM16 GB24 GB80 GB
vCPUs81224
RAM32 GB48 GB128 GB
Server1× RTX 3090 24 GB1× RTX 4090 24 GB1× H100 SXM 80 GB
Rate (documents/hour)≈ 1,400≈ 4,000≈ 14,000

Mistral Small 3

Vendor: Mistral AI

What it does: the same instruction-driven approach with better handling of long documents and subtle category definitions, at a moderate cost per document.

RequirementMinimumMediumHigh
GPU typeRTX 40901× L40S 48 GB1× H100 80 GB
VRAM24 GB48 GB80 GB
vCPUs121632
RAM48 GB64 GB128 GB
Server1× RTX 4090 24 GB1× L40S 48 GB1× H100 SXM 80 GB
Rate (documents/hour)≈ 900≈ 2,600≈ 8,000

Choosing between them

The choice depends on how many categories you have, how stable they are and how much labelled text exists. Our consultants review your categories and your data, then recommend either a fitted classifier or a language model, and say what accuracy each will reach on your material.

At the start of a project we may run a short proof of concept on a sample of your own data, measuring the accuracy and the throughput the model actually achieves on your material. That replaces the estimates on this page with real figures, so the cost and the schedule for the full engagement are known before it is committed.

Text classification / tagging service AI models for documents Pricing

From benchmark to production

Share a representative sample, expected volume, latency target and deployment location for Text classification / tagging. We benchmark the shortlisted models, recommend the lowest-cost GPU configuration that meets the target, and scale it from pilot capacity to a dedicated production cluster.