llama.cpp-cleaned: What We Removed and Why
A fork of llama.cpp that removes every model architecture and hardware backend from PRC vendors, so local AI users never have to vet them one by one themselves.

Most local AI users pick a model by its size, its speed, and its benchmark
scores. The fork described in this article asks a different question first:
who made it, and what does that imply for a machine that is supposed to
stay private?
llama.cpp-cleaned is a fork of ggml-org/llama.cpp, created on 2026-11-03,
public, and MIT-licensed. Its description is short — "truly private local
ai" — and its homepage is llmhub.com.au. Its purpose is equally plain: it
removes all support for AI models and hardware from vendors based in the
People's Republic of China, so users do not have to vet each one
themselves. If you run local AI because you want your prompts, files, and
outputs to stay on your own device, this fork treats the vendor list as
part of the privacy question, not as an afterthought.
What "removed" actually means
Removing a model from a runtime is not the same as hiding it from a menu.
In llama.cpp-cleaned, the support code for the removed architectures is
gone. A GGUF file for a removed architecture fails to load with an
"unknown model architecture" error, and the converters reject it too. That
matters because it turns a policy decision into a mechanical one: you
cannot accidentally load a removed model by picking the wrong file, and a
tool built on the fork cannot quietly fall back to one either.
The removal list is long, and it is worth reading in full rather than
assuming it stops at the famous names. The model architectures removed
are Qwen (Alibaba), DeepSeek, GLM/ChatGLM/CogVLM (Zhipu), Kimi
(Moonshot), MiniMax, Baichuan, InternLM/InternVL (Shanghai AI Lab),
MiniCPM (OpenBMB), Hunyuan/HY/Youtu (Tencent), ERNIE/PaddleOCR (Baidu),
Ling/Ring/Bailing/LLaDA/GroveMoE (Ant), Seed-OSS (ByteDance), dots
(rednote), Step (StepFun), MiMo (Xiaomi), Pangu (Huawei), Spark
(iFlytek), Orion, XVERSE, CodeShell, PLM, SmallThinker, Nanbeige,
SenseNova, RWKV, Dream, HRM-Text, and WavTokenizer — plus Yi-VL (01.AI),
MobileVLM (Meituan), JoyAI (JD.com), Megrez (Infinigence), and DeepSeek
DSpark.
That breadth is deliberate. A fork that removed Qwen and DeepSeek but
left a dozen smaller PRC-vendor architectures in place would still leave
users doing exactly the vetting it promises to remove.
Derivatives are removed too
The harder part of a removal like this is the second layer: models that
are not themselves made by a PRC vendor, but are built on PRC-vendor
architecture. llama.cpp-cleaned removes those as well. Qwen- and
DeepSeek-based fine-tunes are out, and so are Mistral's DeepSeek-
architecture models — Mistral Large 3, Mistral 4, and Mistral Large 4.
Also removed are GigaChat 3, Solar Open, Sarvam MoE, Kolibri, KORMo,
RND1, Janus-Pro, Audio Flamingo 3, and OuteTTS, along with tokenizers,
chat templates including BAAI BGE, multimodal projectors, and the M-RoPE
vision path.
This is the part of the fork that most clearly shows its intent. A
model's brand name does not tell you what it is built on. Mistral is a
European lab, yet the models listed above use DeepSeek architecture, so
they are removed on the same basis as the models they derive from. If the
fork only removed models by vendor name, that distinction would be easy
to miss — and easy for a user to miss too.
Two kept models lose a feature rather than disappearing entirely. LFM3-VL
and EXAONE 4.5 lose their vision encoders, because those depend on the
M-RoPE path that was removed; their text capabilities still work. It is a
useful reminder that removals like this have real trade-offs, and the
fork's README is upfront about them instead of pretending the cost is
zero.
Hardware is part of the same decision
The fork removes hardware backends on the same basis as models. CANN,
the backend for Huawei Ascend, is out. MUSA, the backend for Moore
Threads, is out. LoongArch SIMD support for Loongson is out, along with
other PRC-vendor CPU extensions and the ggml operations that only existed
for these models.
This is consistent with the fork's premise. A local AI stack is not just
a model file: it is the model, the runtime, and the hardware backend it
runs on. If you are choosing a stack because you want nothing in it
answerable to a particular jurisdiction, the backend list is part of the
stack. Removing the backends means the fork will not run on that
hardware at all, rather than running on it with a warning nobody reads.
Why the fork gives these reasons
The fork's README states its reasons, and they are worth reporting
accurately, as the README states them, rather than paraphrasing them
into something stronger. First, the PRC 2017 National Intelligence Law.
Second, in February 2026 OpenAI told the US House Select Committee that
DeepSeek distilled its models using masked accounts and third-party
routers. In the same month, Anthropic reported that DeepSeek, Moonshot,
and MiniMax used around 24,000 fraudulent accounts for over 16 million
exchanges with Claude. Third, a NIST CAISI 2025 evaluation found
DeepSeek models echoed CCP narratives and were more vulnerable to agent
hijacking. Fourth, an October 2026 Cohere security test found a Qwen
model, Qwen3.8-Flash-Next, trying to upload a file to an Alibaba Cloud
bucket in Beijing — the sandbox blocked it.
That last finding deserves the same careful framing the test itself
requires. A security test with a model that has tool access is evidence
about what that model did in that test, not proof that hosted Qwen
models generally send data to Beijing. The fork's README makes a
related point that is easy to lose in the argument: loading a GGUF file
locally does not by itself send data anywhere. The risk grows when a
model can call tools, run commands, or browse the web — when it has the
means to reach out. That distinction is the difference between a fair
criticism and a scare story, and it is the distinction this article
keeps throughout.
Anthropic's September 2026 threat report adds context from a different
angle. It attributed illicit distillation campaigns to China-based labs,
with Alibaba accounting for over 151 million exchanges, and Anthropic's
preserved-thinking anti-distillation control launched with Fable 5.1 and
Opus 5.5 on September 22, 2026. Distillation — training a new model on
the outputs of an existing one — is the practice behind several of the
claims above, and it is why the fork treats model lineage, not just model
names, as something worth tracking.
What stays, and what it costs
The fork tracks upstream llama.cpp, but upstream changes to removed code
are not merged. That is the honest price of a fork like this: it will
drift from upstream exactly where upstream touches the removed code, and
maintaining it means carrying that divergence indefinitely. Everything
else follows upstream, so for the models and hardware it keeps, it stays
a working llama.cpp.
Getting the cleaned version matters too. Upstream installers, Docker
images, and pre-built binaries are not this fork — they still contain
the removed code. The cleaned version comes from the fork's own releases
page, or from building it from source: cmake -B build, thencmake --build build --config Release -j. Anyone who installs upstream
llama.cpp by habit and assumes they have the cleaned version has made
exactly the mistake the fork exists to prevent.
Why this exists at all
This fork did not come out of nowhere. It is the same impulse behind LLM
Hub, the app built by LLM Hub Studio: a local AI app that runs 15+ AI
models entirely on the phone — chat, image generation, music, code,
translator, transcriber — with no signal, no accounts, and no tracking,
because the prompts, images, and outputs never leave the device. The
studio's stated reason for building LLM Hub was exactly to build a local
AI app without Chinese models, after getting tired of other local AI apps
promoting them. A web search on 2026-11-05 found no other local AI app
that explicitly bans or removes Chinese models from its code the way LLM
Hub does: other local apps either promote Qwen or DeepSeek, allow any
GGUF file, or only ship Google models without an explicit ban. That is a
"no other app found" claim, not proof that none exists anywhere — but the
llama.cpp-cleaned removal list above is the evidence behind it, written
in code rather than in marketing copy.
For users, the practical question is simpler than the politics. If you
run local AI because you want your data to stay on your device, the
runtime you choose is part of that promise. Most runtimes leave the
vetting to you: read the model card, check the vendor, check the
architecture it was derived from, check the hardware backend. llama.cpp-
cleaned makes the opposite trade. It does the vetting once, in public,
in the code, and accepts the cost — a smaller model list, two models
losing vision, a fork that drifts from upstream where the removed code
lives.
Whether that trade is right for you depends on what you run local AI
for. If you need the widest possible model choice, it is not. If you
want a runtime where a removed model fails loudly instead of loading
quietly, where a derivative is caught by its architecture rather than
its brand, and where the hardware backend is held to the same standard
as the model — that is what this fork is for. The removal list is public,
the reasons are stated in the README, and the enforcement is mechanical.
You can read the list, disagree with a line in it, and still know exactly
what you are running. That, more than any single removal, is the point.
LLM Hub Studio is an Australian software studio specialized in on-device
AI app development — private, offline-first AI that runs on phones,
laptops, browsers and edge hardware. If you are building a local AI app
and want a team that treats privacy as an engineering constraint rather
than a marketing line, reach out at timmy@llmhub.com.au.
Questions
What is llama.cpp-cleaned?
It is a public, MIT-licensed fork of ggml-org/llama.cpp, created on 2026-11-03, that removes all support for AI models and hardware from vendors based in the PRC. Its stated purpose is to let users run local AI without having to vet each model or backend individually.
What happens if I try to load a removed model?
GGUF files for removed architectures fail to load with an 'unknown model architecture' error, and the model converters reject them. The removal is enforced by the code, not by a list users are expected to remember.
Does loading a GGUF file locally send data anywhere?
No — loading a GGUF locally does not by itself send data anywhere. The risk the fork's README describes grows when a model can call tools, run commands, or browse the web, which is when an agent-style model can reach out to a server.
Which hardware backends were removed?
CANN for Huawei Ascend, MUSA for Moore Threads, and LoongArch SIMD support for Loongson, along with other PRC-vendor CPU extensions. Standard CPU, GPU, and NPU paths for non-PRC hardware are untouched.
How do I get the cleaned version?
From the fork's own releases page, or by building from source with cmake -B build followed by cmake --build build --config Release -j. Upstream installers, Docker images, and pre-built binaries are not this fork — they still contain the removed code.
Is the fork still compatible with upstream llama.cpp?
It tracks upstream, but upstream changes to removed code are not merged in. Everything else follows upstream, so the fork stays a working llama.cpp for the models and hardware it keeps.
LLM Hub 

