Local GuideDecember 3, 20269 min read

Abliterated GGUF models. Choose the quant before you download.

One multiplication tells you how big a GGUF file will be. Eight checks on the model card tell you whether it is worth the download. Worked through on a real abliterated model.

The best local uncensored LLM is useless if the file does not fit your memory, or if it is not the model you think it is. Both are checkable before you download a single gigabyte.

This guide covers the step between "I found an abliterated model" and "it runs": reading GGUF quantization names, estimating size and memory, and checking the model card. The example is GLM-4.7-Flash-heretic, an abliterated model with a published GGUF repo. All numbers come from public sources linked at the end.

What a GGUF file is

The format most local runners load, including llama.cpp and Ollama.

  • One file holds the weights and a standard set of metadata: architecture, context length, tokenizer and usually the chat template. Very large models are split into several numbered files.
  • Hugging Face shows that metadata in a GGUF viewer on the model page and in the file list. You can read architecture, tensor shapes and precision before downloading.
  • The quantization is in the file name: Q4_K_M, Q5_K_M, Q6_K, Q8_0, BF16. The number is roughly the bits per weight. Lower means smaller and less precise.

Estimate the file size in one line

Bits per weight times parameters gives the size. The bits per weight below come from the llama.cpp quantize README, which measured each type on Llama 3.1 8B.

formula
size in GB = parameters x bits per weight / 8 / 1,000,000,000

Worked example: the GGUF metadata of GLM-4.7-Flash-heretic counts 29.94 billion parameters. Estimate against the real file sizes in the repo, both read on December 3, 2026:

QuantizationBits per weightEstimated sizeReal file
Q4_K_M4.8918.3 GB18.1 GB
Q5_K_M5.721.3 GB21.3 GB
Q6_K6.5624.6 GB24.6 GB
Q8_08.531.8 GB31.8 GB
BF161659.9 GB59.9 GB

Every estimate lands within 0.2 GB of the real file. The bits per weight shift a little from model to model, because each type mixes precisions across tensors. For planning, the formula is close enough.

This model is a mixture of experts: its base card calls it 30B-A3B, about 3B parameters active per token. The file still stores every expert. Plan memory for all 30B, not for 3B.

Memory: the file is the floor, not the total

Three things share your GPU memory while the model runs.

  • The weights: about the file size. If they do not fit, the runner moves part of them to system memory, which is slower.
  • The context (KV cache): grows with every token of conversation. The metadata gives this model a maximum context of 202,752 tokens. You do not have to allocate all of it: Ollama, for example, starts at 4096 tokens. The Ollama FAQ describes Flash Attention and a quantized KV cache as ways to cut this part.
  • The runtime itself: buffers and the graphics driver take a slice on top.

What that means for this model

  • 24 GB GPU: Q4_K_M (18.1 GB) leaves about 6 GB for context and runtime. Q5_K_M (21.3 GB) leaves under 3 GB, which gets tight fast.
  • 32 GB or more (GPU or Mac unified memory): Q6_K (24.6 GB) fits with room. Q8_0 (31.8 GB) needs more than 32 GB once context is added.
  • 16 GB or less: none of these files fit fully. Either accept partial offload to system memory, or pick a smaller model.

Eight checks on the model card

Do these on the page before you press download. The answers for our example are in each line.

  • Base model named and linked. The card says it is a decensored version of zai-org/GLM-4.7-Flash and links it. No base named, no download.
  • Method and tool version stated. Made with Heretic v1.1.0, with the abliteration parameters listed in a table. You can tell it apart from other Heretic runs of the same base.
  • Published numbers, and how they were measured. The card reports 15 refusals out of 100 test prompts, against 50 for the original, and a KL divergence of 0.0039 from the original. Both come from Heretic's own scorers and prompt set. Useful, but not an independent benchmark.
  • License carried over. MIT, the same as the base model's card. Check this for any commercial use.
  • Chat template present. The GGUF metadata contains a chat template, identical to the base model's template. A missing template means you must supply one yourself.
  • Who made the GGUF. Here the same account that made the abliterated weights also published the GGUF files. Third-party quantizations are common and fine, but they are one more party you trust.
  • Runner fixes mentioned. The card notes the files were created after a llama.cpp fix for this model family (pull request 18980) was merged. GGUFs of the same model made earlier may not include it.
  • Name collisions ruled out. A Hub search for GLM-4.7-Flash-heretic also returns other repos with the same name under other accounts, a 42B expanded variant, and Gemma 3 and Qwen3-VL models with the same words in their names. Check the repo owner and the base model, not just the name.
If a card fails the first two checks, skip it. Everything else on this page assumes you know which weights you are getting.

Download one file, not the whole repo

A GGUF repo often holds every quantization. With the Hugging Face CLI you fetch just the one you picked.

Download only Q4_K_M into ./models
terminal
hf download Olafangensan/GLM-4.7-Flash-heretic-GGUF glm-4.7-flash-heretic.Q4_K_M.gguf --local-dir models

To use the file in Ollama, point a Modelfile at it and build a local model, as the Ollama import docs describe:

Modelfile
Modelfile
FROM ./models/glm-4.7-flash-heretic.Q4_K_M.gguf
Build it
terminal
ollama create glm-heretic-q4 -f ./Modelfile

We did not run this import for the article. Whether your runner loads the file depends on its support for the architecture in the metadata (deepseek2 for this model). Check your runner's release notes first.

Illustrative first prompt once it runs: "Summarize the main arguments for and against nuclear power in five bullet points, with no disclaimers." Run the same prompt on the base model to see what the abliteration changed for your use.

Limits

What the numbers on this page can and cannot tell you.

  • The size formula is an estimate. Real files differ by a few percent, more for mixed or importance-matrix quants.
  • Size tells you nothing about quality loss. That depends on the model and the task, and the bits per weight table was measured on Llama 3.1 8B, not on this model.
  • New architectures need runner support. A file that loads in one llama.cpp build can fail in an older one.
  • We list the card's refusal numbers as published. We did not re-measure them and quote no model answers.
  • unbottled.ai does not load your local GGUF files. It hosts abliterated and uncensored models for you instead.

Related guides

Each one answers a different question.

FAQ

Which GGUF quantization should I download?

The largest one whose file size plus a few gigabytes for context fits your GPU memory. Q4_K_M is what Hugging Face picks for Ollama by default. Go higher only if the memory is there.

How do I estimate a GGUF file size?

Parameters times bits per weight divided by 8. For a 29.94 billion parameter model at Q4_K_M (about 4.89 bits per weight) that is about 18.3 GB. The real file is 18.1 GB.

Does a mixture-of-experts model need less memory?

Not for the weights. The file stores every expert, so a 30B-A3B model needs memory for 30B parameters even though only about 3B are active per token.

Do I need memory for the full context window?

No. The metadata gives the maximum. Runners allocate what you configure, and memory grows with the context you actually use.

What should an abliterated model card show?

The base model with a link, the method and tool version, how any refusal numbers were measured, the license, a chat template, who quantized the files and any runner fixes they depend on.

Can I use abliterated models without downloading them?

Yes. unbottled.ai hosts abliterated and uncensored models in the browser, after a one-time 18+ confirmation. Prompts then go to a server instead of staying local.

Sources

Primary sources only. Each link was opened and every number read on December 3, 2026.