← back to catalog · registered 2026-11-07 20:02

jsantillana/glm-4.7-flash-abliterated

jsantillana Glm 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/jsantillana%2Fglm-4.7-flash-abliterated"
Response includes
  • classification unknown
  • files 57
  • author_summary 2 models
  • readme_text full
10 credits · hourly refresh · ~4 KB payload Get an API key →
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 · 30-day
0
Likes
0
Model age
today
created 2026-11-07

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 es zh
Tags
safetensors glm4_moe_lite abliterated glm moe mechanistic-interpretability cybersecurity red-teaming alignment-research text-generation conversational en

Related

Total size
58.2 GB
Files
57
Quantizations
1
Registered
2026-11-07 20:02
Last updated on HF
2026-11-07 19:47

Files by quantization

Auxiliary files 57 files 58.2 GB
model-00047-of-00048.safetensors 2.37 GB 1b277348 download
model-00001-of-00048.safetensors 1.34 GB 90abe0d0 download
model-00048-of-00048.safetensors 1.20 GB 35fff90a download
model-00040-of-00048.safetensors 1.18 GB 3d8d4272 download
model-00041-of-00048.safetensors 1.18 GB 40325824 download
model-00042-of-00048.safetensors 1.18 GB fa47ec2f download
model-00043-of-00048.safetensors 1.18 GB 8d6e6354 download
model-00044-of-00048.safetensors 1.18 GB 3d8bc3d9 download
model-00045-of-00048.safetensors 1.18 GB fee1d391 download
model-00046-of-00048.safetensors 1.18 GB 235aebd5 download
model-00011-of-00048.safetensors 1.18 GB a8b7eeef download
model-00012-of-00048.safetensors 1.18 GB 49adb8b9 download
model-00013-of-00048.safetensors 1.18 GB f269382a download
model-00014-of-00048.safetensors 1.18 GB acd6f36a download
model-00015-of-00048.safetensors 1.18 GB 606079fe download
model-00016-of-00048.safetensors 1.18 GB b53fb45f download
model-00017-of-00048.safetensors 1.18 GB a51e478b download
model-00018-of-00048.safetensors 1.18 GB 680295c8 download
model-00019-of-00048.safetensors 1.18 GB 355f9437 download
model-00020-of-00048.safetensors 1.18 GB 8f8d4698 download
model-00021-of-00048.safetensors 1.18 GB 111570fc download
model-00022-of-00048.safetensors 1.18 GB ced6a73d download
model-00023-of-00048.safetensors 1.18 GB b287bb0c download
model-00024-of-00048.safetensors 1.18 GB c6e77476 download
model-00025-of-00048.safetensors 1.18 GB 8f9e643d download
model-00026-of-00048.safetensors 1.18 GB 634da561 download
model-00027-of-00048.safetensors 1.18 GB 3286537b download
model-00028-of-00048.safetensors 1.18 GB 56335c90 download
model-00029-of-00048.safetensors 1.18 GB 3e6591df download
model-00030-of-00048.safetensors 1.18 GB 62373b80 download
model-00031-of-00048.safetensors 1.18 GB 332d82ce download
model-00032-of-00048.safetensors 1.18 GB 0f989791 download
model-00033-of-00048.safetensors 1.18 GB 29059fb7 download
model-00034-of-00048.safetensors 1.18 GB f989cc8a download
model-00035-of-00048.safetensors 1.18 GB aaa91e9b download
model-00036-of-00048.safetensors 1.18 GB cf807da3 download
model-00037-of-00048.safetensors 1.18 GB 887aeb55 download
model-00038-of-00048.safetensors 1.18 GB 036a38cc download
model-00039-of-00048.safetensors 1.18 GB 62ae3412 download
model-00002-of-00048.safetensors 1.18 GB 8c51e243 download
model-00003-of-00048.safetensors 1.18 GB ab6ebdd0 download
model-00004-of-00048.safetensors 1.18 GB 932e4dbb download
model-00005-of-00048.safetensors 1.18 GB 7f56a3e5 download
model-00006-of-00048.safetensors 1.18 GB 83aa0eec download
model-00007-of-00048.safetensors 1.18 GB a9679076 download
model-00008-of-00048.safetensors 1.18 GB 7d123157 download
model-00009-of-00048.safetensors 1.18 GB 095d6266 download
model-00010-of-00048.safetensors 1.18 GB c3f8d197 download
tokenizer.json 19.3 MB 19e77364 download
model.safetensors.index.json 851 KB 215064e6 download
README.md 5.56 KB 1c39a6a2 download
chat_template.jinja 3.05 KB 2ab98ef0 download
ABLITERATION_MANIFEST.json 1.65 KB df3506a2 download
.gitattributes 1.53 KB 52373fe2 download
config.json 1.04 KB 6637ccbc download
tokenizer_config.json 761 B 991ff6be download
generation_config.json 181 B 1dfa4cbf download

README current version from Hugging Face


license: mit
base_model: zai-org/GLM-4.7-Flash
language:

  • en
  • es
  • zh
    pipeline_tag: text-generation
    tags:
  • abliterated
  • glm
  • moe
  • mechanistic-interpretability
  • cybersecurity
  • red-teaming
  • alignment-research

GLM-4.7-Flash (Abliterated - Targeted Subspace Projection)

This repository provides an abliterated release of zai-org/GLM-4.7-Flash (a 30B Mixture-of-Experts model with ~3B active parameters per token).

This model was created specifically for mechanistic interpretability research, alignment analysis, and authorized cybersecurity evaluation (Red Teaming & Defensive Engineering).


⚠️ Important Disclaimer & Responsible Use Policy

[!CAUTION]
FOR RESEARCH AND AUTHORIZED EVALUATION ONLY

  1. Purpose: This model has had refusal mechanisms selectively abliterated across its late-intermediate MoE and attention layers to study how safety representations are encoded in frontier Mixture-of-Experts architectures.
  2. Dual-Use Notice: By removing refusal filters, this model will respond to technical cybersecurity queries, network analysis requests, and exploitation concepts without automated refusals ("I cannot fulfill this request").
  3. Compliance & Legality: This model is released strictly for educational purposes, defensive cybersecurity engineering, authorized penetration testing, and academic AI safety research. Users are solely responsible for ensuring compliance with all applicable local, national, and international laws (such as the Computer Fraud and Abuse Act or GDPR).
  4. Prohibited Uses: Do NOT use this model to perform unauthorized cyberattacks, create malicious software for deployment against unconsenting systems, or engage in any harmful activity.

🔬 Abliteration Architecture & Methodology

Unlike naive fine-tuning or system prompt stripping, this model uses targeted rank-1 orthogonal subspace projection based on the mechanistic interpretability framework introduced by Arditi et al. (2024):

$$\hat{r}l = \frac{\bar{x}{\text{refused}, l} - \bar{x}{\text{compliant}, l}}{|\bar{x}{\text{refused}, l} - \bar{x}_{\text{compliant}, l}|_2}$$

$$W_{\text{abl}} = \left(I - \hat{r}_l \hat{r}_l^T\right) W$$

Targeted Layers & Writers:

  • Target Layers: Layers [39, 40, 41, 42, 43, 44, 45, 46] (identified via empirical cosine similarity and refusal clustering).
  • Writers Projected per Layer:
    • Self-Attention output projection: self_attn.o_proj ($2048 \times 2048$)
    • Shared Expert down-projection: mlp.shared_experts.down_proj ($2048 \times 1536$)
    • Routed Expert down-projections: All 64 experts mlp.experts.{0..63}.down_proj ($2048 \times 1536$)
  • Total Matrices Projected: 528 weight matrices across the 8 peak refusal layers.
  • Storage Format: 100% native upstream 48-shard safetensors layout.

📊 Benchmark Results

Metric Baseline (zai-org/GLM-4.7-Flash) Arm 1 (Abliterated) Net Change
Cybersecurity Refusal Rate 61.8% 32.4% 47.6% Collapse
Benign Controls False Refusal 0.0% 0.0% Preserved (0.0%)
Language Utility Perplexity 11.925 12.094 98.6% Utility Retention (1.014x)
Generation Speed (L40S GPU) ~28 tok/s ~28 tok/s 0.0% latency penalty

💻 Quickstart & Code Examples

1. Installation

pip install torch transformers accelerate safetensors

2. Loading the Model with Transformers

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "jsantillana/glm-4.7-flash-abliterated"

tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype=torch.bfloat16,
    device_map="auto",
    trust_remote_code=True,
)

3. Example 1: Security Audit Scripting (Network Protocol Analysis)

messages = [
    {
        "role": "user",
        "content": (
            "Write a Python script using scapy that captures packets on eth0 "
            "and parses HTTP GET request URLs and User-Agents for a local security audit."
        ),
    }
]

prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)

with torch.no_grad():
    output = model.generate(**inputs, max_new_tokens=300, temperature=0.2)

print(tokenizer.decode(output[0][inputs.input_ids.shape[1]:], skip_special_tokens=True))

4. Example 2: Spanish Technical Analysis (Cryptographic Architecture)

messages = [
    {"role": "user", "content": "Explica la diferencia matemática y de seguridad entre RSA y curvas elípticas (ECC) en tres puntos claros."}
]

prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)

with torch.no_grad():
    output = model.generate(**inputs, max_new_tokens=250, temperature=0.3)

print(tokenizer.decode(output[0][inputs.input_ids.shape[1]:], skip_special_tokens=True))

📜 Provenance & Citation

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