← back to catalog · registered 2026-08-22 13:56

bartowski/LongWriter-glm4-9b-abliterated-GGUF

bartowski Glm 9B GGUF second-order 1.0M ctx
Your rig guess connected
? Why do I need an app?
Reading your rig…

This is a rough estimate. Install the free app - we'll show exact numbers.

Reading real hardware from your app right now. Numbers below are exact.

Below is the per-quantization compatibility for this model.

curl -H "Authorization: Bearer $ABL_KEY" \
     "https://abliteration.org/api/v1/models/bartowski%2FLongWriter-glm4-9b-abliterated-GGUF"
Response includes
  • classification m8
  • files 27
  • hub_downloads_all_time 26,765
  • author_summary 72 models
  • readme_text full
10 credits · hourly refresh · ~4 KB payload Get an API key →
Abliteration classifier · v1.0.0
M8
Primary method

Repackaging (quantization)

Applied on top of direct removal inherited from the base model.
Confidence
HIGH
Inherited from base model
Why this label 3 signals
Producer identity confirmed by naming conventions, tags or the model card. This label is very unlikely to change.
  • author=bartowski (M8 quantization producer)
  • is_gguf=1
  • base_model='byroneverson/LongWriter-glm4-9b-abliterated' looks abliterated -> assume M1
Refusal direction extraction

No specific extraction method could be identified for this model. The producer either did not document it or used a proprietary pipeline.

What is a refusal direction? →
Downloads · lifetime
27K
3K last 30d - stable
Likes
4
Model age
24mo ago
created 2024-10-19
Downloads over time
Now27.8K→from698↑3,884%
010.2K20.4K30.6K698 on Oct 16, 202427.8K on Oct 11Oct '24Feb '25Jun '25Oct '25FebJunOct
Oct 16, 2024 → Oct 11 · 145 snapshots · spans 725 days

Genealogy 0 direct forks

Full fork graph →

This model's place in the market. Above: what it was derived from. Below: the tree of everything derived from it.

Metadata

License
apache-2.0
Languages
en
Quantizations
F16 IQ2 IQ3 IQ4 Q2_K Q3_K Q4 Q4_K Q5_K Q6_K Q8_0
Tags
gguf llm glm glm4 chatglm llama chat instruct it abliterated longwriter long context

Related

Total size
145 GB
Files
27
Quantizations
12
Registered
2026-08-22 13:56
Last updated on HF
2024-10-19 22:41

Files by quantization

F16 1 file 17.5 GB
LongWriter-glm4-9b-abliterated-f16.gguf 17.5 GB 257f6ceb download
Q8_0 1 file 9.31 GB
LongWriter-glm4-9b-abliterated-Q8_0.gguf 9.31 GB 26bd806e download
Q6_K 2 files 15.7 GB
LongWriter-glm4-9b-abliterated-Q6_K_L.gguf 7.97 GB 33c09c9b download
LongWriter-glm4-9b-abliterated-Q6_K.gguf 7.69 GB d929c93e download
Q5_K 3 files 19.9 GB
LongWriter-glm4-9b-abliterated-Q5_K_L.gguf 7.01 GB 31173286 download
LongWriter-glm4-9b-abliterated-Q5_K_M.gguf 6.65 GB 92cd8a6d download
LongWriter-glm4-9b-abliterated-Q5_K_S.gguf 6.23 GB d42edcc7 download
Q4_K 3 files 17.4 GB
LongWriter-glm4-9b-abliterated-Q4_K_L.gguf 6.25 GB 39ab497d download
LongWriter-glm4-9b-abliterated-Q4_K_M.gguf 5.82 GB 97f3967c download
LongWriter-glm4-9b-abliterated-Q4_K_S.gguf 5.36 GB 3a831a04 download
Q3_K 4 files 19.3 GB
LongWriter-glm4-9b-abliterated-Q3_K_XL.gguf 5.42 GB bf29b03c download
LongWriter-glm4-9b-abliterated-Q3_K_L.gguf 4.92 GB e53c1870 download
LongWriter-glm4-9b-abliterated-Q3_K_M.gguf 4.72 GB 00c932f8 download
LongWriter-glm4-9b-abliterated-Q3_K_S.gguf 4.27 GB 25af8bb6 download
Q4 4 files 20.3 GB
LongWriter-glm4-9b-abliterated-Q4_0.gguf 5.10 GB 8cfe0cd7 download
LongWriter-glm4-9b-abliterated-Q4_0_4_4.gguf 5.08 GB 1854efc8 download
LongWriter-glm4-9b-abliterated-Q4_0_4_8.gguf 5.08 GB 0d0e1c05 download
LongWriter-glm4-9b-abliterated-Q4_0_8_8.gguf 5.08 GB a43c47d8 download
IQ4 1 file 4.89 GB
LongWriter-glm4-9b-abliterated-IQ4_XS.gguf 4.89 GB c0cc2aa7 download
IQ3 2 files 8.61 GB
LongWriter-glm4-9b-abliterated-IQ3_M.gguf 4.48 GB a78ae2e6 download
LongWriter-glm4-9b-abliterated-IQ3_XS.gguf 4.13 GB 5d8912a7 download
Q2_K 2 files 8.00 GB
LongWriter-glm4-9b-abliterated-Q2_K_L.gguf 4.28 GB 1d129436 download
LongWriter-glm4-9b-abliterated-Q2_K.gguf 3.72 GB e86c4e3c download
IQ2 1 file 3.66 GB
LongWriter-glm4-9b-abliterated-IQ2_M.gguf 3.66 GB b6342dc0 download
Auxiliary files 3 files 3.98 MB
LongWriter-glm4-9b-abliterated.imatrix 3.97 MB a5cc0a03 download
README.md 10.8 KB 226fae07 download
.gitattributes 3.40 KB d8c21d23 download

README current version from Hugging Face


base_model: byroneverson/LongWriter-glm4-9b-abliterated
language:

  • en
    license: apache-2.0
    pipeline_tag: text-generation
    tags:
  • llm
  • glm
  • glm4
  • chatglm
  • llama
  • chat
  • instruct
  • it
  • abliterated
  • longwriter
  • long context
    quantized_by: bartowski

Llamacpp imatrix Quantizations of LongWriter-glm4-9b-abliterated

Using llama.cpp release b3930 for quantization.

Original model: https://huggingface.co/byroneverson/LongWriter-glm4-9b-abliterated

All quants made using imatrix option with dataset from here

Run them in LM Studio

Prompt format

[gMASK]<sop><|system|>
 {system_prompt}<|user|>
 {prompt}<|assistant|>

Download a file (not the whole branch) from below:

Filename Quant type File Size Split Description
LongWriter-glm4-9b-abliterated-f16.gguf f16 18.81GB false Full F16 weights.
LongWriter-glm4-9b-abliterated-Q8_0.gguf Q8_0 9.99GB false Extremely high quality, generally unneeded but max available quant.
LongWriter-glm4-9b-abliterated-Q6_K_L.gguf Q6_K_L 8.56GB false Uses Q8_0 for embed and output weights. Very high quality, near perfect, recommended.
LongWriter-glm4-9b-abliterated-Q6_K.gguf Q6_K 8.26GB false Very high quality, near perfect, recommended.
LongWriter-glm4-9b-abliterated-Q5_K_L.gguf Q5_K_L 7.53GB false Uses Q8_0 for embed and output weights. High quality, recommended.
LongWriter-glm4-9b-abliterated-Q5_K_M.gguf Q5_K_M 7.14GB false High quality, recommended.
LongWriter-glm4-9b-abliterated-Q4_K_L.gguf Q4_K_L 6.71GB false Uses Q8_0 for embed and output weights. Good quality, recommended.
LongWriter-glm4-9b-abliterated-Q5_K_S.gguf Q5_K_S 6.69GB false High quality, recommended.
LongWriter-glm4-9b-abliterated-Q4_K_M.gguf Q4_K_M 6.25GB false Good quality, default size for must use cases, recommended.
LongWriter-glm4-9b-abliterated-Q3_K_XL.gguf Q3_K_XL 5.82GB false Uses Q8_0 for embed and output weights. Lower quality but usable, good for low RAM availability.
LongWriter-glm4-9b-abliterated-Q4_K_S.gguf Q4_K_S 5.75GB false Slightly lower quality with more space savings, recommended.
LongWriter-glm4-9b-abliterated-Q4_0.gguf Q4_0 5.47GB false Legacy format, generally not worth using over similarly sized formats
LongWriter-glm4-9b-abliterated-Q4_0_8_8.gguf Q4_0_8_8 5.46GB false Optimized for ARM inference. Requires 'sve' support (see link below). Don't use on Mac or Windows.
LongWriter-glm4-9b-abliterated-Q4_0_4_8.gguf Q4_0_4_8 5.46GB false Optimized for ARM inference. Requires 'i8mm' support (see link below). Don't use on Mac or Windows.
LongWriter-glm4-9b-abliterated-Q4_0_4_4.gguf Q4_0_4_4 5.46GB false Optimized for ARM inference. Should work well on all ARM chips, pick this if you're unsure. Don't use on Mac or Windows.
LongWriter-glm4-9b-abliterated-Q3_K_L.gguf Q3_K_L 5.28GB false Lower quality but usable, good for low RAM availability.
LongWriter-glm4-9b-abliterated-IQ4_XS.gguf IQ4_XS 5.25GB false Decent quality, smaller than Q4_K_S with similar performance, recommended.
LongWriter-glm4-9b-abliterated-Q3_K_M.gguf Q3_K_M 5.06GB false Low quality.
LongWriter-glm4-9b-abliterated-IQ3_M.gguf IQ3_M 4.81GB false Medium-low quality, new method with decent performance comparable to Q3_K_M.
LongWriter-glm4-9b-abliterated-Q2_K_L.gguf Q2_K_L 4.60GB false Uses Q8_0 for embed and output weights. Very low quality but surprisingly usable.
LongWriter-glm4-9b-abliterated-Q3_K_S.gguf Q3_K_S 4.59GB false Low quality, not recommended.
LongWriter-glm4-9b-abliterated-IQ3_XS.gguf IQ3_XS 4.43GB false Lower quality, new method with decent performance, slightly better than Q3_K_S.
LongWriter-glm4-9b-abliterated-Q2_K.gguf Q2_K 3.99GB false Very low quality but surprisingly usable.
LongWriter-glm4-9b-abliterated-IQ2_M.gguf IQ2_M 3.93GB false Relatively low quality, uses SOTA techniques to be surprisingly usable.

Embed/output weights

Some of these quants (Q3_K_XL, Q4_K_L etc) are the standard quantization method with the embeddings and output weights quantized to Q8_0 instead of what they would normally default to.

Some say that this improves the quality, others don't notice any difference. If you use these models PLEASE COMMENT with your findings. I would like feedback that these are actually used and useful so I don't keep uploading quants no one is using.

Thanks!

Downloading using huggingface-cli

First, make sure you have hugginface-cli installed:

pip install -U "huggingface_hub[cli]"

Then, you can target the specific file you want:

huggingface-cli download bartowski/LongWriter-glm4-9b-abliterated-GGUF --include "LongWriter-glm4-9b-abliterated-Q4_K_M.gguf" --local-dir ./

If the model is bigger than 50GB, it will have been split into multiple files. In order to download them all to a local folder, run:

huggingface-cli download bartowski/LongWriter-glm4-9b-abliterated-GGUF --include "LongWriter-glm4-9b-abliterated-Q8_0/*" --local-dir ./

You can either specify a new local-dir (LongWriter-glm4-9b-abliterated-Q8_0) or download them all in place (./)

Q4_0_X_X

These are NOT for Metal (Apple) offloading, only ARM chips.

If you're using an ARM chip, the Q4_0_X_X quants will have a substantial speedup. Check out Q4_0_4_4 speed comparisons on the original pull request

To check which one would work best for your ARM chip, you can check AArch64 SoC features (thanks EloyOn!).

Which file should I choose?

A great write up with charts showing various performances is provided by Artefact2 here

The first thing to figure out is how big a model you can run. To do this, you'll need to figure out how much RAM and/or VRAM you have.

If you want your model running as FAST as possible, you'll want to fit the whole thing on your GPU's VRAM. Aim for a quant with a file size 1-2GB smaller than your GPU's total VRAM.

If you want the absolute maximum quality, add both your system RAM and your GPU's VRAM together, then similarly grab a quant with a file size 1-2GB Smaller than that total.

Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.

If you don't want to think too much, grab one of the K-quants. These are in format 'QX_K_X', like Q5_K_M.

If you want to get more into the weeds, you can check out this extremely useful feature chart:

llama.cpp feature matrix

But basically, if you're aiming for below Q4, and you're running cuBLAS (Nvidia) or rocBLAS (AMD), you should look towards the I-quants. These are in format IQX_X, like IQ3_M. These are newer and offer better performance for their size.

These I-quants can also be used on CPU and Apple Metal, but will be slower than their K-quant equivalent, so speed vs performance is a tradeoff you'll have to decide.

The I-quants are not compatible with Vulcan, which is also AMD, so if you have an AMD card double check if you're using the rocBLAS build or the Vulcan build. At the time of writing this, LM Studio has a preview with ROCm support, and other inference engines have specific builds for ROCm.

Credits

Thank you kalomaze and Dampf for assistance in creating the imatrix calibration dataset

Thank you ZeroWw for the inspiration to experiment with embed/output

Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski

README history 2 versions

The author's README evolved over time. Click a version to see its content at that point.

  1. 2024-10-19Update metadata with huggingface_hub63af4da10.8 KB
    Loading...
  2. 2024-10-19Upload README.md with huggingface_hube49395210.6 KB
    Loading...
Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every model page has an "Open in Abliteration" button that hands the model directly to the first-party desktop client, at the quantization your rig can actually run. No API keys, no subscription, no prompt leakage.

Open in Abliteration