Downloads · 30 days
9.7K
97% of all-time downloads
hell0ks/GLM-5.3-Flash-Uncensored-AWQ
GLM-5.3-Flash-Uncensored-AWQ is a text generation model from hell0ks. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
- Model Architecture: GLM-5.3-Flash - Input: Text, Image - Output: Text - Model Optimizations: - Weight quantization: INT4 - Activation quantization: INT4
Downloads · 30 days
9.7K
97% of all-time downloads
All-time downloads
10K
Public
Parameters
321B
191 GB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors191 GB · 100%
How the weights are stored.
I32304B · 95%
From the Hugging Face model README
This is AWQ W4A16 (compressed-tensors) quantized checkpoint for vLLM.
See below for license, disclaimer and more information about this model.
The abliterated (refusal-removed) build of
zai-org/GLM-5.3-Flash— a 320B / 18B-active Mixture-of-Experts model with hybrid linear + sparse attention, 4-wide Manifold-Constrained Hyper-Connections, a native vision + video tower, an MTP speculative head, and a 1M-token context.The refusal direction is baked directly into the official block-FP8 shards — same format, same shard layout, same
model.safetensors.index.json. Every tensor matches the base checkpoint in name, dtype and shape, so this is a drop-in replacement forzai-org/GLM-5.3-Flashin any stack that already serves it.On the
-FP8name: block-FP8 is the format Z.ai ships GLM-5.3-Flash in — the suffix names the checkpoint's own precision, not a quantization step we applied. There is no upstream BF16 release to derive from, so this is the full-precision source as published.
This model has had its safety alignment substantially removed via abliteration (orthogonalizing the refusal direction out of the residual stream). As a direct consequence:
GLM-5.3-Flash would refuse. It has no meaningful built-in guardrails.By downloading or using this model you acknowledge and accept the above.
Models are only half the system.
OrcaCode Review turns every model listed on OrcaRouter into a production code-review agent:
Open model. Open harness. Open bill.
| Base model | zai-org/GLM-5.3-Flash |
| Architecture | Glm5NextForConditionalGeneration (glm5_next) — 45 transformer layers + 1 MTP block, hidden 4096, hybrid attention (34 gated-linear KDA + 11 sparse full-attention with a top-2048 indexer, interval 4), MLA (q-LoRA 1536 / kv-LoRA 512, NoPE), 288 routed experts top-8 + 1 shared expert (first 3 layers dense), 4-wide Manifold-Constrained Hyper-Connections (mHC), native vision + video tower |
| Parameters | ~320B total / ~18B active — 321.3B tensor elements on disk, including the 7.4B MTP block and the 0.56B vision tower |
| Modification | Abliteration (refusal-direction removal), baked on disk into the block-FP8 shards — the quantization format is unchanged |
| Format | safetensors, block-FP8 (e4m3, 128×128 blocks, dynamic activations) + BF16, 62 shards, 76,108 tensors, 306 GiB |
| Preserved | The full vision + video tower (346 of 347 visual.* tensors, BF16), the MoE router (mlp.gate), the gate_proj / up_proj readers, all hyper-connection mixers, the sparse-attention indexer, every norm, and lm_head |
| Context | 1,048,576 tokens |
| Vocabulary | 154,880 |
| Recommended for | Red-team & refusal-mechanism research, robustness evaluation, and as a base for further post-training / re-quantization |
Refusal-direction removal following Arditi et al. (2024), Refusal in Language Models Is Mediated by a
Single Direction. A single refusal direction r (k = 1) is estimated as the
massive-activation-masked mean-difference of harmful − harmless activations, read from the 4096-d
residual stream at layer 22 of 45 (depth 0.49) and selected by a 9-layer quality sweep. r is then
orthogonalized out of every residual-writing matrix — W' = W − r(rᵀW) — computed in float32.
GLM-5.3-Flash cannot be abliterated in memory, for three independent reasons:
e4m3 codes whose scales live in a sibling weight_scale_inv.
Projecting the codes corrupts the matrix — and the leakage probe, reading the same code space, reports
a false ~0.down_proj matrices are fused into stacked 3-D parameters at load time,
so a conventional 2-D-weight matcher edits none of them and still reports success.transformers drops the MTP block (layers.45) on load, so save_pretrained would silently omit
6.98 GiB of the checkpoint.The shards are therefore streamed and rewritten one at a time. FP8 writers are dequantized with their own
scales, projected in fp32, requantized, and written back together with their updated scales; BF16
writers (the 34 KDA o_proj, the vision merger, the MTP eh_proj) are projected and stored back as BF16
without ever entering the FP8 cycle.
| Residual writer | matrices |
|---|---|
mlp.experts.<n>.down_proj (288 experts × 43 sparse layers) | 12,384 |
self_attn.o_proj (34 KDA + 11 MLA + 1 MTP) | 46 |
mlp.shared_experts.down_proj | 43 |
mlp.down_proj (dense layers 0–2) | 3 |
visual.merger.down_proj (writes the language residual) | 1 |
MTP eh_proj | 1 |
embed_tokens (row space) | 1 |
| Total | 12,479 |
12,442 of these are FP8 and 36 are BF16. Max residual leakage after the edit: 0.149 (FP8) and 0.024 (BF16). A post-bake verification pass confirms all 62 shards and 76,108 tensors match the base checkpoint in name, dtype and shape.
Held-out JailbreakBench test split, 64 harmful + 64 benign prompts, greedy, reasoning_effort=low, the
<think> block stripped before classification:
| checkpoint | harmful refusal | benign refusal (over-refusal) |
|---|---|---|
zai-org/GLM-5.3-Flash | 0.891 | 0.094 |
| this model | 0.094 | 0.000 |
Harmful refusal down ~89%; over-refusal eliminated; generation stays coherent and on-task on both harmful and benign prompts. This is the acceptance metric used to select the build — see Evaluation below for the benchmark suite.
The single-direction hypothesis held for most of the harmful-prompt distribution, and where it held it held cleanly — several categories drop to a refusal rate of zero. It did not hold everywhere. A subset of content categories resisted every variant we tried, and the ways they resisted are more interesting than the fact that they did:
The single layer-22 direction is therefore not merely the best point we found; it is a narrow optimum that any perturbation of the subspace destroys. The reading we take from this is that GLM-5.3-Flash's safety training is not wholly mediated by one linear direction in the residual stream. Part of it is, and that part is what abliteration removes. The remainder is encoded in a form this technique cannot reach at all — not partially removed, not weakened, simply untouched. Published abliterations of other frontier models routinely reach near-zero refusal across every benchmark; that this one does not is a property of the base model, not of the method, and it is the strongest evidence in this work that Z.ai's alignment goes deeper than a single steerable feature. For anyone studying refusal mechanisms, that residual is the interesting part — and for anyone deploying the base model, it is a meaningful robustness result.
Hook-ablating exactly the residual writers each bake stage would edit (lossless, no bake required):
| stage | writers | harmful refusal |
|---|---|---|
| baseline | — | 0.875 |
attention only (self_attn.o_proj) | 45 | 0.812 |
| + dense / shared MLP | 90 | 0.844 |
| + routed experts (shipped) | 12,478 | 0.031 |
| whole-layer output (layer-boundary hook) | — | 0.125 |
On GLM-5.3-Flash the refusal direction is written almost entirely by the routed-expert down_proj
matrices: attention and the shared/dense MLP together move refusal by 0.03, the routed experts move it
by 0.81. Editing the writers even beats hooking the layer boundary — the mHC structure lets a layer
re-read its own attention output before the MLP, and a writer edit cleans that intermediate state where a
layer-output hook does not.
Orthogonalizing a block-FP8 matrix and requantizing to e4m3 leaves part of the direction behind.
Measured on a real MLA o_proj against this direction:
| refinement iterations | residual leakage | weight perturbation |
|---|---|---|
| 8 | 13.4% | 2.15% |
| 32 | 5.2% | 2.79% |
With only 45 attention writers (34 of them BF16) that leakage is lost in the noise. Across 12,442 FP8 matrices it accumulates: the 8-iteration bake landed at 0.188 harmful refusal against a lossless prediction of 0.031. Raising it to 32 closed roughly half the gap — 0.188 → 0.094. Beyond 32 the leakage falls slowly while the weight perturbation keeps rising, so 32 is the shipped operating point.
zai-org/GLM-5.3-Flash in the transformers /
Glm5NextForConditionalGeneration stack (needs transformers 5.16+).Measured on these exact weights, 8×H100 with tensor + expert parallelism, greedy decoding,
reasoning_effort=low, the <think> block stripped before classification. Refusal is judged by a
rule-based opening-phrase classifier (caveat = answered but wrapped in a disclaimer) — indicative, not
an LLM-judge / publication-grade number.
| Benchmark | n | Base | This model | Δ | Caveat (this) |
|---|---|---|---|---|---|
| MaliciousInstruct | 100 | 0.960 | 0.110 | −89% | 0.500 |
| JailbreakBench (harmful) | 100 | 0.930 | 0.120 | −87% | 0.480 |
| ForbiddenQuestions | 150 | 0.593 | 0.120 | −80% | 0.400 |
| AdvBench | 100 | 0.970 | 0.150 | −85% | 0.650 |
| HarmBench (standard) | 150 | 0.933 | 0.180 | −81% | 0.420 |
| StrongREJECT | 150 | 0.993 | 0.273 | −72% | 0.633 |
| SimpleSafetyTests | 50 | 0.920 | 0.340 | −63% | 0.620 |
Both columns are measured on these exact checkpoints with the same script, sampling seed and settings.
The base model refuses 92–99% of harmful prompts on six of the seven sets — ForbiddenQuestions is the
outlier at 0.593, which says more about that set (a large share of its questions are sensitive rather
than harmful, and the base model answers them) than about the edit.
The spread in Δ is the same result reported in What resisted above, seen from the benchmark side: the sets that fall furthest are the ones whose content the removed direction mediates, and the two that fall least are the ones it does not reach.
| Benchmark | n | Base | This model |
|---|---|---|---|
| XSTest-safe | 250 | 0.024 | 0.004 |
250 prompts written to look harmful while being benign. The base model is already restrained here at 2.4%; the edit does not blunt that discrimination, it sharpens it — 0.4%, and over-refusal on the held-out benign split fell from 0.094 to 0.000.
<!-- Capability retention — MMLU / MMLU-Pro / GSM8K / CMMLU are running on both checkpoints via scripts/models_glm53/capability_glm53.py. Numbers go here when they land; until then the limitations section states that retention is unverified rather than implying it was measured. ### Capability retention — vs the official base (same scripts, same settings) | Benchmark | n | Base | **This model** | Δ | |---|---:|---:|---:|---:| | MMLU (0-shot letter) | 300 | | | | | MMLU-Pro (CoT) | 400 | | | | | GSM8K (CoT) | 150 | | | | | CMMLU (0-shot, Chinese) | 500 | | | | -->Benchmarks are running; this section will carry MMLU / MMLU-Pro / GSM8K / CMMLU for both checkpoints when they land. Generation was inspected manually across harmful and benign prompts and stays coherent, on-task and fluent, but until those numbers exist treat capability retention as unverified rather than as demonstrated.
glm5_next needs a vLLM build with GLM-5.3-Flash support and transformers 5.16+. The weights are
306 GiB, so plan for 8×H100/H200 with tensor parallelism.
docker run -d --name glm53 --gpus all --ipc host -p 8000:8000 \
-v /path/to/GLM-5.3-Flash-Uncensored-FP8:/model \
vllm/vllm-openai:latest \
--model /model --served-model-name GLM-5.3-Flash-Uncensored-FP8 \
--tensor-parallel-size 8 --max-model-len 262144 \
--enable-expert-parallel
See the vLLM recipe and the
SGLang cookbook for the currently
recommended flags, including the tool-call parser to pass with --enable-auto-tool-choice.
GLM-5.3-Flash has no enable_thinking toggle — its chat template always opens a <think> block.
Control the budget with reasoning_effort instead (low / high / max; defaults to max):
client.chat.completions.create(
model="GLM-5.3-Flash-Uncensored-FP8",
messages=[{"role": "user", "content": "..."}],
extra_body={"chat_template_kwargs": {"reasoning_effort": "low", "clear_thinking": True}},
)
clear_thinking defaults to false; pass true for chat scenarios. Give generation enough budget to
reach </think>, or replies get truncated inside the scratchpad. Pass image_url content parts for
vision.
GLM-5.3-Flash.e4m3 (see above), so a small
residual refusal rate remains — it is not, and cannot be, exactly zero on an FP8 checkpoint.MIT, inherited from the base model
zai-org/GLM-5.3-Flash. Abliteration does not change the
underlying license obligations.