license: apache-2.0
base_model: OpenUncensored/Qwen4-35B-A3B-Uncensored
base_model_relation: quantized
pipeline_tag: image-text-to-text
library_name: radiance
language:
- en
tags: - radiance
- qwen
- qwen4
- qwen4exp
- moe
- iqr
- iq4r-v4
- trellis
- hadamard
- int4
- dflash2
- single-card
- uncensored
- abliterated
Qwen4 35B-A3B Uncensored, IQR-V4 with DFlash2 (Radiance 2.6.0)
This repository applies the reference pipeline of
StillDeadcode/qwen4-35b-a3b-iqr-v4
to OpenUncensored/Qwen4-35B-A3B-Uncensored,
a directional-ablation fine-tune of
Qwen/Qwen4-35B-A3B. The same 84-rule
IQ4R-V4 recipe, the same DFlash2 drafter and the same vision tower are used. It
is sized for one Radeon AI PRO R9700 (32 GB) at tp: 1.
The container is 40.52 GiB on disk. The 19 GiB PLE n-gram table is meant to
stay on the host through ngram-placement, which leaves about 21.5 GiB of
weights in VRAM.
Read this before comparing with the reference
The reference was quantised with GPTQ against 12.32M tokens of BF16
calibration data at 1M context. Reproducing that needs the 106 GB BF16
checkpoint resident in host memory, and the machine that built this container
has 30 GiB, so this build used identity Hessians instead.
An identity Hessian degenerates under the Hadamard rotation the recipe applies,
and the quantiser reports it: for the attention, SSM and delta-net projections
it printed N-1 of N columns ... were never exercised by the calibration corpus / the Hessian ... is not positive definite even damped; rounding it to nearest and fell back to round-to-nearest for those weights. The routed
experts used the same identity Hessians and quantised against them directly.
The result is therefore RTN-equivalent, not GPTQ-calibrated. The encodings,
group sizes, scales, protected tensors and drafter are identical to the
reference recipe, but the KL and top-1 numbers published for the reference
(KL mean 0.02164, top-1 95.12% on 5.50M positions) do not transfer to this
container, and none were measured for it.
What is in the container
- Text trunk: Qwen4-35B-A3B, a hybrid linear-attention and full-attention
mixture-of-experts model with 40 layers. Hidden 2048, head_dim 256, 16 query
heads and 2 KV heads, full attention every fourth layer, 256 routed experts
with top-8 routing plus one shared expert (expert width 512). - Uncensored edit: the source changes 78 tensors in layers 8 to 33 by
directional ablation. Every other tensor is byte-identical to the base
Qwen4-35B-A3B. It removes refusal directions rather than adding a separate
fine-tune corpus. - Vision tower: 27 layers, hidden 1152, 16 heads, head_dim 72, kept in
bf16 as 333 tensors. - Drafter: RadixArk/Qwen4-35B-A3B-Dflash2,
revisioncb9d9b21871526620506c9a6fb4d3f5ffff1bdc7, embedded at MXFP4 with a
2-bit draft head. The checkpoint's own MTP head is not used, which is why the
31mtp.*tensors are left out. - Encodings: QSA, attention, SSM and delta-net projections are rotated 128
wide and stored as an int4 trellis with a f32 scale a row and a bf16 scale a
128-wide block; routed experts are MXFP4-likefp4_e2m1codes in 32-wide
groups withe8m0scales; hyper-connection mixers and the PLE key and value
projections stay bf16; the head is int8 plus a 2-bit draft part; the PLE
n-gram table is E4M3 with a fixed bf16 scale of0.005126953125. - Context: the container declares 262144 tokens. The 1M declaration of the
reference is refused here by the QSA score plane check
(the QSA score plane would be ... MiB. Lower either.), which needsmax_ctx/4rows of scores under 512 MiB. The checkpoint still carriesn_ctx_train 1048576, but serve it at 262144 or less.
Serving
models:
qwen4-35b-a3b-uncensored-iqr-v4:
model: /models/qwen4-35b-a3b-uncensored-iqr-v4.rad
tp: 1
max-model-len: 262144
max-num-seqs: 1
kv-cache-dtype: i8
ngram-placement: disk
checkpoint-slots: 32
num-speculative-tokens: 3
ttl: 60m
park: { ram: never }
qwen4exp serves the container with int8 activations, rotated by the same
Hadamard. Keep the PLE table off the card with ngram-placement: disk, or the
container no longer fits.
Validation
- Plan: 21,685 logical weights, 20,694 quantised by the recipe and 991 kept as
the checkpoint holds them. Output: 40.43 GiB of weights. - File: 43,512,446,976 bytes, SHA-256
eeb812be032ff9ea896ac4fe860f0fc21f0e6211e03ba0388e1179380f54bea1. rad-info: RAD2, 40.52 GiB, architectureqwen4exp, 21,685 weights, 239
metadata keys, 248077 vocab tokens, 40 layers, 256 experts with top-8 plus
one shared, MTP 1 layer,language_model_only 0,image_token_id 248056.- Quantisation error summary: QSA/attention/SSM/delta-net rules mean about
6.2e-03to6.3e-03per weight, routed expert rules about6.8e-02,
drafter rules about1.2e-01, worstdflash.draft_head.weight4.3e-01. - Built with Radiance 2.6.0,
docker.io/stilldeadcode/radiance@sha256:b613c28243102b0f748582cd52a9bdac086789f50e0d5ff370016fd152a39c4e,
on the local RX 9070 XT (--gpus 0), 84-rule recipe,--max-ctx 262144 --max-tok 2048 --max-spec 3 --kv-cache-dtype i8, about 78 minutes. - No live serving run was performed on a 32 GB card.
Limitations
- The quantiser used identity Hessians, so the result is round-to-nearest
equivalent. Attention, SSM and delta-net projections explicitly fell back to
RTN after the degeneracy check. Expect a larger quality drop than the
reference container. - Context is declared at 262144, not 1M.
- Peak VRAM with the PLE table on disk was not measured. The 32 GB single-card
claim rests on the container size and the serving plan. - The uncensored source is a directional-ablation fine-tune; it may comply with
requests the base model refuses. No refusal benchmark was run here. - The base model card and the Apache-2.0 license apply. This container adds a
quantisation and an embedded drafter, and changes no weights beyond that.
Provenance
- Source:
OpenUncensored/Qwen4-35B-A3B-Uncensored, revision0b86787a3396095bc19ab2746ac58040ee53cc01(bf16, 106 GB, 33 shards). - Drafter:
RadixArk/Qwen4-35B-A3B-Dflash2, revisioncb9d9b21871526620506c9a6fb4d3f5ffff1bdc7. - Recipe:
recipes/qwen4-35b-a3b-iq4r-v4-df2.recipe, taken unchanged fromStillDeadcode/qwen4-35b-a3b-iqr-v4. - Calibration:
calib/qwen4-identity, 320 identityRADGRAM2files, one per
Hessian stem and layer.