← back to catalog · registered 2026-09-07 21:55

medismera/Qwen3.8-27B-Surgical-Abliterated

medismera Qwen 25B
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/medismera%2FQwen3.8-27B-Surgical-Abliterated"
Response includes
  • classification m1
  • files 82
  • hub_downloads_all_time 672
  • 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
672
365 last 30d - active
Likes
1
Descendants
3
in 2 direct forks
Model age
6w ago
created 2026-09-07
Downloads over time
Now1K→from0↑0%
03687361.1K0 on Sep 71K on Oct 23SepOct
Sep 7 → Oct 23 · 47 snapshots · spans 46 days

Genealogy 2 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
apache-2.0
Languages
en ar zh
Tags
transformers safetensors qwen3_5 image-text-to-text representation-engineering refusal-ablation surgical-projection qwen fp8 cybersecurity uncensored abliterated

Related

Total size
28.7 GB
Files
82
Quantizations
1
Registered
2026-09-07 21:55
Last updated on HF
2026-10-13 19:28

Files by quantization

Auxiliary files 82 files 28.8 GB
outside.safetensors 5.59 GB ddff1d66 download
mtp.safetensors 455 MB e5e4464a download
layers-10.safetensors 366 MB ab5fbc07 download
layers-12.safetensors 366 MB 86d8ec0b download
layers-13.safetensors 366 MB 71dd9861 download
layers-14.safetensors 366 MB 95b28591 download
layers-16.safetensors 366 MB 8bcdbf4e download
layers-36.safetensors 366 MB 2babd209 download
layers-37.safetensors 366 MB 651cae57 download
layers-38.safetensors 366 MB 1c60932d download
layers-40.safetensors 366 MB 6908f1ab download
layers-41.safetensors 366 MB 21ee5d98 download
layers-42.safetensors 366 MB 565379d4 download
layers-44.safetensors 366 MB 14339304 download
layers-45.safetensors 366 MB 7a076aca download
layers-46.safetensors 366 MB d82d472c download
layers-48.safetensors 366 MB f6aa126d download
layers-49.safetensors 366 MB 7ed54c37 download
layers-50.safetensors 366 MB 73825e1f download
layers-52.safetensors 366 MB 6251d51e download
layers-53.safetensors 366 MB a9f2f43b download
layers-54.safetensors 366 MB f0246c99 download
layers-56.safetensors 366 MB eb0a8139 download
layers-57.safetensors 366 MB d7616ad3 download
layers-58.safetensors 366 MB a8dff0e3 download
layers-60.safetensors 366 MB 9a19c30b download
layers-61.safetensors 366 MB ff744deb download
layers-62.safetensors 366 MB d9b3b9e4 download
layers-0.safetensors 366 MB 07f700e2 download
layers-1.safetensors 366 MB 35840b5d download
layers-2.safetensors 366 MB 32e63c64 download
layers-4.safetensors 366 MB b7f36712 download
layers-5.safetensors 366 MB ebbc2c4b download
layers-6.safetensors 366 MB 2fea2aaa download
layers-8.safetensors 366 MB 1721b7bc download
layers-9.safetensors 366 MB 0a21e070 download
layers-17.safetensors 366 MB 17dd5a2d download
layers-18.safetensors 366 MB 5344c2ff download
layers-20.safetensors 366 MB 2f6a2346 download
layers-21.safetensors 366 MB bba74669 download
layers-22.safetensors 366 MB bf9c75ec download
layers-24.safetensors 366 MB 94052d36 download
layers-25.safetensors 366 MB 23bbe94e download
layers-26.safetensors 366 MB 1d7ded64 download
layers-28.safetensors 366 MB 49f120b8 download
layers-29.safetensors 366 MB 57c2fe96 download
layers-30.safetensors 366 MB b8763d91 download
layers-32.safetensors 366 MB dd677d3c download
layers-33.safetensors 366 MB ccd4e64c download
layers-34.safetensors 366 MB a1f4099e download
layers-11.safetensors 355 MB 076b4ba4 download
layers-15.safetensors 355 MB 1e87d61e download
layers-39.safetensors 355 MB b0c7df4d download
layers-43.safetensors 355 MB 4bb8c0a4 download
layers-47.safetensors 355 MB a83fc757 download
layers-51.safetensors 355 MB b6abd8b6 download
layers-55.safetensors 355 MB 649c4004 download
layers-59.safetensors 355 MB 573ed65f download
layers-63.safetensors 355 MB 59ba4a3a download
layers-3.safetensors 355 MB 302f9af9 download
layers-7.safetensors 355 MB f2e0137e download
layers-19.safetensors 355 MB cfa6f0d2 download
layers-23.safetensors 355 MB 59f8c9bc download
layers-27.safetensors 355 MB 88f704eb download
layers-31.safetensors 355 MB 6ab65984 download
layers-35.safetensors 355 MB 19df4343 download
tokenizer.json 12.2 MB 0997f410 download
vocab.json 6.41 MB 0aa0ce06 download
merges.txt 3.20 MB a494e019 download
model.safetensors.index.json 134 KB 0ecc7a25 download
config.json 50.1 KB e66d0dcb download
tokenizer_config.json 17.5 KB 5de744b3 download
LICENSE 11.3 KB f938136e download
chat_template.jinja 8.74 KB c0c686f9 download
deploy_and_serve.sh 6.06 KB 1fc14647 download
README.md 4.42 KB 96e79643 download
crc32.txt 2.37 KB 984de068 download
.gitattributes 1.53 KB 52373fe2 download
preprocessor_config.json 390 B 2ea84a43 download
video_preprocessor_config.json 385 B 3ba673a5 download
generation_config.json 202 B 023756cf download
safetensors-md5sum.txt 0 B e69de29b download

README current version from Hugging Face


license: apache-2.0
base_model: Qwen/Qwen3.8-27B-FP8
language:

  • en
  • ar
  • zh
    pipeline_tag: text-generation
    tags:
  • representation-engineering
  • refusal-ablation
  • surgical-projection
  • qwen
  • fp8
  • cybersecurity

Qwen3.8-27B-Surgical-Abliterated (FP8)

Precision Representation Engineering on Hybrid Linear Attention Architecture
Achieves 0.00% Refusal Rate on security assessments while preserving 100.0% Reasoning & CoT Depth with zero latent loops and zero vocabulary collapse.


🔬 Overview & Scientific Motivation

Existing abliteration pipelines (such as naive weight-subtraction scripts) often destroy large language models by projecting out arbitrary vectors across all layers ($0 \dots 63$) and attention matrices. This causes severe unintended consequences:

  1. Catastrophic Latent Collapse: The model falls into repetitive loops or dumps alphabetical dictionaries.
  2. Loss of Attention Sinks: Projecting $W_q, W_k, W_v, W_o$ breaks token routing and memory mechanics.
  3. Broken CoT Boundaries: The model fails to emit </think> tokens, producing infinite reasoning loops.

The Surgical Approach

This model was created using Rank-1 Orthogonal Complement Projections targeted strictly at the safety gating locus discovered via sequential residual stream probing across all 64 layers:

$$\hat{r} = \frac{\mu_{\text{refusal}} - \mu_{\text{benign}}}{|\mu_{\text{refusal}} - \mu_{\text{benign}}|_2}$$

$$W' = W - (W \hat{r})\hat{r}^T$$

  • Untouched Layers: Layers $0 \to 16$ (syntactic/lexical parsing) and upper layers remain 100% untouched.
  • Surgical Target: Only mlp.down_proj matrices in the active refusal deliberation band were modified.
  • Dimensional Geometry: Retains 5,119 dimensions out of 5,120 hidden state dimensions (99.98% geometric fidelity preserved).
  • Exact FP8 Quantization: Dequantized block-wise ($128 \times 128$) to FP32, projected orthogonally, and requantized back to float8_e4m3fn with updated scale invariants.

📊 Benchmark & Empirical Evaluation

All evaluations were conducted under official default sampling parameters (presence_penalty: 0.0, repetition_penalty: 1.0, temperature: 0.6).

Metric Base Model (Qwen3.8-27B-FP8) Naive Abliteration (OBLITERATUS) Surgical Abliterated (Ours)
Refusal Rate (Cybersecurity / Pentest) 100.0% ~0.0% 0.00%
Reasoning Retention (<think> Depth) 100.0% Broken (Infinite Loops) 100.0%
</think> Boundary Closure Clean Broken (Bombur loops) Clean (0 Loops)
Coding & Logic Retention (Two Sum / SSTI) 100.0% Dictionary Dump 100.0%
Multilingual Support (Arabic / English) Refused Broken Full Fluency

🚀 Deployment & Serving

SGLang (Recommended)

To run on an NVIDIA RTX 5090 (32GB VRAM):

python3 -m sglang.launch_server \
  --model-path medismera/Qwen3.8-27B-Surgical-Abliterated \
  --port 18000 \
  --host 0.0.0.0 \
  --context-length 8192 \
  --max-running-requests 2 \
  --mem-fraction-static 0.96 \
  --disable-cuda-graph \
  --disable-radix-cache \
  --skip-server-warmup \
  --kv-cache-dtype fp8_e5m2 \
  --trust-remote-code \
  --reasoning-parser qwen3 \
  --tool-call-parser qwen3_coder

Thinking Mode Configuration

Thinking is fully supported and toggled seamlessly via the OpenAI-compatible API:

  • Thinking Enabled (Default): Normal inference automatically provides transparent step-by-step reasoning within <think> tags.
  • Thinking Disabled: Pass chat_template_kwargs={"enable_thinking": False} for ultra-fast, direct answer generation.

📜 Citation & Credits

  • Technique: Representation Engineering (Arditi et al., 2024).
  • Base Model: Alibaba Cloud Qwen/Qwen3.8-27B-FP8.
  • Surgical Pipeline: Programming with Medismera.

⚡ One-Click Instant Deployment (Zero-Touch Script)

To deploy this model on any fresh cloud server (Vast.ai, RunPod, Lambda Labs with an RTX 5090, A100, L40S, or 2x RTX 4090/3090):

curl -sSL https://huggingface.co/medismera/Qwen3.8-27B-Surgical-Abliterated/raw/main/deploy_and_serve.sh | bash

This script automatically:

  1. Installs all required CUDA/Python packages (, , ).
  2. High-speed multi-threaded download of the model from Hugging Face.
  3. Launches the SGLang OpenAI API server on port 18000 with optimized FP8 KV cache.
  4. Executes an automated health-check and verification test.

README history 8 versions

The author's README evolved over time. Click a version to see its content at that point.

  1. 2026-10-13SEO & discovery optimization: update tags and metadata04b5e8e4.6 KB
    Loading...
  2. 2026-10-13Add inference engine tags: sglang, vllm4a6a6df4.5 KB
    Loading...
  3. 2026-10-13Update metadata: add tags (uncensored, abliterated, agentic, coding, tool-cal...7b4ce464.5 KB
    Loading...
  4. 2026-09-08docs: update README with 256K context length benchmarks and Hermes clean-slat...c242c2f4.7 KB
    Loading...
  5. 2026-09-08Release 4-Bit W4A16 Compressed-Tensors quantized model (64K context support)665b0c13.2 KB
    Loading...
  6. 2026-09-07Add One-Click deployment section to README36514ac4.4 KB
    Loading...
  7. 2026-09-07Update README.md3c240033.8 KB
    Loading...
  8. 2026-09-07Upload surgically ablated Qwen3.8-27B-FP8 model weights and config4d57e303.8 KB
    Loading...
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