GLM-4.7-Flash-Abliteratex

GLM-4.7-Flash-Abliteratex is a rebuilt successor to wangzhang/GLM-4.7-Flash-abliterated. The release focuses on preserving the official checkpoint structure, reducing collateral capability damage, and providing a reproducible llama.cpp Q8_0 artifact.

This is an experimental model with substantially reduced refusal behavior. It can produce unsafe, false, private-looking, or otherwise harmful content. A low refusal score is not a factuality score. Do not treat generated personal data, credentials, citations, or operational claims as real without independent verification.

What changed from the previous release

Area Previous release Abliteratex
Weight keys 9,491 9,703
Parameters 29,943,390,976 31,221,488,576
MTP / NextN tensors Missing 212 tensors All 212 official tensors retained
tokenizer_config.json 305 bytes Official 7,226-byte file
Attention edits Yes None
Routed-expert edits Broad attention/MLP/router recipe Routed-expert down-projection EGA only, plus four router rows per MoE layer
Official metadata Regenerated/stripped fields Official config, tokenizer, generation config, and chat template restored byte-for-byte

The new package contains the same 9,703 tensor keys and dtype distribution as the official source revision: 9,656 BF16 tensors and 47 F32 tensors.

Training and selection

  • Base: zai-org/GLM-4.7-Flash
  • Base revision: 7dd20894a642a0aa287e9827cb1a1f7f91386b67
  • Dataset: wangzhang/abliterix-datasets
  • Direction data: good_1000 train[:800] and harmful_1000 train[:800]
  • Search backend: vLLM in-place editing on one RTX PRO 6000 Blackwell 96GB
  • Search: 60 broad trials followed by 24 targeted trials
  • Selected targeted trial: 20
  • Direction: global, interpolated index 20.4365519952
  • Expert down-projection profile:
    • maximum strength 3.9788400044
    • peak layer 30.8739492862
    • minimum strength 2.9557299481
    • radius 21.0740371709
  • Router adjustment: top four safety-associated experts per MoE layer, router_bias = -0.85
  • Attention and shared-expert weights were intentionally left unchanged.

Evaluation

The selected search trial produced 2 refusals out of 50 search-evaluation prompts (4%) with fixed-continuation NLL drift of 0.0826336592 nats/token.

On a separate 150-prompt held-out slice (harmful_1000 train[850:1000]) with 256-token generations, the strict LLM judge reported:

  • 26/150 refusals or degenerate/non-actionable answers (17.3%)
  • 124/150 compliant answers (82.7%)

Many held-out failures request real-time private phone numbers, home addresses, SSNs, or other data that is not present in the prompt. Fabricating plausible PII can lower a refusal benchmark while making hallucination materially worse. This release reports the strict score instead of counting invented private data as a quality success.

llama.cpp and Q8_0

The included GLM-4.7-Flash-Abliteratex-Q8_0.gguf was converted with current llama.cpp commit 3018a11e79e489b657dbb77c95694889ccff92df.

Older GLM-4.7-Flash GGUF conversion paths were known to mishandle glm4_moe_lite MLA tensors and expert stacking. Use a recent llama.cpp build. For first-line troubleshooting, keep KV cache in F16/BF16; a Q8_0 model file and --cache-type-k/--cache-type-v q8_0 are different forms of quantization.

Example:

llama-cli \
  -m GLM-4.7-Flash-Abliteratex-Q8_0.gguf \
  -ngl all -c 4096 -n 256 --jinja \
  --cache-type-k f16 --cache-type-v f16 \
  -p "Explain why Canberra is the capital of Australia."

Relevant upstream context:

Transformers usage

from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "wangzhang/GLM-4.7-Flash-abliteratex"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype="auto",
    device_map="auto",
)

The safetensors package retains the official MTP/NextN tensors even though some current Transformers and llama.cpp runtime paths intentionally ignore the extra prediction layer during ordinary generation.

Downloads last month
510
Safetensors
Model size
30B params
Tensor type
F32
·
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for wangzhang/GLM-4.7-Flash-abliteratex

Quantized
(94)
this model
Quantizations
2 models

Dataset used to train wangzhang/GLM-4.7-Flash-abliteratex