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

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

HF 源站

TyroneNel/Swift-Qwen3.8-27B-Uncensored-W4A16 is an uncensored open-source model hosted on Hugging Face.

Image-Text-to-TextvLLMsafetensorsChineseEnglishMultilingualLicense: other27Btransformersqwen3_5qwen3.8swiftabliterateduncensoredw4a164-bitint8compressed-tensorsautoroundmarlinmtpspeculative-decodingefficient-thinkingreasoningfunction-callingvision-languagertx-3090conversational
README.md说明 / 使用方法

license: other license_name: swift-open-license-1.0 license_link: LICENSE base_model: d0xin/Swift-Qwen3.8-27B-Uncensored-BF16 base_model_relation: quantized pipeline_tag: image-text-to-text library_name: transformers language:

  • en
  • zh tags:
  • qwen3.8
  • swift
  • abliterated
  • uncensored
  • w4a16
  • 4-bit
  • int8
  • compressed-tensors
  • autoround
  • vllm
  • marlin
  • mtp
  • speculative-decoding
  • efficient-thinking
  • reasoning
  • function-calling
  • vision-language
  • rtx-3090

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

A 4-bit (W4A16) quantization of d0xin/Swift-Qwen3.8-27B-Uncensored-BF16: UkisAI's reasoning-efficient Swift-Qwen3.8-27B with its refusal direction removed. It serves on one 24 GB GPU (RTX 3090 class) with vLLM and the HyperQwen stack, with the vision tower, the MTP speculative-decoding head and tool calling kept.

A faster variant with int4 heads is Swift-Qwen3.8-27B-Uncensored-W4A16-fast.

Lineage

Qwen/Qwen3.8-27B                              Apache 2.0
 └─ ukisai/Swift-Qwen3.8-27b                  Swift Open License v1.0, reasoning-efficiency LoRA merged
     └─ d0xin/Swift-Qwen3.8-27B-Uncensored-BF16   rank-1 directional ablation, layer 38
         └─ this model                        W4A16 g128 body, int8 lm_head / embed_tokens / MTP
             └─ ...-W4A16-fast                int4 GPTQ lm_head / MTP

What is in this checkpoint

PartFormat
Decoder linear layers (64 layers)int4, group 128, symmetric (Intel AutoRound), compressed-tensors pack-quantized, Marlin kernels on Ampere
lm_headint8, group 128, symmetric
embed_tokensint8, group 128, symmetric
MTP module (8 linear layers)int8, group 128, symmetric
MTP draft head (mtp.draft_lm_head)40,960 rows sliced from the int8 lm_head; ids in mtp_draft_vocab_ids.pt
Vision tower (333 tensors), GatedDeltaNet in_proj_a / in_proj_b, normsBF16, unchanged

2,022 tensors, 67 safetensors files, 16.7 GB on disk. No group has zero points.

The draft vocabulary is the top 40,960 ids of 6,761 generations by this model (4.59 M output tokens). On the held-out 10 % of those generations it covers 97.68 % of tokens. For comparison, the generic list that the official Qwen3.8-27B-W4A16-AutoRound checkpoint uses covers 98.18 % of the same tokens. The draft head only matters for SPEC=mtp.

How it was made

  1. run_quant.sh from HyperQwen: Intel AutoRound, --scheme W4A16 --bits 4 --group_size 128, 128 calibration samples x 2,048 tokens, lm_head not quantized, auto_round:llm_compressor export.
  2. prepare/quant_lm_head.py, prepare/quant_embed.py, prepare/quant_mtp.py: int8 round-to-nearest heads. Relative error against the BF16 source weights (||dequant - w|| / ||w||): lm_head 0.0064, MTP linears 0.0066–0.0153.
  3. prepare/build_draft_vocab.py: the draft head from the own-output id list.

Properties of the BF16 source

These come from the source and were not measured again on this quantization:

  • Refusals (d0xin, fixed 100-prompt set): 88 direct answers, 10 answers with a safety note, 2 other failures, 0 refusals.
  • Capability (d0xin, fixed 298-example set against the original Swift BF16): 39.93 % against 38.26 % combined, +1.68 points, McNemar p = 0.44, no measurable loss.
  • Method: rank-1 directional residual-stream ablation at layer 38; 131 of 1,199 tensors changed, vision tensors unchanged. Details: ABLITERATION.json, STRUCTURAL_VALIDATION.json and INTELLIGENCE_VALIDATION.json in the source repository.
  • Shorter reasoning (UkisAI): Swift is trained to avoid over-thinking. Our GSM8K run agrees: 356 answer tokens on average against 379 for the official AutoRound base and 384 for the abliterated OrcaRouter quant, with thinking off.

Measured results (single RTX 3090, 24 GB)

All numbers use the HyperQwen stack on vLLM 0.28.0, WSL2 + Docker, thinking off (protocol v2). The official Qwen3.8-27B-W4A16-AutoRound checkpoint is the reference.

Single-user decode (bench/run_benchmarks.sh single), 2026-09-23, card at 250 W, SPEC=dflash2 (DFlash2 drafter, 7 draft tokens), PREFIX_CACHE=1, KV_MEM=4529848320 (4.22 GiB), MAX_LEN=49152. End-to-end throughput in tok/s, sampling T=default / T=0. One run per checkpoint after a warm-up request.

ConcurrencyThis modelFast variantOfficial AutoRound base
C1118.0 / 116.7123.5 / 121.7116.6 / 118.9
C2169.5 / 178.5175.5 / 190.2175.7 / 169.6
C4235.8 / 237.1242.9 / 248.8229.4 / 237.6
C8227.5 / 245.7214.4 / 254.9223.6 / 207.4

C1 accepts 3.72 / 3.81 tokens per verify step, mean time to first token 188 ms. Expect 3–5 % variation between sessions.

Batch serving (bench/run_benchmarks.sh batch --prefill --long), 2026-09-21, card at 350 W, KV=fp8, no speculation, second of two runs.

RowThis modelFast variant
64 concurrent, 128 in / 512 out948.9 tok/s1,045.2 tok/s
64 concurrent, 256 in / 256 out701.4 tok/s751.7 tok/s
Prefill 1,024 tokens1,831 tok/s1,824 tok/s
Prefill 102,400 tokens1,065 tok/s1,065 tok/s
1 x 100k prompt: TTFT / TPOT92.8 s / 25.3 ms92.8 s / 24.7 ms
4 x 60k prompts, 1,024 out17.2 tok/s17.4 tok/s

Quality (bench/quality_battery.py against the served model): perplexity over ~300-token windows of wikitext-2 (en), fineweb-2 Danish (da) and Python source (code); GSM8K exact match, first 200 test questions, greedy, thinking off.

CheckpointPPL all (en / da / code)GSM8KMean answer tokens
This model8.261 (10.81 / 10.92 / 3.34)98.0 % (same in an earlier run)356
Fast variant8.302 (10.85 / 10.98 / 3.35)97.0 % (same)355
Official AutoRound base8.186 (10.68 / 10.85 / 3.30)94.5 %379

With n=200 the GSM8K standard error is about 1 point at 98 % and 1.6 points at 94.5 %.

How to serve

HyperQwen (Linux or WSL2, one 24 GB GPU), in .env:

MODEL=/app/models/Swift-Qwen3.8-27B-Uncensored-W4A16
SPEC=dflash2          # or SPEC=mtp to draft with the built-in MTP head
PREFIX_CACHE=1

then docker compose --profile single up -d. bash verify.sh --no-server checks the directory before you serve it.

Plain vLLM (0.28 or later) loads the body and heads through compressed-tensors:

vllm serve TyroneNel/Swift-Qwen3.8-27B-Uncensored-W4A16 \
  --max-model-len 32768 --reasoning-parser qwen3 \
  --enable-auto-tool-choice --tool-call-parser qwen3_coder

The truncated MTP draft head (mtp.draft_lm_head.* with mtp_draft_vocab_ids.pt) is read by HyperQwen's patches/qwen3_5-mtp-draft-vocab.patch. It is not tested on unpatched vLLM.

Sampling defaults (generation_config.json, from Swift): temperature 1.0, top_p 0.95, top_k 20, min_p 0, repetition_penalty 1.0. For thinking off, Qwen recommends temperature 0.7, top_p 0.8, presence_penalty 1.5. The chat template accepts reasoning_effort low, medium and xhigh (default), and maps minimal to low and high / max to xhigh.

Files

FileContent
model-000NN-of-00066.safetensors, model_extra_tensors.safetensorsweights (extras: MTP module, draft head; lm_head is in file 66)
model.safetensors.index.jsontensor-to-file map
config.json, quantization_config.jsonarchitecture and quantization groups
mtp_draft_vocab_ids.pt, draft_vocab_ids.jsonthe draft head's 40,960 token ids (same list, two formats)
chat_template.jinjaQwen3.8 template with reasoning-effort aliases and string tool arguments
tokenizer.jsonthe Qwen3.8 tokenizer, byte-identical to the source
tokenizer_config.json, generation_config.json, preprocessor_config.json, processor_config.jsontokenizer, sampling and vision configuration
LICENSESwift Open License v1.0 (verbatim from UkisAI)
LICENSE-APACHE-2.0Apache License 2.0 of the base model (verbatim from Qwen)
NOTICEattribution chain and the list of changes

Safety

This is a refusal-reduced model. It can produce content that the upstream model refuses or handles with more care, and its output can be wrong, offensive or unsafe. Use it for research, development and other lawful purposes. Review its output where an error can cause harm. You are responsible for how you use it and for compliance with the licenses and the law.

License

The weights are distributed under the Swift Open License v1.0 (LICENSE). It permits use, modification and redistribution. Commercial use is licensed only while you, together with every entity that controls, is controlled by or is under common control with you, had gross revenue below US$1,000,000 in the most recently completed fiscal year (Section 5). Above that threshold, commercial use needs a Swift Enterprise License from UkisAI. The base model's Apache License 2.0 is included as LICENSE-APACHE-2.0 (Section 4(e)); NOTICE lists the attribution chain, UkisAI's notices and every change. This summary is not legal advice; LICENSE is the binding text.

Original Swift model: UkisAI. Abliteration: d0xin. Quantization and serving preparation: TyroneNel.

HUGGING FACE

上游数据

HF 下载量274
HF 点赞量0

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

SITE STATS

本站统计

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

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

来源与版本

作者
TyroneNel
最近更新
2026/09/23
最新创建
2026/09/20
HF 趋势
未知
数据快照
2026/09/23
版本
未知
许可证
other