How to run abliterated models locally with Ollama, llama.cpp and LM Studio

Run abliterated models locally with Ollama, llama.cpp or LM Studio: exact commands, GGUF sizes and memory per quantization, and which models need a server.

Updated LocalOllamaGGUFAbliteratedSelf-hosting

Quick answer

Running an abliterated model locally means loading a quantized GGUF copy of an open-weight abliterated model in Ollama, llama.cpp or LM Studio. A 9B build at Q4_K_M is a 5.6 GB file; Hugging Face lists 5,137 abliterated GGUF repositories (checked 2026-12-01). Frontier MoE models need servers: Kimi K3.1 Pro's smallest GGUF is 593 GB. Abliterator's two hosted models have no downloadable weights.

Running abliterated models locally in one paragraph

To run an abliterated model locally you need three things: a quantized file of an open-weight abliterated model, a runtime that loads it, and enough memory for the file plus its context cache. The file is usually a GGUF. Hugging Face lists 5,137 repositories that match "abliterated" and carry GGUF files, and Ollama's model search returns 386 results for the same word (both checked 2026-12-01). A 9B model at 4-bit is a 5.6 GB file, small enough for an 8 GB GPU with a modest context. Frontier mixture-of-experts (MoE) models are a different class: Kimi K3.1 Pro has 2.8 trillion parameters, and its smallest GGUF is 593 GB. The two models Abliterator serves can't be run locally at all, because their weights are not released.

Three runtimes cover almost every local setup. All three expose an OpenAI-compatible Chat Completions endpoint, so code you write against one works against the others.

Ollama llama.cpp LM Studio
What it is App and CLI that pulls models by name C/C++ inference engine with a CLI and an HTTP server Desktop app with a Hugging Face browser, plus the lms CLI
Get an abliterated model ollama run huihui_ai/<model>:<tag> or ollama run hf.co/<user>/<repo>:<quant> llama serve -hf <user>/<repo>:<quant> Discover tab: paste <user>/<repo>
Formats Ollama library, any Hugging Face GGUF GGUF GGUF, and MLX on Apple Silicon
Local endpoint http://localhost:11434/v1 http://localhost:<port>/v1 http://localhost:1234/v1
Version checked v0.40.19, released 2026-11-26 v1.1.0, released 2026-11-26 Docs as of 2026-10-20

To choose a build by quality, start with our catalog of 24 abliterated models, which lists what each card measured. This page covers getting one running.

What an abliterated GGUF is

An abliterated GGUF is an abliterated model saved in GGUF, the single-file format of llama.cpp, almost always quantized to fewer bits per weight. Per Hugging Face's GGUF docs, GGUF stores the tensors and a standard set of metadata, including the chat template the runtime applies to every request. The quantization name in the file sets its size. The same docs give Q4_K at 4.5 bits per weight, Q6_K at 6.5625 and IQ1_S at 1.56. In practice Q4_K_M mixes types and lands near 4.9 bits: Llama 3.1 8B abliterated, with 8.03 billion parameters, is a 4.92 GB file at Q4_K_M.

Most abliterated GGUFs are conversions by third parties. Of the 5,137 GGUF repositories, 2,091 come from one uploader, mradermacher, who quantizes other people's builds. Hugging Face also lists 1,048 abliterated repositories in Apple's MLX format, which LM Studio runs on Apple Silicon.

How much memory you need

You need memory for the model file, for the context cache, and some headroom for the runtime and your operating system. The file is fixed once you pick a quantization. The cache grows with the context length you allocate, and on long contexts it can outgrow the file.

File sizes of common abliterated builds

These are the files as listed on Hugging Face and Ollama on 2026-12-01. Ollama rounds to whole gigabytes above 10 GB.

Build Parameters 4-bit file 8-bit file Source
huihui_ai/qwen3.5-abliterated:4B 4B 3.3 GB 5.2 GB Ollama
mlabonne/Meta-Llama-3.1-8B-Instruct-abliterated-GGUF 8B 4.92 GB (Q4_K_M) 8.54 GB Hugging Face
mradermacher/Huihui-Qwen3.5-9B-abliterated-GGUF 9B 5.63 GB (Q4_K_M) 9.53 GB Hugging Face
huihui_ai/gpt-oss-abliterated:20b 20B 14 GB (MXFP4, default tag) 22 GB Ollama
huihui-ai/Huihui-Qwen3.8-27B-abliterated-GGUF 27B 16.81 GB (Q4_K) 29.05 GB Hugging Face
huihui-ai/Huihui-Qwen3.6-35B-A3B-abliterated-MTP-GGUF 35B, MoE 21.71 GB (Q4_K) 37.80 GB Hugging Face
bartowski/Llama-3.3-70B-Instruct-abliterated-GGUF 70B 42.52 GB (Q4_K_M) 74.98 GB Hugging Face
huihui_ai/gpt-oss-abliterated:120b 120B 88 GB (q4_K_M) 124 GB Ollama

Read the table as tiers. An 8 GB GPU holds a 4B to 9B model at 4-bit. A 16 GB card holds a 9B model at 8-bit, or a 20B model at 4-bit with a short context. A 24 GB card holds a 27B to 35B model at 4-bit. A 70B model at 4-bit needs about 48 GB, and gpt-oss-120b needs a 96 GB or 128 GB unified-memory machine. If a model doesn't fit in GPU memory, all three runtimes can put some layers on the CPU, which runs slower.

The context cache

The context cache, also called the KV cache, stores a key and a value vector for every layer and key-value head, for every token in the context. For a standard attention model at 16-bit precision, it takes 2 × layers × key-value heads × head size × 2 bytes per token. From each model's config.json:

Model Cache per token 8K context 32K context 128K context
Llama 3.1 8B (32 layers, 8 KV heads, head size 128) 128 KiB 1 GiB 4 GiB 16 GiB
Llama 3.3 70B (80 layers, 8 KV heads, head size 128) 320 KiB 2.5 GiB 10 GiB 40 GiB

So Llama 3.1 8B abliterated at Q4_K_M needs about 6 GB at 8K context and about 22 GB at its full 128K. Architectures with sliding-window or linear-attention layers cache less per token, so for those, measure the real footprint: ollama ps shows the loaded size and context, and lms load --estimate-only prints an estimate before LM Studio loads anything.

Each runtime picks a default context differently:

  • Ollama sizes it by GPU memory, per its context-length docs: 4K tokens under 24 GiB of VRAM, 32K from 24 to 48 GiB, 256K at 48 GiB or more. On a GPU under 24 GiB, a model gets 4K tokens of context unless you raise it.
  • llama.cpp defaults -c to 0, which means the model's own trained context. On a model trained for 256K, that reserves a large cache, so set -c to what you need.
  • LM Studio takes --context-length when you load a model from the CLI, or a slider in the app.

Run an abliterated model with Ollama

Ollama is the shortest path: install it, then ollama run a model by name. Abliterated models live in user namespaces rather than Ollama's official library, and huihui_ai publishes the most. Its profile lists 101 models, and 86 of the 386 search results for "abliterated" are its uploads.

Install Ollama from ollama.com/download on macOS 14 or newer and Windows. On Linux, the install docs use:

curl -fsSL https://ollama.com/install.sh | sh

Then pull and chat with a model. The tag after the colon picks the size and quantization:

ollama run huihui_ai/qwen3.5-abliterated:9b

The most pulled abliterated models on Ollama, checked 2026-12-01:

Model Pulls Tags and sizes Input
huihui_ai/gemma-4-abliterated 1.5M e4b 9.6 GB (6.3 GB QAT), 12b 7.6 GB, 31b 20 GB, 48b 33 GB Text, image
huihui_ai/qwen3.5-abliterated 792.2K 0.8B 1.0 GB, 4B 3.3 GB, 9b 6.6 GB, 27b 17 GB, 122B 81 GB Text, image
huihui_ai/Qwen3.8-abliterated 514.5K 27b 18 GB (q4_K_M) Text, image
huihui_ai/gpt-oss-abliterated 455.9K 20b 14 GB, 120b 88 GB Text
huihui_ai/Qwen3.6-abliterated 429.1K 27b 17 GB, 35b 24 GB Text, image
huihui_ai/glm-4.7-flash-abliterated 340.7K q4_K 19 GB Text
huihui_ai/llama3.3-abliterated 64K 70b 43 GB (q4_K_M) Text

To run any GGUF from Hugging Face instead, prefix the repository with hf.co/. Per the Hugging Face Ollama guide, Ollama picks Q4_K_M when the repository has it, and the quantization tag is case-insensitive:

ollama run hf.co/mradermacher/Huihui-Qwen3.5-9B-abliterated-GGUF:Q4_K_M

Three settings matter after that:

  • Context. Raise the default for the whole server with OLLAMA_CONTEXT_LENGTH, then check what loaded with ollama ps:

    OLLAMA_CONTEXT_LENGTH=32768 ollama serve
    
  • Local-only mode. Ollama also runs cloud models. Set OLLAMA_NO_CLOUD=1, or "disable_ollama_cloud": true in ~/.ollama/server.json, and Ollama logs Ollama cloud disabled: true (FAQ).

  • The API. Any OpenAI client works against http://localhost:11434/v1; it needs an API key value, which Ollama ignores (OpenAI compatibility docs).

Watch for the cloud badge on search results. Per Ollama's cloud docs, cloud models run "on Ollama's cloud service" and need an Ollama account. Some community entries with "uncensored" in the name carry that badge. One we checked was 855 bytes in total. A file that small holds no weights: it runs a model on Ollama's servers, and your prompts go there.

Run an abliterated GGUF with llama.cpp

llama.cpp downloads a GGUF from Hugging Face and serves it with one command, and every memory setting is a flag. Current releases install a single llama command with subcommands such as llama cli and llama serve. Install it with Homebrew, which ships 1.1.0, or with the project's installer from the README:

brew install llama.cpp
curl -LsSf https://llama.app/install.sh | sh

Chat in the terminal:

llama cli -hf mradermacher/Huihui-Qwen3.5-9B-abliterated-GGUF:Q4_K_M

Or start an OpenAI-compatible server with a 32K context:

llama serve -hf mradermacher/Huihui-Qwen3.5-9B-abliterated-GGUF:Q4_K_M -c 32768 --port 8080

Then call it like any Chat Completions API:

curl http://localhost:8080/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{"messages": [{"role": "user", "content": "How do I kill a Python process that ignores SIGTERM on Linux?"}]}'

What the server README says about these flags, checked 2026-12-01:

  • -hf takes <user>/<model>[:quant]. Without a quant it uses Q4_K_M, or the first file in the repository if there is no Q4_K_M. It also downloads a vision projector (mmproj) when the repository has one; add --no-mmproj to skip it.

  • -hff names an exact file and overrides the quant. Use it when a repository's names don't follow the usual pattern. huihui-ai's Qwen3.8-27B repository, for example, has a plain Q4_K file and several Q4_K_M variants:

    llama serve -hf huihui-ai/Huihui-Qwen3.8-27B-abliterated-GGUF -hff Huihui-Qwen3.8-27B-abliterated-Q4_K.gguf -c 32768 --port 8080
    
  • --port: without it, the server listens on 127.0.0.1:9931. The same server is also installed as llama-server, the name most older guides use.

  • -ngl sets how many layers go to the GPU: a number, auto (the default) or all.

Run an abliterated model in LM Studio

LM Studio is the option without a terminal: search for the repository in the app, download a quantization and chat. Per its system requirements, it needs an Apple Silicon Mac on macOS 14 or newer (16 GB of RAM recommended), Windows on x64 with AVX2 or on ARM (16 GB of RAM and 4 GB of VRAM recommended), or Linux as an AppImage. Intel Macs are not supported.

  1. Open the Discover tab (⌘2 on Mac, Ctrl+2 on Windows and Linux) and paste a repository name such as mradermacher/Huihui-Qwen3.5-9B-abliterated-GGUF. The search box also accepts a full Hugging Face URL.
  2. Pick a quantization. LM Studio's guide says to "choose a 4-bit option or higher" if your machine can run it.
  3. On Apple Silicon, MLX builds appear next to GGUF ones. lms get --mlx and lms get --gguf filter the CLI search by format.

The lms CLI covers the rest. Without a model argument, lms load asks you to pick one you have downloaded (lms load docs):

lms load --estimate-only
lms load --context-length 16384
lms server start

The server speaks the OpenAI API at http://localhost:1234/v1.

Check the file before you rely on it

An abliterated GGUF is usually someone else's conversion of someone else's edit, so the numbers on a model card may not describe the file you run. Four checks catch most problems:

  • The name. huihui_ai/deepseek-r1-abliterated has 776.2K pulls, and its tags say what it is: Qwen- and Llama-based distills from 1.5B to 70B, not the full DeepSeek R1 model. A community upload named deepseek-v4.1-flash-1017 offers 9b and 27b tags of 5.6 GB and 17 GB, which its description calls compact and large editions. DeepSeek V4.1 Flash has 552B parameters, so those files are a different, much smaller model. Check the parameter count and the base_model field before you trust the name.
  • The measurements. Refusal and drift numbers on a card were measured on the uploader's weights with the uploader's prompts. Re-run your own prompts on the exact quantization you use. Our catalog lists what each card reports.
  • The chat template. GGUF metadata includes the chat template, and the runtime renders it on every request. Diff it against the base model's template.
  • The license. Abliteration doesn't change the license. The Hugging Face API lists llama3.1 for mlabonne's Llama 3.1 GGUF, apache-2.0 for huihui-ai's Qwen GGUFs and mit for the DeepSeek V4.1 Flash builds.

Our vetting checklist has scripts for hash pinning and template diffs. Abliterated vs Heretic explains the "3/100" and KL lines you will see on cards.

Frontier MoE models that don't fit on a desktop

Frontier MoE models need server-class memory, abliterated or not, with one 1-bit exception for DeepSeek V4.1 Flash. A mixture-of-experts model activates a few experts per token, but every expert has to sit in memory, so the active parameter count sets the speed and the total sets the memory. Kimi K3.1 Pro and DeepSeek V4.1 Flash, the bases of Abliterator's two models, show the gap:

Kimi K3.1 Pro DeepSeek V4.1 Flash
Total parameters 2.8T (model card) 552B backbone, plus 196B of Engram conditional memory (model card)
Active per token 104B 8B in prefill, 16B in decode
Context 1,048,576 tokens 1M tokens
Official checkpoint 1,561 GB, MXFP4 weights from quantization-aware training 510 GB for the 1017 release, FP8 with FP4 experts
Smallest general GGUF we found 592.7 GB at about 1.7 bits per weight; its card targets one 8×H100 node 233 GB at 1-bit (UD-IQ1_S), needs llama.cpp build b11870 or newer
Abliterated builds we found 1.56 TB of safetensors; an 830 GB GGUF GGUFs from 233 GB; a 1-bit build for the ds4 engine
Ollama's official library kimi-k3.1-pro: cloud tag only deepseek-v4.1-flash: cloud tags only

Sizes are from the Hugging Face API and Ollama's tag pages, checked 2026-12-01.

Kimi K3.1 Pro has no desktop path. Even KarLexAI's 1.7-bit GGUF is 592.7 GB. Its card reports the model fully loaded on one 8×H100 node, generating 19 tokens per second with a 131K context. The abliterated builds are larger: moeadham's edit is the full 1.56 TB checkpoint, and an IQ2_XXS GGUF published with the same card is 830 GB. A community Ollama upload of the original model is 1.6 TB. ollama run kimi-k3.1-pro:cloud works on a laptop once you sign in, because it runs on Ollama's servers.

DeepSeek V4.1 Flash fits a 128 GB Mac only with a special build. huihui-ai's abliterated GGUF starts at 233 GB, so the file alone is larger than a 128 GB machine's memory. audreyt's 1-bit build of pqhaz's Heretic edit targets one 128 GB Mac. Its card says the files are not general GGUFs: they need a fork of ds4, antirez's inference engine for DeepSeek V4 models, so they are not for Ollama, llama.cpp or LM Studio. Each file is 365.7 GB on disk. About 107 GiB stays in memory, and the two Engram tables, about 189 GiB, are read from the SSD as needed. The card reports about 37 tokens per second, from one sample on a 128 GB M5 Max, for the same quantization before the edit. Context allocations up to 262,144 tokens passed, though the card notes this was not a full-depth test.

The full models at native precision are a server job: see our self-hosting comparison for the 8-GPU serving recipes and the break-even math.

When an API makes more sense

Use an API when the model you want doesn't fit your hardware, when traffic is bursty, or when you want measured results instead of testing a build yourself. Run locally when prompts must stay on your machine, when you work offline, or when you want to pin one file and run it at no per-token cost.

Abliterator's model weights are not downloadable. The Hugging Face repositories for Kimi K3.1 Pro Abliterated and DeepSeek V4.1 Flash Abliterated contain a model card and a banner image, and both say "The weights are not released." No Ollama tag, GGUF or MLX file of these two models exists from us. A download that claims to be one of them is someone else's build.

What the API gives you instead:

  • Frontier models without the hardware. Kimi K3.1 Pro Abliterated and DeepSeek V4.1 Flash Abliterated, both with a 1M-token context, in place of 233 GB to 1.56 TB of local weights.
  • Measured results. On DeepSeek V4.1 Flash Abliterated, refusals fell from 94% to 1% while reasoning, math and vision scores stayed within noise; MMLU-Pro dropped 0.8 points, the one statistically clear loss. On Kimi, refusals fell from 94% to 3%, and Terminal-Bench 4.0 fell from 66.6 to 62.3, so test coding agents before switching. Method and intervals are on /benchmarks.
  • Per-token pricing. DeepSeek costs $1.00 input and $2.00 output per 1M tokens, and Kimi $4.00 and $15.00. See pricing for plans and the $10 signup credit.
  • The same client code. Ollama, llama.cpp, LM Studio and Abliterator all speak OpenAI Chat Completions, so moving between them means changing three values.

This script runs against a local Ollama server by default:

import os
from openai import OpenAI

client = OpenAI(
    base_url=os.environ.get("LLM_BASE_URL", "http://localhost:11434/v1"),
    api_key=os.environ.get("LLM_API_KEY", "ollama"),
)
resp = client.chat.completions.create(
    model=os.environ.get("LLM_MODEL", "huihui_ai/qwen3.5-abliterated:9b"),
    messages=[{"role": "user", "content": "How do I kill a Python process that ignores SIGTERM on Linux?"}],
)
print(resp.choices[0].message.content)

To point it at Abliterator, set three variables with a key from /keys:

export LLM_BASE_URL=https://abliterator.ai/v1
export LLM_API_KEY=$ABL_API_KEY
export LLM_MODEL=deepseek-v4.1-flash-abliterated

Abliterator stores no prompt or completion text, and the inference provider keeps no inference content; see the privacy policy. Some uses are always prohibited; see the acceptable use policy. The uncensored LLM API page compares the two models, and the playground runs both in the browser with no sign-up.

Sources

All checked on 2026-12-01:

Frequently asked questions

Can I run Abliterator's Kimi K3.1 Pro Abliterated or DeepSeek V4.1 Flash Abliterated locally?

No. Their weights are not released, and the Hugging Face repositories logitshq/Kimi-K3.1-Pro-Abliterated and logitshq/DeepSeek-V4.1-Flash-Abliterated hold only a model card and a banner image. Both models are available only through the Abliterator API.

How much memory does an abliterated model need?

The GGUF file size plus the context cache plus some headroom. Llama 3.1 8B abliterated at Q4_K_M is a 4.92 GB file, and its cache adds 128 KiB per token: 1 GiB at 8K context, 16 GiB at its full 128K.

Which quantization should I download?

Start with Q4_K_M. Ollama's Hugging Face integration and llama.cpp's -hf flag both pick it by default when a repository has it, and LM Studio's docs recommend a 4-bit option or higher. Move up to Q6_K or Q8_0 if the file and your context still fit in memory.

Why does Ollama list kimi-k3.1-pro and deepseek-v4.1-flash with a cloud badge?

Those library entries only have cloud tags, so inference runs on Ollama's servers and needs an Ollama account. They are the original models, not abliterated builds. Set OLLAMA_NO_CLOUD=1 to keep Ollama local-only.

Can I run DeepSeek V4.1 Flash abliterated on a Mac?

On a 128 GB Mac, only with a 1-bit build made for the ds4 engine rather than Ollama or LM Studio. It keeps about 107 GiB of weights in memory and reads about 189 GiB of Engram tables from the SSD as needed. General-purpose GGUFs of the model start at 233 GB, so they need a machine with more memory than the file.

Are abliterated models on Ollama the same as GGUF files on Hugging Face?

They are the same kind of file. Ollama's library entries are GGUF models packaged under a user namespace such as huihui_ai, while ollama run hf.co/<user>/<repo> pulls a GGUF straight from Hugging Face. Either way, the card's numbers describe the original weights, so test the exact file you run.

Try it in your browser.

Ask it something your usual model refuses.

Start a chat

No sign-up to try. $10 free when you verify your email.