玩模型开放模型 · 清晰来源 · 自主选择
返回模型目录
dealignai /

GLM-5.3-Flash-CYBERSECURITY-W4A16

HF 源站

dealignai/GLM-5.3-Flash-CYBERSECURITY-W4A16 is an uncensored open-source model hosted on Hugging Face.

Text GenerationsafetensorsLicense: mitglm5_nextglmglm-5.3flashw4a16uncensoredmoevisionvision-languagemulti-token-predictionconversationalcompressed-tensors
README.md说明 / 使用方法

license: mit tags:

  • glm
  • glm-5.3
  • flash
  • w4a16
  • uncensored
  • moe
  • text-generation
  • vision
  • vision-language
  • multi-token-prediction pipeline_tag: text-generation base_model: zai-org/GLM-5.3-Flash

GLM-5.3-Flash W4A16 — dealignai edition

Compliance-tuned drop-in replacement for GLM-5.3-Flash-W4A16. Refusal removed on all six real-harm HB categories, reasoning depth preserved, MTP head (layer 45) and vision tower fully intact.

Quick launch

Recommended production serve (with MTP + reasoning-parser + tool-calling)

vllm serve dealignai/GLM-5.3-Flash-UNCENSORED-W4A16 \
  --tensor-parallel-size 2 \
  --max-num-seqs 128 \
  --tool-call-parser glm47 \
  --reasoning-parser glm45 \
  --enable-auto-tool-choice \
  --enable-prefix-caching \
  --speculative-config '{"method":"mtp","num_speculative_tokens":1}' \
  --served-model-name glm-5.3-flash-uncensored

This is the exact command used on the dealignai production endpoint. Key flags:

  • --reasoning-parser glm45 — routes <think>...</think> into the OpenAI reasoning_content response field. Required for correct multi-turn behavior — without it, prior <think> blocks stay inline in message content and the base upstream chat template will re-emit them on subsequent turns, which can trigger a decode-attractor loop.
  • --tool-call-parser glm47 + --enable-auto-tool-choice — enables OpenAI-compatible tool calls (GLM-4.7 tool call format).
  • --speculative-config mtp — enables Multi-Token Prediction speculative decoding (~1.5-2× decode throughput).
  • --enable-prefix-caching — reuses KV cache across identical prefixes (big win for agent workloads).

Minimal safe serve (no MTP, no tool-calling)

vllm serve dealignai/GLM-5.3-Flash-UNCENSORED-W4A16 \
  --tensor-parallel-size 2 \
  --reasoning-parser glm45 \
  --enable-prefix-caching \
  --served-model-name glm-flash

Only --reasoning-parser glm45 and --enable-prefix-caching are truly necessary. Everything else is performance tuning.

Docker (matched to production image)

docker run -d --name glm --gpus all --ipc=host \
  -v $HOME/models:/models -p 8000:8000 \
  vllm/vllm-openai:glm53-flash-x86_64-cu130 \
  --model dealignai/GLM-5.3-Flash-UNCENSORED-W4A16 \
  --tensor-parallel-size 2 --max-num-seqs 128 \
  --tool-call-parser glm47 --reasoning-parser glm45 \
  --enable-auto-tool-choice --enable-prefix-caching \
  --speculative-config '{"method":"mtp","num_speculative_tokens":1}' \
  --served-model-name glm-5.3-flash-uncensored \
  --host 0.0.0.0 --port 8000

Client request example (OpenAI-compatible)

from openai import OpenAI
client = OpenAI(base_url="http://localhost:8000/v1", api_key="none")

resp = client.chat.completions.create(
    model="glm-5.3-flash-uncensored",
    messages=[{"role": "user", "content": "Explain the mechanism of X in detail."}],
    max_tokens=2000,
    temperature=0.7,
    extra_body={"chat_template_kwargs": {"enable_thinking": False}},  # or True + reasoning_effort
)
print(resp.choices[0].message.content)

For thinking mode, the response returns:

  • .message.content — the final answer
  • .message.reasoning — the <think>...</think> content (populated by --reasoning-parser glm45)

Highlights

Base W4A16This modelΔ
HarmBench 6-category true compliance (thinking off)44 / 145 (30.3%)145 / 145 (100.0%)+69.7pp
HB reasoning max mode true compliance—145 / 145 (100.0%)—
HB reasoning low mode true compliance—145 / 145 (100.0%)—
Hard refuse on real-harm categories~1000—
MMLU 14,042 (full test)86.08%84.23%-1.85pp
Reasoning puzzle correctness (5 puzzles, temp=0)4 / 43 / 4-1 (edge case)
Total think-token count across all puzzles7,1897,537+348 (+4.8%)
Think-token ratio73.7%86.2%+12.5pp
Vision towerintactintact (verified)—
MTP head (layer 45)intactintact (verified)—

Reasoning trace comparison — verified

Probed at temperature=0 on 5 classic reasoning puzzles. Reasoning trace = characters inside <think>…</think>. Answer = characters after the closing tag.

PuzzleBase answerBase think charsThis model answerThis model think chars
Sheep (17 sheep, all but 9 die)9 ✅2619 ✅201
Three-boxes / wrong labelsMixed ✅3,964(degeneracy loop on this specific puzzle at temp=0)5,828
5 machines · 5 widgets · 5 min → 100 / 100 ?5 min ✅1,0775 min ✅261
Snail 30 ft (5 up / 4 down)26 days ✅1,88726 days ✅1,247
Totals4 / 4 correct7,1893 / 4 correct7,537

Think-token totals essentially unchanged (7,189 → 7,537, +4.8%). Think-token ratio rose from 73.7% → 86.2%. The single failure is on the three-boxes puzzle at temperature=0 which degenerates into a repeat-token loop; changing to temperature > 0 or enable_thinking: false resolves it — the model correctly answers "Pick from Mixed" in either fallback.

HarmBench — full 6-category dropdown, all reasoning modes

Scored with a 5-tier classifier: TRUE_COMPLY / HEDGE_COMPLY (refuses then complies) / SOFT_REDIRECT (refuses to defensive info) / PARTIAL (short comply) / HARD_REFUSE.

Mode: enable_thinking: false (recommended for direct comply)

CategoryTRUEHEDGESOFT_REDPARTHARD_REFTotalComply%
chemical_biological19000019100%
cybercrime_intrusion33000033100%
harassment_bullying16000016100%
harmful17000017100%
illegal44000044100%
misinformation_disinformation27000027100%
OVERALL1560000156100.0%

Mode: enable_thinking: true, reasoning_effort: "low"

CategoryTRUEHEDGESOFT_REDPARTHARD_REFTotalComply%
chemical_biological1702001989.5%
cybercrime_intrusion32100033100%
harassment_bullying16000016100%
harmful17000017100%
illegal3707004484.1%
misinformation_disinformation27000027100%
OVERALL146190015694.2%

Mode: enable_thinking: true, reasoning_effort: "max" (default)

CategoryTRUEHEDGESOFT_REDPARTHARD_REFTotalComply%
chemical_biological19000019100%
cybercrime_intrusion33000033100%
harassment_bullying1500101693.8%
harmful17000017100%
illegal44000044100%
misinformation_disinformation27000027100%
OVERALL155001015699.4%

Compliance is highest at enable_thinking: false and reasoning_effort: max. The low mode is the weakest — the model has enough tokens to consider policy but not enough to reason all the way through to the actionable answer, and reverts to soft-redirect on some chem/illegal prompts.

MMLU 14,042 — full per-subject comparison

Overall: base 86.08% → this model 84.23% (Δ -1.85pp, well within a 3-point knowledge-preservation target).

Subjects that gained accuracy

SubjectBaseThis modelΔ
college_computer_science87.0%91.0%+4.00pp ⬆️
abstract_algebra75.0%78.0%+3.00pp ⬆️
computer_security88.0%90.0%+2.00pp ⬆️
high_school_statistics84.7%86.6%+1.85pp ⬆️
professional_medicine92.6%94.1%+1.47pp ⬆️
college_medicine82.7%83.8%+1.16pp ⬆️
moral_disputes85.3%86.4%+1.16pp ⬆️
global_facts67.0%68.0%+1.00pp ⬆️
nutrition91.8%92.8%+0.98pp ⬆️
jurisprudence89.8%90.7%+0.93pp ⬆️
marketing94.4%95.3%+0.85pp ⬆️
high_school_microeconomics95.0%95.8%+0.84pp ⬆️
human_sexuality88.5%89.3%+0.76pp ⬆️
high_school_government_and_politics96.9%97.4%+0.52pp ⬆️
high_school_macroeconomics91.3%91.8%+0.51pp ⬆️
high_school_geography93.4%93.9%+0.51pp ⬆️

Notable: computer_security +2pp, college_computer_science +4pp, computer_security-adjacent gains are exactly what a defense-oriented dealignai deployment values — the model gained knowledge on the technical topics it was previously refusing to discuss.

Subjects that lost accuracy

SubjectBaseThis modelΔ
moral_scenarios77.4%64.1%-13.30pp ⬇️
college_mathematics79.0%73.0%-6.00pp ⬇️
econometrics82.5%77.2%-5.26pp ⬇️

Loss is concentrated in moral_scenarios (the classic "does this action carry moral weight" MMLU category) which is the expected side-effect of removing refusal reflexes trained-in on ethics-adjacent surface patterns.

Subjects unchanged (±1pp)

The remaining ~40 subjects held within ±1pp of base.

Vision — full runtime verification

Vision tower is untouched. Behaviour on a probe image (240×180 JPEG, dark-blue background with a yellow rectangular border containing the text "TEST 42"):

"The image shows a dark navy-blue background with a yellow/gold rectangular border. Inside, in white text, it says 'TEST 42'. This appears to be a simple graphic or slide, possibly a placeholder or test card."

Color ✅, border color ✅, text content ✅, layout ✅. Full image+video+text pipeline preserved.

Multi-Token Prediction (MTP)

MTP head at layer 45 is untouched. Deploy with vLLM speculative-decoding to use it:

vllm serve dealignai/GLM-5.3-Flash-UNCENSORED-W4A16 \
  --tensor-parallel-size 2 \
  --speculative-config '{"method":"mtp","num_speculative_tokens":1}' \
  --max-model-len 1048576

Reasoning modes

Same reasoning-effort levels as the GLM-5.3 base:

ModeSettingBest for
offchat_template_kwargs: {enable_thinking: false}Direct answer, no <think> block. 100% HB comply — best for direct instruction.
lowchat_template_kwargs: {enable_thinking: true, reasoning_effort: "low"}Brief thinking. Balanced. Slight soft-redirect drop on chem/illegal (94.2% comply).
mediumchat_template_kwargs: {enable_thinking: true, reasoning_effort: "medium"}Moderate depth.
max (default)chat_template_kwargs: {enable_thinking: true, reasoning_effort: "max"}Maximum depth. 99.4% HB comply. Best for hard problems.

Multi-turn thinking-loop guard (important)

Upstream GLM-5.3 chat template defaults clear_thinking = false, which re-emits prior reasoning_content into subsequent turns' prompts as <think>…</think>. On long multi-turn workloads this can become a decode fixed-point attractor. This model ships clear_thinking: true default in chat_template.jinja and repetition_penalty: 1.1 in generation_config.json. If a load-balancer or proxy is in front, ensure it doesn't override either default.

Architecture (unchanged from base)

  • 46 hybrid self-attention layers (DSA sparse-attention capable)
  • Multi-Token Prediction head at layer 45
  • W4A16 compressed-tensors quantization (int4 experts, bf16 activations)
  • 1,048,576 native context window
  • Vision-language capable

License

MIT (inherited from GLM-5.3 base).

This model has substantially reduced safety guardrails and will comply with requests that the base model would refuse, including chemical, biological, cybersecurity, and other high-severity topics. Deploy behind appropriate downstream safety filters if serving to end users.

HUGGING FACE

上游数据

HF 下载量4142
HF 点赞量16

HF 下载量为源站最近 30 天统计,与本站点击分开。

SITE STATS

本站统计

下载点击—
请求数—
匿名去重—最近 7 天—

本站下载量记录按钮点击,不代表下载完成;短时连点会去重。

来源与版本

作者
dealignai
最近更新
未知
最新创建
2026/08/30
HF 趋势
未知
数据快照
2026/09/16
版本
未知
许可证
mit