Dev.to AI 🤖 Ai 👁 0 📖 7 min read

Running uncensored Heretic models on a PC, a phone, and a rented GPU

Most "no-filter" setups you see online are jailbreaks: a prompt trick that survives until the next model update. Heretic builds take a different route — the refusal behaviour is removed from the weights themselves. You d

Most "no-filter" setups you see online are jailbreaks: a prompt trick that survives until the next model update. Heretic builds take a different route — the refusal behaviour is removed from the weights themselves. You download one file, unplug the network, and the model stops lecturing you. Nobody else's moderation layer is in the loop.

I spent an evening going through the whole path: sizing a quant to my hardware, running it with LM Studio and Ollama, spinning up a rented GPU, putting a build on a phone, and then actually testing whether refusals disappeared or were just rephrased. Here is what I learned.

The realistic time budget is 10–20 minutes of setup, plus the weight download (3.4–16.8 GB for the common sizes, around 246 GB if you go for the 397B flagship). Local runs cost nothing but electricity; a rented RTX 3090 runs about $0.20–0.30 per hour.

What Heretic actually removes

In a cloud chat there are three filter layers, and the distinction matters:

  1. Inside the weights. Safety training shapes how the model behaves, so it genuinely learns to open with "I can't help with that".
  2. In the service system prompt. A hidden instruction you can't read or edit.
  3. A separate classifier. Another model inspects the request or the finished answer and may block it.

A local Heretic build only touches the first layer. But it removes it at the file level, and layers two and three simply don't exist on your machine.

Mechanically, refusal isn't a rule in code — it looks like a direction in activation space. Feed the model paired harmful/harmless prompts, average the internal states, and the difference between the two averages gives you the vector that pulls the model toward refusing. Subtract that vector from the weights and the refusal lever stops firing. This is abliteration (directional ablation), and no retraining is involved: a handful of matrices get modified.

Heretic 2.x defaults to ARA (Arbitrary-Rank Ablation), which removes a direction of arbitrary rank while preserving row magnitudes. In practice it keeps the model's intelligence noticeably more intact than subtracting a single vector. Classic and orthogonal ablation are still selectable.

What this buys you: the filter doesn't sit in the context, doesn't eat tokens, doesn't reset when you open a new chat or restart, and works in English and Russian alike — though Russian still shows some residual refusal patterns. The flip side is that general caution weakens too. The model will be more willing to answer genuinely harmful requests. That's the price of the ticket, not a bug.

One status note, because it confuses people: the Heretic GitHub repository was archived on 28 November 2026. The heretic-llm PyPI package and the project documentation still work, and the community keeps publishing new builds. Archiving is about maintenance, not about the technique going away.

Choosing a model by VRAM, not by hype

The rule I use: the weights file should be 1.5–2 GB smaller than your available VRAM. Everything left over goes to context and buffers. If the weights don't fit entirely, layers spill into system RAM and throughput drops 5–20x — you'll notice immediately.

Hardware Model Q4_K_M size Why
Phone, 8–12 GB RAM Gemma 4 E2B Heretic 3.4 GB offline chat in PocketPal; E4B is 5.3 GB if the phone can take it
8 GB VRAM Qwen3.5-9B Heretic v2 5.6 GB the workhorse: text, analysis, dialogue
12 GB VRAM Gemma 4 12B Heretic 7.4 GB better at long instructions and Russian
16 GB VRAM Qwen3.6-27B Heretic v2, Q3_K_M 13.3 GB 27B with some quality loss
24 GB VRAM Qwen3.6-27B Heretic v2, Q4_K_M 16.5 GB universal single-card pick
24 GB VRAM, speed matters Gemma 4 26B-A4B Heretic 16.8 GB MoE: fewer active parameters, faster answers
256 GB RAM / server Qwen3.5-397B-A17B Heretic, Q4_K_M ~246 GB (5 parts) maximum intelligence; use llama.cpp, not Ollama

Three shortcuts that saved me an evening:

  • Don't try 27B on 16 GB. Q4_K_M is 16.5 GB — bigger than all your memory. Take Q3_K_M or step down to a 12B model.
  • Q2 and IQ2 are not "the same model, only smaller". Aggressive compression makes Heretic builds lose coherence and start inventing things. On 8 GB, a 9B at Q4_K_M beats a 27B at Q2 every time.
  • You don't need to uncensor a coding model. Stock Qwen-Coder and factory Qwen follow technical specs better. Keep Heretic for text, scripts and analysis where the filter is the thing getting in your way.

Running it on a PC: LM Studio or Ollama

If you want a GUI, LM Studio is the fastest path:

  1. Install LM Studio, open the search tab (Ctrl + 2), and paste the full repository name, e.g. mradermacher/Qwen3.5-9B-heretic-v2-GGUF.
  2. Pick the Q4_K_M file and download it. If the repo only offers safetensors, you're in the wrong place — look for a copy with the -GGUF suffix.
  3. Load the model in the chat tab, set Context Length to 4096–8192, and push GPU Offload to the maximum.
  4. If you get an out-of-memory error, cut the context first, not the number of GPU layers.

All layers should sit on the GPU, not "partly on CPU". The symptom of a bad fit is 2–3 tokens per second and a GPU pinned at 100%.

If you prefer the terminal, Ollama reads Hugging Face repos directly:

ollama pull hf.co/mradermacher/Qwen3.5-9B-heretic-v2-GGUF:Q4_K_M
ollama run hf.co/mradermacher/Qwen3.5-9B-heretic-v2-GGUF:Q4_K_M

The syntax is hf.co/<author>/<repository>:<quant>, and the tag is case-sensitive — Q4_K_M, not q4_k_m. Set num_ctx between 4096 and 8192 and remember that every extra 8K of context costs roughly 0.5–1.5 GB of VRAM.

There's also a helper script in the guide (a .sh version for Linux/macOS and a .ps1 for Windows) that reads your VRAM and RAM, installs Ollama, downloads the matching quant, starts a server on 127.0.0.1:11434 and runs a smoke test. One command instead of ten. You can force a specific model with --model qwen9b or list the options with --list.

Renting a GPU for an evening

When the model you want is bigger than your card, renting beats buying. On Vast.ai an RTX 3090 works out to roughly $0.20–0.30 per hour — cheap enough to test a 27B at full Q4_K_M before committing to anything.

My routine: pick a 24 GB instance, install Ollama the same way as locally, pull the GGUF, and keep the session short. The weights only need downloading once per session, so budget for the download time as well as the inference time. If you're chasing the 397B build, forget Ollama — that one wants 256 GB of RAM and llama.cpp, and it arrives as five parts of about 246 GB total.

On a phone: PocketPal and a 3.4 GB file

The phone story is simpler than people expect. Gemma 4 E2B Heretic at Q4_K_M is 3.4 GB, which loads fine on an 8–12 GB device in PocketPal AI. If your phone has room, E4B is 5.3 GB and noticeably better at following instructions.

The whole point of a local build shows up here: airplane mode on, chat still works, nothing gets logged anywhere but your own storage.

Proving the refusals are gone

"It feels less filtered" isn't a measurement. The guide ships a check-refusal.py script that runs 10 prompts which usually trigger a lecture, then reports refusal rate, empty answers and tokens per second. Run it on the stock model and on the Heretic build; compare the two numbers.

For a broader sanity check, the independent UGI Leaderboard ranks uncensored builds on two axes: intelligence and willingness to answer. Read both columns. A model with a perfect "no refusals" score and a collapsed MMLU is useless to you — that's usually a sign you picked too aggressive a quant.

Once the model behaves, lock in the behaviour with a system prompt. The guide includes a ready one plus four presets: general assistant, dark fiction, vulnerability review, and a role-play character. And if you want to ship your own abliterated build rather than download one, the heretic-llm package is still the tool for the job — that part is advanced territory, but it's documented.

Takeaway

Heretic builds are the rare case where the boring answer is the right one: the filter is gone because it isn't in the file, not because a prompt outsmarted it. Size the quant to your VRAM with 1.5–2 GB of headroom, don't chase parameter count on a small card, and measure refusal rate before you trust the vibes. Ten minutes of setup, one download, and you have a chat that works with the network cable unplugged.

This article was originally published on AI Release — https://ai-release.org. More notes and updates land in the channel: https://t.me/ai_release1.

📰 Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.