Skip to main content
AI Tools•9 min read

GitHub Swapped Its LLM for a Smaller Model

October 27, 2026•By Ajan Kanagalingam

GitHub announced on October 13 that it had pulled the large language model out of its secret scanning pipeline and replaced it with a classifier built on ModernBERT. The job is checking repositories for credentials left in code. By GitHub's own measurements, the smaller model costs over 98% less to serve, runs considerably faster, and finds more while raising fewer false alarms.

What GitHub reports

MeasureChange vs the old pipeline
Cost to serve the modelMore than 98% lower
Median scan time86% shorter
PrecisionUp 13 points
RecallUp 19 points
Source of all figuresGitHub, internal, baseline model unnamed

The source of those figures deserves as much weight as the figures. These are GitHub's own numbers from GitHub's own traffic, the announcement does not say which model the old pipeline used, and nobody outside the company has reproduced them. Replacing a poorly optimised LLM setup with a well-tuned classifier would produce impressive figures too.

The direction is still credible, because it matches what the task looks like. Accepting the direction while holding the magnitude loosely is the right posture with any vendor-reported benchmark.

Why a classifier wins this one

Three properties make secret scanning the ideal case. The output is fixed: this string is a live credential, or it is a placeholder. The volume is enormous, since scanning covers the full history of every branch across every customer. And GitHub has an extraordinary quantity of labelled examples from years of running the service.

A general-purpose model asked that question brings reasoning capability, world knowledge and the ability to write an explanation, none of which the task needs, and you pay for all of it on every call. At a few thousand calls the overhead is invisible. At GitHub's volume it is the entire cost base.

The accuracy improvement is less surprising than it sounds. A model trained on one distinction, with millions of examples of that distinction, is simply better at it than a generalist reasoning about it from first principles.

The test for your own workloads

Three questions identify a candidate. Does the task have a fixed set of possible outputs rather than producing writing? Do you run it at high volume? Do you have a pile of historical examples that people already labelled by hand?

Yes to all three describes more business tasks than people expect. Routing support tickets to the right queue. Flagging invoices that need review. Sorting inbound email by type. Detecting duplicate records. Deciding whether a document is a contract, an invoice or a delivery note.

No to any of them, and a general model is the right choice. Writing a reply, handling an unusual case, anything needing knowledge beyond your own data. Forcing those into a classifier is the opposite mistake and it produces a system that fails silently on everything it was not trained for.

Scale decides whether it is worth it

A 98% reduction on a bill of forty dollars a month is not a project. Training, evaluating and maintaining a specialised model costs real engineering time, and that cost is fixed while the saving scales with volume.

Work out what the task costs you annually at current volumes and at the rate you expect to be paying, then compare that to a few weeks of work plus ongoing maintenance. Most small businesses will find the answer is no for now and yes for one specific high-volume workflow, which is the only one worth doing. Getting the cost per unit of work right first is the exercise in cash flow forecasting when AI costs are variable.

There is a middle option too. Moving a task from a frontier model to a cheaper general model is a configuration change rather than a project, and frequently captures a large share of the saving with none of the maintenance. That tiering approach is covered in the AI price war.

Read the credit model, not just the price

One practical detail from the same release matters for anyone budgeting. GitHub's AI-powered secret detection sits inside Secret Protection, priced per active committer, and the push-time checking now in limited preview consumes AI credits on every push, including when nothing is blocked.

A consumption line that accrues on normal activity rather than on findings is easy to miss at purchase and visible on the invoice, which is the pattern described in consumption pricing and unpredictable bills.

The useful generalisation

The last two years trained everyone to reach for the largest available model, because capability was the constraint and nothing else worked reliably. Capability stopped being the constraint on narrow tasks a while ago, and defaults are slower to change than capabilities.

The habit worth building is asking what the job actually requires before choosing what to run it on. For most businesses that is a question about a handful of high-volume workflows rather than a strategy, and it belongs in the same review as the security tooling you already pay for and the terms attached to it in what to check in AI terms of service.

Frequently Asked Questions

What did GitHub change?

On October 13, 2026, GitHub announced it had replaced the large language model pipeline behind its secret scanning with a classifier built on ModernBERT. Secret scanning checks repositories for credentials left in code, such as API keys and passwords. The new classifier labels a finding as a likely real secret or suppresses it as a placeholder or checksum, which is a narrow classification job rather than an open-ended one.

How much cheaper is it?

GitHub reports serving costs more than 98% lower, median scan time down 86%, precision up 13 points and recall up 19 points against its previous pipeline. Those are the company’s own figures, measured on its own traffic, and the announcement does not name which model the comparison was against. No independent party has replicated them, so treat the direction as credible and the exact magnitude as a vendor claim.

Why would a small model beat a large one here?

Because the task is narrow, high-volume and has abundant labelled examples. Deciding whether a string is a live credential or a placeholder is a classification with a fixed output, not a problem requiring reasoning or world knowledge. A model trained specifically on that distinction can be far smaller, which makes it cheaper and faster per call, and running it on a vast number of calls is where the saving compounds.

Which of our tasks could use a smaller model?

Look for high volume, a fixed set of outputs, and plenty of historical examples you already labelled by hand. Routing support tickets to a queue, flagging invoices for review, sorting inbound email by type and detecting duplicates all qualify. Tasks needing a written answer, judgment about an unusual case, or knowledge beyond your own data do not, and trying to force them into a classifier is the opposite error.

Does this mean we should stop using frontier models?

No. It means matching the tool to the task rather than defaulting to the largest option for everything. Frontier models remain the right choice for open-ended work, and they are an expensive way to answer a yes-or-no question several million times. Most businesses are nowhere near GitHub’s volume, so the saving is proportionally smaller, and the principle still applies to any job you run at scale.

Match the model to the job

We find the workloads where you are paying for capability the task does not need, and work out whether a cheaper model or a smaller one is the honest answer.

Related Articles

AI Tools

The Licence on Your AI Model Is a Business Decision

July 29, 2026Read more →
AI Tools

What Is OpenClaw? Multi-Model AI Agent Platform Explained

Feb 16, 2026Read more →
AI Tools

Meta's Muse Wants Your Shopify, Stripe and Inbox

October 19, 2026Read more →
AK
Ajan Kanagalingam
Founder & ChatGPT Consultant, ChatGPT.ca

Ajan leads the ChatGPT.ca team: 200+ custom GPT builds and automation projects for 50+ businesses across 20+ industries. Based in Markham, Ontario. PIPEDA-compliant solutions.

Stay ahead of AI in Canada

Weekly case studies, new tools, and ROI playbooks for Canadian SMEs. One email, zero spam.