CoolFace
Modelpublic

lambsea/Qwen3.8-27B-AEON-Ultimate-Uncensored-UD-GGUF

sourceHugging Faceapache-2.0updated 24d agoView on Hugging Face
1likes1.5kdownloads
Model Card

Qwen3.8-27B-AEON-Ultimate-Uncensored — GGUF (UD Quants)

Unsloth Dynamic-style (UD) GGUF quantizations of AEON-7/Qwen3.8-27B-AEON-ULTIMATE-UNCENSORED-BF16

Two quant families are available:

  • —AWQ-UD (recommended): AWQ channel pre-scaling applied before quantization. Lower perplexity than baseline at every bit width. All AWQ-UD quants beat F16 on perplexity.
  • —Baseline UD: Standard quantization without pre-scaling.

Every quant uses per-tensor overrides (sensitivity-driven) + importance matrix (multi-domain calibration). All SSM recurrence tensors are preserved at source precision. MTP speculative decoding and vision (mmproj) are preserved.


Quant Comparison

AWQ-UD (recommended)

AWQ pre-scaling (256 samples x 512 tokens, W4A16_ASYM target) redistributes weight magnitudes before quantization. All AWQ-UD quants beat F16 reference perplexity.

FileQuantSizePPLKL meantg t/s
F16 (reference)F1650.9 GB2.8950—30.3
AWQ-UD-Q8_0Q8_034.7 GB2.88070.0038442.4
AWQ-UD-Q6_KQ6_K30.6 GB2.87950.0037647.2
AWQ-UD-Q5_K_MQ5KM28.7 GB2.86720.0094549.0
AWQ-UD-IQ4_XSIQ4_XS25.9 GB2.88870.0192253.2

Baseline UD

FileQuantSizePPLKL meantg t/s
UD-Q8_0Q8_034.7 GB2.89180.0018142.4
UD-Q6_KQ6_K30.6 GB2.88910.0015347.2
UD-Q5KMQ5KM28.7 GB2.88560.0082249.0
UD-IQ4_XSIQ4_XS25.9 GB2.89900.0179153.2

Benchmarked on NVIDIA RTX PRO 6000 Blackwell (96 GB VRAM), llama.cpp (a4501150/llama.cpp), pp=512, tg=128. Throughput is identical between AWQ-UD and baseline UD at the same bit width because AWQ does not change tensor sizes.

AWQ-UD vs baseline: AWQ wins on perplexity (0.010-0.018 lower PPL). Baseline wins on KL divergence (closer to F16 output distribution). AWQ changes the channel basis, which shifts the output distribution away from F16, but absolute quality improves.

SGLang Throughput (NVFP4 + DFlash2)

For maximum throughput, serve the NVFP4 checkpoint via SGLang with DFlash2 speculative decoding:

ConfigSingle-user t/s3 users (agg)6 users (agg)
llama.cpp NVFP464——
llama.cpp UD-Q6_K + DSpark72—178 (5 users)
SGLang NVFP4 + DFlash2146-178391493

SGLang is 2.3-2.8x faster single-user and 2.8x faster concurrent vs llama.cpp.


What Makes These Different

AWQ Pre-Scaling (AWQ-UD only)

AWQ (Activation-Aware Weight Quantization) applies per-channel scaling to redistribute weight magnitudes before quantization. This makes outlier channels less damaging when quantized. The scaling is applied at BF16 precision and is lossless — the model produces identical output before quantization. After scaling, the full GGUF pipeline runs: convert, importance matrix, sensitivity analysis, quantize with per-tensor overrides.

SSM Recurrence Preservation

Qwen3.8 is a hybrid GatedDeltaNet + attention model. 48 of 64 layers use a recurrent SSM where quantization error compounds across token positions. All SSM recurrence tensors are preserved at source precision (F16) — never quantized.

TensorCountPrecisionRationale
ssm_alpha, ssm_beta96F16State update projections — error accumulates in recurrence
ssm_out48F16Output projection feeds directly into residual stream
ssm_a, ssm_conv1d, ssm_dt, ssm_norm192F32Small state tensors (llama-quantize keeps 1D/small tensors at F32)
attn_qkv (SSM input projection)48F16Highest measured KL sensitivity
attn_gate (SSM gate projection)48F16Second-highest measured KL sensitivity

Per-Tensor Sensitivity Analysis

Each tensor group was probed by quantizing only that group to Q4_0 while keeping the rest at F16, then measuring KL divergence. The override generator assigns precision based on measured sensitivity:

PrecisionTensor GroupsOverride Count
F16SSM recurrence, norms, biases, MTP layer512
F16All attention tensors (attn_qkv, attn_gate, attn_v, attn_q, attn_k, attn_output), ffn_down edge173
Base quantFFN middle layers, FFN edge gate/up, embeddings~181

685 total overrides — every non-FFN tensor has an explicit precision assignment. No dependence on llama-quantize's internal promotion rules.

Multi-Domain Calibration + GPU Imatrix

Calibrated on a balanced mix across 4 domains from 13 HF datasets:

DomainToken BudgetSources
General1Multrachat, OpenHermes, COIG-CQIA, LongAlpaca, pg19, froggeric/imatrix
Code750KMagicoder-Evol-Instruct-110K
Reasoning750KOpenMathInstruct-2, OpenR1-Math-220k
Agentic500Kglaive-function-calling-v2, xlam-function-calling-60k, hermes-function-calling-v1

Special tokens from source datasets are stripped automatically. Samples are kept whole — never truncated mid-conversation.

The importance matrix is generated with a PyTorch GPU-native generator at 32,768 context — uses forward hooks to accumulate squared activations on GPU with zero PCIe D2H copies. Supports multi-GPU via device_map="auto".

Per-domain imatrices are merged with equal weights (DI-MATRIX approach).

MTP + Vision Preserved

  • —MTP (Multi-Token Prediction): Draft head (blk.64) pinned at F16. Use --spec-type draft-mtp --spec-draft-n-max 3 for ~1.5-2x faster generation.
  • —Vision: mmproj file contains the full vision encoder. Use --mmproj flag with llama-server for image/video understanding.

Files

FileDescriptionSize
Qwen3.8-27B-AEON-AWQ-UD-Q8_0.ggufAWQ — Highest quality34.7 GB
Qwen3.8-27B-AEON-AWQ-UD-Q6_K.ggufAWQ — Recommended — best quality/size30.6 GB
Qwen3.8-27B-AEON-AWQ-UD-Q5_K_M.ggufAWQ — Balanced28.7 GB
Qwen3.8-27B-AEON-AWQ-UD-IQ4_XS.ggufAWQ — Smallest25.9 GB
Qwen3.8-27B-AEON-UD-Q8_0.ggufBaseline — Highest quality34.7 GB
Qwen3.8-27B-AEON-UD-Q6_K.ggufBaseline — Best quality/size30.6 GB
Qwen3.8-27B-AEON-UD-Q5_K_M.ggufBaseline — Balanced28.7 GB
Qwen3.8-27B-AEON-UD-IQ4_XS.ggufBaseline — Smallest25.9 GB
Qwen3.8-27B-AEON-mmproj-F16.ggufVision encoder (use with --mmproj)885 MB
Qwen3.8-27B-sharp.jinjaEnhanced chat template (terse output, reasoning effort, tool error detection)18 KB
imatrix_merged.datImportance matrix for requantization13 MB

Usage

llama-server (recommended)

bash
# AWQ-UD-Q6_K with sharp template, MTP + vision
llama-server \
    -m Qwen3.8-27B-AEON-AWQ-UD-Q6_K.gguf \
    --mmproj Qwen3.8-27B-AEON-mmproj-F16.gguf \
    -ngl 99 \
    --flash-attn \
    -c 262144 \
    --parallel 3 \
    -kvu \
    --jinja \
    --chat-template-file Qwen3.8-27B-sharp.jinja \
    --reasoning-format deepseek \
    --reasoning-preserve \
    --spec-type draft-mtp \
    --spec-draft-n-max 3 \
    --host 0.0.0.0 --port 8080
Note: --spec-type draft-mtp requires llama.cpp b9375+. --reasoning-format deepseek extracts thinking into message.reasoning_content in API responses. The sharp template (by froggeric) enables thinking by default with terse output, reasoning effort control, and tool call error detection.

llama-cli

bash
llama-cli \
    -m Qwen3.8-27B-AEON-AWQ-UD-Q6_K.gguf \
    -ngl 99 \
    --flash-attn \
    -c 262144 \
    --jinja \
    --chat-template-file Qwen3.8-27B-sharp.jinja \
    --reasoning on \
    --reasoning-preserve

Sampling Parameters

From the official Qwen3.8-27B model card:

Modetemperaturetop_ptop_kmin_ppresence_penaltyrepetition_penalty
Thinking (default)1.00.95200.00.01.0
Non-thinking0.70.80200.01.51.0

Do not use greedy decoding (temperature=0). reasoning_effort controls thinking depth independently: xhigh (default), medium, low.


Architecture

Qwen3.8-27B is a hybrid SSM-attention model:

  • —64 transformer layers + 1 MTP layer (blk.0-64)
  • —48 SSM layers (GatedDeltaNet, no KV cache) + 16 full attention layers (every 4th layer)
  • —27B parameters, 24 attention heads, 4 KV heads, head dim 256
  • —Vocab: 248,320 tokens, native context: 262,144 tokens

Quantization Pipeline

Built with super-quant:

  1. 1.AWQ pre-scaling (AWQ-UD only): Apply per-channel weight scaling via llm-compressor AWQModifier (256 calibration samples, W4A16_ASYM target). Strip all quantization state. Save as plain BF16.
  2. 2.Convert HF to F16 GGUF (with MTP tensors) + mmproj GGUF (vision)
  3. 3.Multi-domain calibration data from 13 HF datasets, special tokens stripped
  4. 4.GPU-native importance matrix generation (PyTorch, 32k context) + weighted merge
  5. 5.Per-tensor sensitivity analysis (KL divergence probing against F16 logits)
  6. 6.Hybrid override generation — SSM at source precision, sensitivity-driven for the rest
  7. 7.Quantize with per-tensor overrides + imatrix
  8. 8.Benchmark: throughput + perplexity + KL divergence vs F16

Links

Credits


License: Apache-2.0