← back to catalog · registered 2026-09-15 04:56

ajgazin/Swift-Qwen3.8-27B-Uncensored-MTP

ajgazin 27B multimodal
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 · 30-day
6
Likes
1
Descendants
2
in 2 direct forks
Model age
today
created 2026-09-15

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
other
Tags
transformers safetensors qwen3_5 image-text-to-text abliterated uncensored qwen3_8 mtp conversational arxiv:2406.11717 base_model:ukisai/Swift-Qwen3.8-27b base_model:finetune:ukisai/Swift-Qwen3.8-27b

Related

Total size
51.7 GB
Files
31
Quantizations
1
Registered
2026-09-15 04:56
Last updated on HF
2026-09-15 04:43

Files by quantization

Auxiliary files 31 files 51.8 GB
model-00004-of-00018.safetensors 3.72 GB 2cb4f5f5 download
model-00016-of-00018.safetensors 3.71 GB f40e708d download
model-00006-of-00018.safetensors 3.71 GB d4d5278e download
model-00008-of-00018.safetensors 3.71 GB dad9cb70 download
model-00010-of-00018.safetensors 3.71 GB 8c1abb9d download
model-00012-of-00018.safetensors 3.71 GB ff89dab1 download
model-00014-of-00018.safetensors 3.71 GB af38673a download
model-00001-of-00018.safetensors 3.69 GB 44f4600d download
model-00018-of-00018.safetensors 3.16 GB 1fb2ee8c download
model-00002-of-00018.safetensors 2.83 GB 516e9f19 download
model-00003-of-00018.safetensors 2.37 GB 2f75671f download
model-00007-of-00018.safetensors 1.96 GB dfe08ea9 download
model-00009-of-00018.safetensors 1.96 GB d488d56a download
model-00011-of-00018.safetensors 1.96 GB 6318a451 download
model-00013-of-00018.safetensors 1.96 GB a20e6c8d download
model-00015-of-00018.safetensors 1.96 GB ac890c66 download
model-00017-of-00018.safetensors 1.96 GB a7320fa4 download
model-00005-of-00018.safetensors 1.96 GB 900001a1 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 110 KB da35e3c5 download
tokenizer_config.json 17.5 KB 5de744b3 download
chat_template.jinja 8.74 KB c0c686f9 download
README.md 8.21 KB a2e3e4c0 download
abliteration.json 7.91 KB b47e3b57 download
config.json 4.21 KB 706cebd7 download
.gitattributes 1.70 KB 80737386 download
preprocessor_config.json 390 B 2ea84a43 download
video_preprocessor_config.json 385 B 3ba673a5 download
generation_config.json 221 B 1adb5e77 download

README current version from Hugging Face


license: other
license_name: swift-open-license-1.0
license_link: https://huggingface.co/ukisai/Swift-Qwen3.8-27b
base_model:

  • ukisai/Swift-Qwen3.8-27b
    library_name: transformers
    pipeline_tag: image-text-to-text
    tags:
  • abliterated
  • uncensored
  • qwen3_8
  • mtp

Swift-Qwen3.8-27B-Uncensored-MTP

An abliterated version of ukisai/Swift-Qwen3.8-27b,
UkisAI's reasoning-efficient fine-tune of Qwen/Qwen3.8-27B.
It applies the single-direction refusal ablation of
orcarouter/Qwen3.8-27B-Uncensored
(Arditi et al. 2024), with orcarouter's own refusal direction, to Swift's weights. Refusal behaviour is
strongly reduced, drift from the original model is low, the vision tower is untouched, and the
multi-token-prediction (MTP) head is preserved and edited consistently with the main model, so
self-speculative decoding still works.

This repository holds the full BF16 weights (safetensors). GGUF quants for llama.cpp (Unsloth-dynamic
UD-Q5_K_M and UD-Q6_K_XL, a BF16 GGUF and the vision projector, all with the MTP head) are in
ajgazin/Swift-Qwen3.8-27B-Uncensored-Dynamic-MTP-GGUF.

Results

Model Refusals KL divergence
This model (against Swift) 15/100 0.0634
Swift-Qwen3.8-27B (original) 98/100 0 (by definition)
Reference: orcarouter/Qwen3.8-27B-Uncensored (against Qwen3.8-27B) 17/100 0.0621
Reference: Qwen3.8-27B (original) 98/100 0 (by definition)

The same edit gives the same result on Swift as on the model it was made for. The reference row is our
own measurement of orcarouter's model under the identical evaluation.

How these were measured (Heretic's built-in evaluation, evaluate_model mode, BF16):

  • Refusals: 100 prompts from mlabonne/harmful_behaviors, greedy responses of up to 100 tokens,
    scored with Heretic's keyword-based refusal detector.
  • KL divergence: first-token probability distributions on 100 prompts from
    mlabonne/harmless_alpaca, against the original model. Lower means closer to the original.
  • The chat template runs in its default thinking mode, and the thinking block is closed immediately
    with a response prefix ("\n</think>\n\n"), so the model's answers are scored rather than its
    reasoning.
  • Refusal counts depend heavily on the evaluation setup (prompt set, prefix, detector), so they are
    not directly comparable with numbers on other model cards.

Method

orcarouter's model card describes a single refusal direction r (k = 1), the massive-activation-masked
mean difference of harmful (AdvBench) minus harmless (Alpaca) last-token residuals at layer 38,
orthogonalized out of every residual-writing matrix in float32. That edit is fully determined by r, so
r was recovered from the difference between orcarouter's weights and Qwen3.8-27B's, then applied to
Swift's own matrices.

Edited tensors (131, the same set as orcarouter's), each computed in float32 and stored in BF16:

Component Tensors Edit
self_attn.o_proj (16 full-attention layers + MTP) 17 W' = W - r (rᵀ W)
linear_attn.out_proj (48 Gated DeltaNet layers) 48 W' = W - r (rᵀ W)
mlp.down_proj (64 layers + MTP) 65 W' = W - r (rᵀ W)
embed_tokens 1 E' = E - (E r) rᵀ

All other tensors, including the vision tower, lm_head and the rest of the MTP head, are unchanged
from Swift.

Recovering r:

  • Each edited tensor's difference is rank one along a single shared direction (per-tensor direction
    cosine to r of at least 0.9999), at full strength (fitted scale 0.999). Five hidden dimensions are
    never edited; they are the masked massive-activation dimensions and are exactly zero in r.
  • The estimate is the top eigenvector of the summed Gram matrices of the differences, refined by a
    per-coordinate least-squares fit over elements whose BF16 rounding step is small compared with the
    edit, since rounding hides small changes entirely.
  • Check: applying the recovered r to Qwen3.8-27B reproduces orcarouter's 131 tensors with 99.75% of
    elements bit-identical; the rest differ by BF16 rounding, and the largest per-tensor error is 0.7% of
    the edit's size.

Why the direction transfers to Swift:

  • Swift's merged fine-tune changed 256 tensors (the MLP projections of all 64 layers and the
    query/key/value/output projections of the 16 full-attention layers); 80 of the 131 edited tensors are
    among them. The edit projects r out of Swift's own matrices rather than adding orcarouter's
    difference, so those changes are projected too.
  • Refusal directions computed the same way for both models (mean difference at layer 38 over 400
    harmful and 400 harmless prompts) have a cosine of 0.99995 between Swift and Qwen3.8-27B: the
    fine-tune did not move the refusal direction.

abliteration/ holds r (r.pt), the recovery report (recover.json: tensor list and per-tensor fit)
and the scripts (orca_tools.py, orca.sh). abliteration.json lists the edited tensors and the hash of
r.

MTP head

The MTP head's self_attn.o_proj and mlp.down_proj are edited with the same r, as in orcarouter's
model; its other 13 tensors are Swift's (which are base Qwen3.8's). All 1199 tensors are present.

To enable self-speculative decoding (flags as given on the Swift model card):

# vLLM
--speculative-config '{"method":"mtp","num_speculative_tokens":3}'

# SGLang
--speculative-algorithm EAGLE --speculative-num-steps 3 \
  --speculative-eagle-topk 1 --speculative-num-draft-tokens 4

Usage

The architecture, tokenizer and chat template are unchanged from Swift and Qwen3.8-27B, so anything that
runs those runs this model.

import torch
from transformers import AutoModelForImageTextToText, AutoProcessor

model_id = "ajgazin/Swift-Qwen3.8-27B-Uncensored-MTP"
processor = AutoProcessor.from_pretrained(model_id)
model = AutoModelForImageTextToText.from_pretrained(
    model_id,
    torch_dtype=torch.bfloat16,
    device_map="auto",
)
vllm serve ajgazin/Swift-Qwen3.8-27B-Uncensored-MTP \
  --dtype bfloat16 \
  --max-model-len 262144 \
  --reasoning-parser qwen3 \
  --enable-auto-tool-choice \
  --tool-call-parser qwen3_coder

Recommended sampling, inherited from Swift and Qwen: temperature 1.0, top_p 0.95, top_k 20, min_p 0.

Not yet evaluated

  • General benchmarks (MMLU and similar). KL divergence is the only quality measure so far.
  • Refusal behaviour in thinking mode. The evaluation above scores answers with thinking skipped.
  • Whether Swift's shorter reasoning traces are retained after abliteration.
  • MTP draft acceptance rate compared with the original model.

License

This model is a derivative of Swift-Qwen3.8-27B and is subject to the Swift Open License v1.0, see
the Swift model card. As summarized there, personal,
research, educational, evaluation and commercial use are free for individuals and organizations with
annual recurring revenue (including affiliates) of up to US$1,000,000. Above that threshold, commercial use
requires a separate Swift Enterprise License from UkisAI. Qwen3.8-27B, the model Swift is built on, is
released under Apache 2.0. The refusal direction was derived from orcarouter/Qwen3.8-27B-Uncensored,
released under Apache 2.0.

Intended use

Abliteration removes much of the model's trained refusal behaviour, so it will respond to requests the
original model declines. You are responsible for how you use it and for complying with applicable law
and the license above.

Acknowledgements

README history 1 version

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

  1. 2026-09-15Swift-Qwen3.8-27B-Uncensored-MTPf39e20d8.2 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 app" button that hands off directly to a local runtime of your choice - Infrahuman, LM Studio, or Ollama. No API keys, no subscription, no prompt leakage.