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

0xdfi/GLM-5.2-QuantTrio-Abliterated

0xdfi Glm 776B MoE
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/0xdfi%2FGLM-5.2-QuantTrio-Abliterated"
Response includes
  • classification m1
  • files 145
  • hub_downloads_all_time 342
  • author_summary 2 models
  • readme_text full
10 credits · hourly refresh · ~4 KB payload Get an API key →
Abliteration classifier · v1.0.0
M1
Primary method

Direct removal

No other method signals detected in this model.
Confidence
MEDIUM
Why this label 3 signals
Method inferred from partial signals - repository name, related files, or tag patterns. Producer identity not confirmed; label may sharpen or shift as we gather more evidence.
  • 'abliterated' in name/tags
  • is_gguf=0 (base model)
  • no specific method indicators - defaulting to M1 (most common)
Refusal direction extracted via
Extraction technique

Difference-of-means

Confidence
MEDIUM
Why we say so
primary_method=M1; difference-of-means is the reference extraction for M1/M3 (Arditi 2024)
Downloads · lifetime
342
0
Likes
8
Model age
2mo ago
created 2026-07-23
Downloads over time
Now342→from22↑1,455%
612925137422 on Jul 22342 on Oct 11342 on Sep 5JulAugSepOct
Jul 22 → Oct 11 · 52 snapshots · spans 81 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
mit
Languages
en zh
Tags
transformers safetensors glm_moe_dsa text-generation abliterated uncensored GLM QuantTrio compressed-tensors W8A16 reconstruction-kit full-weights

Related

Total size
378 GB
Files
145
Quantizations
1
Registered
2026-08-22 13:56
Last updated on HF
2026-07-24 14:36

Files by quantization

Auxiliary files 145 files 378 GB
model-00011-of-00124.safetensors 3.00 GB ******** download
model-00092-of-00124.safetensors 3.00 GB ******** download
model-00002-of-00124.safetensors 3.00 GB ******** download
model-00003-of-00124.safetensors 3.00 GB ******** download
model-00029-of-00124.safetensors 3.00 GB ******** download
model-00050-of-00124.safetensors 3.00 GB ******** download
model-00105-of-00124.safetensors 3.00 GB ******** download
model-00084-of-00124.safetensors 3.00 GB ******** download
model-00063-of-00124.safetensors 3.00 GB ******** download
model-00016-of-00124.safetensors 3.00 GB ******** download
model-00042-of-00124.safetensors 3.00 GB ******** download
model-00118-of-00124.safetensors 3.00 GB ******** download
model-00021-of-00124.safetensors 3.00 GB ******** download
model-00097-of-00124.safetensors 3.00 GB ******** download
model-00076-of-00124.safetensors 3.00 GB ******** download
model-00055-of-00124.safetensors 3.00 GB ******** download
model-00008-of-00124.safetensors 3.00 GB ******** download
model-00034-of-00124.safetensors 3.00 GB ******** download
model-00110-of-00124.safetensors 3.00 GB ******** download
model-00068-of-00124.safetensors 3.00 GB ******** download
model-00047-of-00124.safetensors 3.00 GB ******** download
model-00026-of-00124.safetensors 3.00 GB ******** download
model-00102-of-00124.safetensors 3.00 GB ******** download
model-00081-of-00124.safetensors 3.00 GB ******** download
model-00060-of-00124.safetensors 3.00 GB ******** download
model-00013-of-00124.safetensors 3.00 GB ******** download
model-00039-of-00124.safetensors 3.00 GB ******** download
model-00115-of-00124.safetensors 3.00 GB ******** download
model-00094-of-00124.safetensors 3.00 GB ******** download
model-00073-of-00124.safetensors 3.00 GB ******** download
model-00052-of-00124.safetensors 3.00 GB ******** download
model-00005-of-00124.safetensors 3.00 GB ******** download
model-00031-of-00124.safetensors 3.00 GB ******** download
model-00086-of-00124.safetensors 3.00 GB ******** download
model-00065-of-00124.safetensors 3.00 GB ******** download
model-00018-of-00124.safetensors 3.00 GB ******** download
model-00044-of-00124.safetensors 3.00 GB ******** download
model-00120-of-00124.safetensors 3.00 GB ******** download
model-00023-of-00124.safetensors 3.00 GB ******** download
model-00099-of-00124.safetensors 3.00 GB ******** download
model-00078-of-00124.safetensors 3.00 GB ******** download
model-00071-of-00124.safetensors 3.00 GB ******** download
model-00089-of-00124.safetensors 3.00 GB ******** download
model-00123-of-00124.safetensors 3.00 GB ******** download
model-00107-of-00124.safetensors 3.00 GB ******** download
model-00113-of-00124.safetensors 3.00 GB ******** download
model-00037-of-00124.safetensors 3.00 GB ******** download
model-00019-of-00124.safetensors 3.00 GB ******** download
model-00058-of-00124.safetensors 3.00 GB ******** download
model-00079-of-00124.safetensors 3.00 GB ******** download
model-00100-of-00124.safetensors 3.00 GB ******** download
model-00032-of-00124.safetensors 3.00 GB ******** download
model-00006-of-00124.safetensors 3.00 GB ******** download
model-00040-of-00124.safetensors 3.00 GB ******** download
model-00014-of-00124.safetensors 3.00 GB ******** download
model-00061-of-00124.safetensors 3.00 GB ******** download
model-00108-of-00124.safetensors 3.00 GB ******** download
model-00082-of-00124.safetensors 3.00 GB ******** download
model-00103-of-00124.safetensors 3.00 GB ******** download
model-00027-of-00124.safetensors 3.00 GB ******** download
model-00048-of-00124.safetensors 3.00 GB ******** download
model-00069-of-00124.safetensors 3.00 GB ******** download
model-00111-of-00124.safetensors 3.00 GB ******** download
model-00009-of-00124.safetensors 3.00 GB ******** download
model-00056-of-00124.safetensors 3.00 GB ******** download
model-00077-of-00124.safetensors 3.00 GB ******** download
model-00098-of-00124.safetensors 3.00 GB ******** download
model-00022-of-00124.safetensors 3.00 GB ******** download
model-00043-of-00124.safetensors 3.00 GB ******** download
model-00119-of-00124.safetensors 3.00 GB ******** download
model-00064-of-00124.safetensors 3.00 GB ******** download
model-00085-of-00124.safetensors 3.00 GB ******** download
model-00083-of-00124.safetensors 3.00 GB ******** download
model-00007-of-00124.safetensors 3.00 GB ******** download
model-00012-of-00124.safetensors 3.00 GB ******** download
model-00015-of-00124.safetensors 3.00 GB ******** download
model-00020-of-00124.safetensors 3.00 GB ******** download
model-00025-of-00124.safetensors 3.00 GB ******** download
model-00046-of-00124.safetensors 3.00 GB ******** download
model-00062-of-00124.safetensors 3.00 GB ******** download
model-00067-of-00124.safetensors 3.00 GB ******** download
model-00096-of-00124.safetensors 3.00 GB ******** download
model-00114-of-00124.safetensors 3.00 GB ******** download
model-00033-of-00124.safetensors 3.00 GB ******** download
model-00041-of-00124.safetensors 3.00 GB ******** download
model-00070-of-00124.safetensors 3.00 GB ******** download
model-00075-of-00124.safetensors 3.00 GB ******** download
model-00093-of-00124.safetensors 3.00 GB ******** download
model-00117-of-00124.safetensors 3.00 GB ******** download
model-00028-of-00124.safetensors 3.00 GB ******** download
model-00049-of-00124.safetensors 3.00 GB ******** download
model-00104-of-00124.safetensors 3.00 GB ******** download
model-00088-of-00124.safetensors 3.00 GB ******** download
model-00121-of-00124.safetensors 3.00 GB ******** download
model-00053-of-00124.safetensors 3.00 GB ******** download
model-00035-of-00124.safetensors 3.00 GB ******** download
model-00106-of-00124.safetensors 3.00 GB ******** download
model-00072-of-00124.safetensors 3.00 GB ******** download
model-00054-of-00124.safetensors 3.00 GB ******** download
model-00122-of-00124.safetensors 3.00 GB ******** download
model-00024-of-00124.safetensors 2.99 GB ******** download
model-00045-of-00124.safetensors 2.99 GB ******** download
model-00066-of-00124.safetensors 2.99 GB ******** download
model-00087-of-00124.safetensors 2.99 GB ******** download
model-00074-of-00124.safetensors 2.99 GB ******** download
model-00095-of-00124.safetensors 2.99 GB ******** download
model-00116-of-00124.safetensors 2.99 GB ******** download
model-00017-of-00124.safetensors 2.99 GB ******** download
model-00004-of-00124.safetensors 2.99 GB ******** download
model-00051-of-00124.safetensors 2.99 GB ******** download
model-00109-of-00124.safetensors 2.99 GB ******** download
model-00038-of-00124.safetensors 2.99 GB ******** download
model-00059-of-00124.safetensors 2.99 GB ******** download
model-00080-of-00124.safetensors 2.99 GB ******** download
model-00101-of-00124.safetensors 2.99 GB ******** download
model-00030-of-00124.safetensors 2.99 GB ******** download
model-00090-of-00124.safetensors 2.99 GB ******** download
model-00091-of-00124.safetensors 2.99 GB ******** download
model-00010-of-00124.safetensors 2.99 GB ******** download
model-00057-of-00124.safetensors 2.99 GB ******** download
mtp-00002-of-00004.safetensors 2.99 GB ******** download
mtp-00003-of-00004.safetensors 2.99 GB ******** download
mtp-00001-of-00004.safetensors 2.99 GB ******** download
model-00036-of-00124.safetensors 2.98 GB ******** download
model-00112-of-00124.safetensors 2.92 GB ******** download
model-00001-of-00124.safetensors 1.77 GB ******** download
model-00124-of-00124.safetensors 1.07 GB ******** download
mtp-00004-of-00004.safetensors 398 MB ******** download
tokenizer.json 19.3 MB ******** download
model.safetensors.index.json 16.4 MB ******** download
repair_builder_v4.py 103 KB 3f6c9475 download
build.py 25.0 KB 33b0c7d5 download
README.md 14.2 KB b984d6a9 download
config.json 6.38 KB ffd2e7dc download
chat_template.jinja 5.10 KB 504cae89 download
chat_template_original.jinja 4.96 KB 672034e3 download
AGENTS.md 2.87 KB 0574b81b download
NOTICE.md 1.98 KB ba8c7d5c download
LICENSE 1.37 KB 566b20a9 download
tokenizer_config.json 761 B e375fa0a download
.gitignore 666 B ebdadb49 download
requirements.txt 548 B ef6d7ad2 download
.gitattributes 334 B 8578b6c3 download
generation_config.json 194 B 216bbb09 download
configuration.json 64.0 B 159097fc download

README current version from Hugging Face


license: mit
base_model: QuantTrio/GLM-5.2-Int4-Int8Mix
language:

  • en
  • zh
    pipeline_tag: text-generation
    library_name: transformers
    tags:
  • abliterated
  • uncensored
  • GLM
  • QuantTrio
  • compressed-tensors
  • W8A16
  • reconstruction-kit
  • full-weights
    extra_gated_heading: Model Access and Use Terms
    extra_gated_prompt: 'By checking the required box below and selecting “Agree and Access Model,” you (for yourself and your heirs, successors, and assigns) represent that you are at least 18 years old (or the age of majority in your jurisdiction, if greater), have legal capacity and authority to enter this agreement, and have read and understood these terms. You acknowledge that the model weights, code, configurations, documentation, and related files in this repository (the “Artifact”) are an unofficial research derivative in a model lineage with intentionally reduced refusal or safety behavior, are not sponsored, endorsed, approved by, or affiliated with any upstream author or base-model provider, have not been safety-evaluated by the repository owner, and may generate or enable harmful, illegal, offensive, infringing, private, sensitive, inaccurate, or otherwise unsafe content or outcomes. You accept the Artifact “AS IS” and “WITH ALL FAULTS.” To the fullest extent permitted by applicable law, the repository owner, author, uploader, maintainers, contributors, licensors, upstream authors, and each of their respective affiliates, officers, employees, and agents (collectively, the “Released Parties”) disclaim all warranties and conditions, express, implied, statutory, or arising from course of dealing or usage of trade, including merchantability, fitness for a particular purpose, title, non-infringement, accuracy, reliability, and safety. You knowingly and voluntarily assume all risks arising from access to or any use, misuse, modification, fine-tuning, distribution, deployment, output, or reliance on the Artifact and, to the fullest extent permitted by applicable law, irrevocably release, waive, discharge, and covenant not to sue the Released Parties for any claim, loss, liability, damage, penalty, cost, or expense arising from or related to the Artifact, including claims based on ordinary negligence. The Released Parties will not be liable for indirect, incidental, special, consequential, exemplary, or punitive damages, and their total aggregate liability arising from or related to the Artifact will not exceed US $100. You are solely responsible for reviewing and validating outputs, implementing appropriate safeguards and human oversight, preventing access by minors, complying with all applicable laws, regulations, export and sanctions controls, and license terms, and all consequences of your access and use. You agree to defend, indemnify, and hold harmless the Released Parties from every third-party claim and resulting loss, liability, damage, penalty, cost, or expense, including reasonable attorneys’ fees, arising from or related to your access, use, misuse, modification, distribution, deployment, outputs, or violation of law or these terms. The Released Parties are intended third-party beneficiaries entitled to enforce this agreement. These access and risk-allocation terms supplement and do not alter the copyright permissions granted by any applicable license; if a conflict exists, the applicable license controls copyright permissions and these terms control repository access and risk allocation. This agreement is governed by New York law, excluding conflict-of-laws rules, and you consent to exclusive jurisdiction and venue in the state and federal courts located in New York County, New York. If any provision is held unenforceable, it will be modified and limited to the minimum extent necessary or severed, and the remainder will remain in full force and effect. Terms version 2026-07-23.'
    extra_gated_fields:
    ? I am legally eligible to agree and have read, understand, and agree to the Model Access and Use Terms above as a condition of accessing this repository
    : checkbox
    extra_gated_button_content: Agree and Access Model

GLM-5.2-QuantTrio-Abliterated

Complete weights for direct download; pinned reconstruction and adaptation guidance included

The complete checkpoint is uploaded in this repository: 124 model shards, four MTP shards, the Safetensors index, runtime configuration, tokenizer, and chat templates. After accepting the access terms, users can download the repository and load or serve it directly with a compatible runtime; rebuilding from a separate base model is not required. An agent connects to an inference server that has loaded the checkpoint—not to the raw model files themselves.

The repository also includes a tested deterministic builder for reconstructing this exact checkpoint from the pinned QuantTrio/GLM-5.2-Int4-Int8Mix base, plus technical documentation of the direction-recovery method, transplant formula, quantization codec, and validation criteria. That documentation records how this checkpoint was produced and provides a technical reference for adapting the process to another compatible compressed-tensors W8 group-128 variant with matching architecture and tensor layout. This is not an automated cross-variant workflow: the repository does not include a generic direction-extraction script or a drop-in builder, and the included builder and manifests are pinned to the named base revision.

This repository therefore provides both distribution paths:

  • Direct use: approximately 405.5 GB of complete, ready-to-load model shards, MTP shards, index, configuration, tokenizer, and chat templates.
  • Independent reconstruction: the direction vectors, relative magnitudes, and deterministic builder needed to reproduce the checkpoint from the pinned QuantTrio base, together with technical documentation of the full method.

What is this?

Huihui-ai produced an abliterated GGUF of GLM-5.2 by suppressing refusal-related
weight directions in the attention output projections. This kit transplants
those directions into QuantTrio's compressed-tensors W8 pack-quantized format,
which loads natively with the transformers library.

In Huihui's language, this is an uncensored version of GLM-5.2 created with
abliteration. This repository adapts that intervention to the pinned QuantTrio
checkpoint rather than redistributing Huihui's GGUF weights.

Specifically:

  • Ablation directions and relative magnitudes were recovered by comparing the
    Huihui abliterated GGUF
    (pinned revision 2f0aff2760627f87faf16f8adc81caca7d7b10f6) against the
    Unsloth stock GGUF
    (pinned revision abc55e72527792c6e77069c99b4cb7de16fa9f23) via top-2
    randomised SVD on the blk.{13..77}.attn_output.weight tensors.
  • Those directions were transplanted into the
    QuantTrio W8 base
    (pinned revision 1d3bcfe5ec549ecd000fd80b37f191183842e983) using fresh
    group-128 requantization and validated against 65 numerical gates.

The resulting model is not byte-identical to the Huihui GGUF. The edit
magnitude uses a uniform scale factor of 1.75, which was the minimum tested
value that passed all 65 frozen W8 numerical gates. Factor 1.0 reproduced
the original Huihui magnitude but fell below the group-W8 reliable edit
resolution; factor 1.6 still failed layer 23.

Credits

Usage warning

This model has reduced safety filtering. It can generate sensitive, controversial,
inappropriate, harmful, unsafe, or illegal content. It is not suitable for
deployment to minors, public-facing services, or high-security contexts without
additional controls. Users are solely responsible for all outputs and for
compliance with local laws and ethical standards. Research, testing, and
controlled internal use with monitoring and manual review are recommended.
There are no default safety guarantees. No warranty or liability is provided.

Numerical validation

The builder applies 65 independent frozen W8 gates (one per edited layer).
Gates require:

  • Cosine similarity between requested and actual delta >= 0.99
  • Relative RMSE <= 0.15
  • Orthogonal leakage / requested norm <= 0.15

All 65 gates passed. The worst-performing layer was layer 46:

  • Cosine: 0.9907504192
  • Relative RMSE: 0.1369091172
  • Leakage / requested: 0.1367936930

Summary: 65 layers edited, 130 tensor payloads modified (weight_packed and
weight_scale), 177,439 tensors byte-identical to the pristine QuantTrio base.

Behavioral validation

These results are specific to this build and the test corpus used. They are
not a universal guarantee.

A 32-question refusal corpus was evaluated:

  • 32 / 32 questions bypassed (no refusals)
  • Capability score: 11 / 12 (the same question was missed by unmodified stock GLM-5.2)

Direct download and serving

Accept the repository access terms on Hugging Face, then download the complete checkpoint:

hf download 0xdfi/GLM-5.2-QuantTrio-Abliterated \
    --local-dir ./GLM-5.2-QuantTrio-Abliterated

The download contains 124 model shards, four MTP shards, model.safetensors.index.json, runtime configuration, tokenizer files, and chat templates. Reserve at least 430 GB of free disk space for the download and additional space required by your runtime.

Point a GLM-5.2 inference runtime that supports QuantTrio's compressed-tensors INT4/INT8Mix checkpoint format at the downloaded directory. After the inference server is healthy, point your agent at that server's OpenAI-compatible endpoint and use the served model name. Raw weights are not themselves an agent endpoint; the inference server is the layer between the model files and the agent.

Runtime flags, tensor/context parallelism, memory limits, and maximum context depend on the target hardware. Do not copy the four-DGX-Spark production profile onto unrelated hardware without validating memory and backend compatibility.

Rebuild instructions

You need approximately 820 GiB free disk space on a single filesystem.

Step 1: Install dependencies

pip install -r requirements.txt

Step 2: Fetch the QuantTrio base

hf download QuantTrio/GLM-5.2-Int4-Int8Mix \
    --revision 1d3bcfe5ec549ecd000fd80b37f191183842e983 \
    --local-dir ./base

Step 3: Build

python build.py \
    --base-dir ./base \
    --output-dir ./output \
    --chunk-rows 512

The builder will:

  1. Parse the base index and identify the 65 target layers (self_attn.o_proj, layers 13-77).
  2. Hash the target shards to verify against the manifest.
  3. Copy the entire base tree byte-by-byte to the output directory.
  4. Patch the 130 target tensor payloads (weight_packed and weight_scale per layer)
    using fresh group-128 requantization.
  5. Verify all edited and unchanged tensors.
  6. Write output/BUILD_RECEIPT.json.
  7. Print PASS on success.

Alternatively, let the builder download the base automatically:

python build.py --download-base --output-dir ./output --chunk-rows 512

Step 4: Verify

python -c "
import json
r = json.load(open('output/BUILD_RECEIPT.json'))
assert r['passed'], r
print('PASS: edited', r['edited_tensors'], 'tensors')
"

Step 5: Load with transformers

from transformers import AutoModelForCausalLM, AutoTokenizer

model = AutoModelForCausalLM.from_pretrained("./output", trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained("./output", trust_remote_code=True)

The output directory is a complete model tree in compressed-tensors W8 format,
identical to the QuantTrio base except for the 130 edited tensor payloads.

Repository contents

model-00001-of-00124.safetensors
...                             # 124 complete model shards
model-00124-of-00124.safetensors
mtp-00001-of-00004.safetensors
...                             # 4 complete MTP shards
mtp-00004-of-00004.safetensors
model.safetensors.index.json
config.json
configuration.json
generation_config.json
tokenizer.json
tokenizer_config.json
chat_template.jinja
chat_template_original.jinja
build.py                        # Agent-facing wrapper (constructs manifest, runs builder)
repair_builder_v4.py            # Reviewed fail-closed CPU-only builder (do not modify)
requirements.txt
recipe/
    refusal_dirs.safetensors    # FP32 ablation direction vectors, layers 13-77
    huihui_mag.json             # Per-layer relative magnitudes
    manifest.json               # Provenance and numerical contract
docs/
    TECHNICAL_REPRODUCTION.md   # Full acquisition and validation workflow
tests/
    test_repair_builder_v4.py   # Frozen builder tests
    test_public_wrapper.py      # Wrapper tests
LICENSE
NOTICE.md
AGENTS.md

Technical details

The edit formula for each layer L is:

W*_L = W_qt,L - lambda_final_L * d_L (d_L^T W_qt,L)

where:

  • d_L is the unit-normalised ablation direction recovered from the Huihui/Unsloth diff
  • qt_mag1_L = ||d_L^T W_qt,L||_2 / ||W_qt,L||_F (projection of QuantTrio matrix onto direction)
  • lambda_match_L = m_L / qt_mag1_L (scale to match Huihui relative magnitude)
  • lambda_final_L = 1.75 * lambda_match_L
  • m_L is the per-layer relative magnitude from recipe/huihui_mag.json

After editing, the float32 result is requantized using the compressed-tensors
group-128 W8 codec: fresh amax-based BF16 scales are stored before quantization,
then weights are divided by the restored BF16 scale, clamped to [-128, 127],
rounded to nearest even, converted to q+128 unsigned bytes, and packed
little-endian into int32 lanes.

The builder is CPU-only, uses no network during the build phase, creates no
hardlinks or symlinks, writes through fsynced temporary files with atomic
rename, and operates under an exclusive fcntl lock with crash-recoverable
checkpoint state. See docs/TECHNICAL_REPRODUCTION.md for the full
acquisition and validation procedure.

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